-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
79 lines (79 loc) · 2.13 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"env": {
"browser": true,
"es2020": true,
"node": true
},
"extends": [
"airbnb",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"import",
"react",
"@typescript-eslint"
],
"ignorePatterns": [
"preset.js",
"dist"
],
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-shadow": ["error"],
"no-shadow": "off",
"no-use-before-define": "off",
"arrow-body-style": "off",
"no-underscore-dangle": "off",
"import/extensions": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".jsx", ".tsx"] }],
"react/prop-types": [0],
"react/react-in-jsx-scope": 0,
"react/jsx-uses-react": 0,
"react/jsx-props-no-spreading": [0],
"jsx-a11y/anchor-is-valid": ["error", {
"components": ["Link", "Hyperlink"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}],
"react/require-default-props": "off",
"prettier/prettier": ["error", { "parser": "typescript" }]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {}
}
}
}