-
Notifications
You must be signed in to change notification settings - Fork 40
/
.eslintrc.json
47 lines (47 loc) · 1.3 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
{
"extends": ["airbnb", "prettier", "plugin:@typescript-eslint/recommended"],
"plugins": ["prettier", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"prettier/prettier": ["error"],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"react/react-in-jsx-scope": "off",
"no-restricted-globals": ["error", "event", "fdescribe"],
"react/prop-types": "off",
"jsx-a11y/anchor-has-content": "off",
"react/jsx-curly-newline": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-one-expression-per-line": "off",
"jsx-a11y/media-has-caption": "off",
"react/no-arrow-function-lifecycle": "off",
"react/no-invalid-html-attribute": "off",
"react/no-unused-class-component-methods": "off",
"react/function-component-definition": "off",
"react/require-default-props": "off",
"no-undef": "off"
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}