This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
53 lines (53 loc) · 1.82 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
{
"extends": [
"react-app",
"airbnb",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": ["jsx-a11y"],
"rules": {
// driving me nuts and would have involved changing a zillion files for no real benefit
"react/jsx-one-expression-per-line": "off",
"quotes": "off",
"semi": "off",
"camelcase":"off",
"no-unused-expressions": "off",
// matter of preference
"import/prefer-default-export": "off",
// import/no-named-as-default disabled as it prevents a common pattern of exporting
// non-connected redux components for testing and then exporting
// the connected component as the default export
// see https://github.com/benmosher/eslint-plugin-import/issues/544
"import/no-named-as-default": "off",
// codebase uses prop types some times and not others
"react/prop-types": "off",
// should be turned on eventually, but not compatible with current codebase
"no-shadow": "off",
"object-curly-newline":"off",
// turning off no-console until actual error-handling/logging is done
// "no-console":"warn",
// matter of preference (allows to use props.propName instead of deconstructing props first)
"react/destructuring-assignment": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"lines-between-class-members": "off",
// react hook rules
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
// suport for jsx files
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-debugger": 1
}
}