-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc.js
33 lines (33 loc) · 1.04 KB
/
.eslintrc.js
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
module.exports = {
extends: ['./node_modules/ambire-common/.eslintrc.js'],
parserOptions: {
project: './tsconfig.json'
},
"env": {
"browser": true
},
settings: {
// So that the eslint is able to resolve relative import paths
// {@link https://stackoverflow.com/a/63451047/1333836}
'import/resolver': {
typescript: {}
},
},
plugins: ["only-warn"],
rules: {
// Since a lot of files contain JSX, but are with .js extension,
// do not require specifically .jsx extension, since converting all files
// results huuuuuge diff in git + history gets lost. Blah.
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".tsx"] }],
// Require absolute paths for parent components/files
"import/no-relative-parent-imports": "error",
"no-return-await": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"import/no-relative-parent-imports": "off",
"jsx-a11y/label-has-associated-control": [ 2, {
"assert": "either",
"depth": 3,
}]
}
}