generated from defientco/CRE8ORS-UI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
68 lines (68 loc) · 1.8 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"prettier/prettier": [
"warn",
{},
{
"usePrettierrc": true
}
],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"no-use-before-define": "off",
"semi": "off",
"no-unused-vars": "off",
"no-shadow": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/semi": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"jsx-a11y/label-has-associated-control": [
2,
{
"labelComponents": ["CustomInputLabel"],
"labelAttributes": ["label"],
"controlComponents": ["CustomInput"],
"depth": 3
}
],
"react/function-component-definition": [
"error",
{
"namedComponents": ["function-declaration", "arrow-function"],
"unnamedComponents": "arrow-function"
}
]
},
"plugins": ["@typescript-eslint", "prettier", "react"],
"extends": ["airbnb", "next", "prettier", "plugin:@typescript-eslint/eslint-recommended"],
"globals": {
"Cypress": true,
"JSX": true,
"cy": true,
"document": true,
"navigator": true,
"window": true,
"Rollbar": true
}
}