-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.js
53 lines (53 loc) · 1.41 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
root: true,
parser: "babel-eslint",
extends: [
"airbnb",
"react-app",
"plugin:no-unsanitized/DOM",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
plugins: ["react", "prettier", "no-unsanitized", "react-hooks", "jsx-a11y", "promise"],
parserOptions: {
ecmaFeatures: {
jsx: true
},
sourceType: "module"
},
rules: {
"no-unused-vars": ["error", { "varsIgnorePattern": "_.+" }],
"no-multi-assign": ["off"],
"no-console": ["off"],
"react/prop-types": ["off"],
"react/static-property-placement": ["error", "static public field"],
"react/forbid-prop-types": ["off"],
"react/jsx-filename-extension": ["off"],
"react/jsx-wrap-multilines": ["off"],
"react/destructuring-assignment": ["off"],
"react-hooks/rules-of-hooks": ["error"],
"radix": ["off"], //fixed in ES5
"import/prefer-default-export": ["off"]
},
settings: {
"import/resolver": {
alias: {
map: [
["~lib", "./src/lib"],
["~airtable", "./src/lib/airtable"],
["~slack", "./src/lib/slack"],
["~strings", "./src/lib/strings"],
["~assets", "./src/lib/assets"]
],
extensions: ['.ts', '.js', '.jsx', '.json']
},
node: {
moduleDirectory: ["node_modules", "src"]
}
}
},
globals: {
__PATH_PREFIX__: true
}
};