-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
68 lines (68 loc) · 2.08 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["airbnb", "airbnb-typescript", "next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
"rules": {
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"camelcase": 0,
"jsx-a11y/anchor-has-content": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/no-noninteractive-tabindex": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-associated-control": [
2,
{
"controlComponents": ["Field"],
"depth": 3
}
],
"max-len": ["error", 120, 4],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"no-void": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
"react/forbid-prop-types": 0,
"react/jsx-fragments": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"react/react-in-jsx-scope": "off",
"react/require-default-props": 0,
"react-hooks/rules-of-hooks": "error",
"semi": ["error", "never"],
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": [".storybook/**", "app/javascript/**/*.stories.*"] }
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "comma",
"requireLast": true
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}
],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/semi": ["error", "never"],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}