-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.eslintrc
80 lines (78 loc) · 2.35 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"airbnb-typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["react-hooks", "@typescript-eslint"],
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true
},
"project": "./tsconfig.json"
},
"settings": {
"react": {
"version": "18"
}
},
"rules": {
/* quartz is a library with peer dependencies, so we do not need this rule to trigger on extraneous deps specified in `package.json/peerDependencies` */
"import/no-extraneous-dependencies": [
"error",
{ "peerDependencies": false }
],
// turning these off as they are already checked by typescript
// see: https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting#eslint-plugin-import
"import/named": 0,
"import/namespace": 0,
"import/default": 0,
"import/no-named-as-default-member": 0,
"react-hooks/exhaustive-deps": "error",
"space-before-function-paren": 0,
"react/prop-types": 0,
"react/jsx-handler-names": 0,
"react/jsx-fragments": 0,
"react/no-unused-prop-types": 0,
"import/export": 0,
"no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"react/jsx-props-no-spreading": 0,
"jsx-a11y/click-events-have-key-events": 0,
"linebreak-style": 0,
"react/require-default-props": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"object-curly-newline": "off",
"no-restricted-exports": "off",
"react/jsx-no-bind": "off",
"no-shadow": "off",
"import/no-cycle": "off",
"react/jsx-boolean-value": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": ["off"],
"no-console": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"func-names": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"react/function-component-definition": "off",
"no-use-before-define": "off",
"no-underscore-dangle": "off"
}
}