forked from airburst/react-in-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
61 lines (61 loc) · 1.47 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier/prettier"
],
"settings": {
"react": {
"version": "17.0.2"
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"react/require-default-props": 0,
"prettier/prettier": "error",
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
"import/prefer-default-export": 0,
"react/jsx-props-no-spreading": 0,
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/control-has-associated-label": 0,
"dot-notation": 0,
"react/jsx-one-expression-per-line": 0,
"no-use-before-define": 0,
"no-undef": 0,
"react/jsx-uses-react": 2,
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"no-nested-ternary": "off",
"no-unused-vars": "off"
},
"overrides": [
{
"files": [
"app/javascript/src/**/*.test.ts",
"app/javascript/src/**/*.test.tsx"
],
"env": {
"jest": true
}
},
{
"files": ["*.tsx", "*.ts", ".js"],
"env": {
"node": true
}
}
]
}