-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (42 loc) · 979 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const globals = require("globals");
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'script', // Specify CommonJS source type
},
extends: [
'@react-native',
'plugin:@typescript-eslint/recommended-type-checked',
],
rules: {
'prettier/prettier': 0,
// Note: you must disable the base rule as it can report incorrect errors
'no-unused-vars': ['error', { 'vars': 'all', 'args': 'after-used', 'ignoreRestSiblings': false }],
'@typescript-eslint/no-unused-vars': 'error',
},
globals: {
// Define your global variables here if needed
},
overrides: [
{
files: ['*.js'],
extends: [
'plugin:js/recommended',
'plugin:vue/essential',
],
},
{
files: ['*.vue'],
extends: [
'plugin:vue/essential',
],
},
{
files: ['*.ts', '*.tsx'],
extends: [
'plugin:@typescript-eslint/recommended',
],
},
],
};