-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
52 lines (52 loc) · 1.4 KB
/
.eslintrc.json
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
43
44
45
46
47
48
49
50
51
52
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"ignorePatterns": ["patches", "**/*.json", "**/*.plist", "**/*.yaml", ""],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"overrides": [
{
"env": {
"node": true
},
"files": [".eslintrc.{js,cjs}"],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "unused-imports", "simple-import-sort"],
"rules": {
"no-multiple-empty-lines": ["error", { "max": 1 }],
"eqeqeq": ["error", "always"],
"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-var-requires": 0,
"react/prop-types": 0,
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"linebreak-style": 0,
"quotes": [2, "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
"semi": ["error", "always"]
}
}