-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
51 lines (45 loc) · 1.48 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
{
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"extends": [
"airbnb-base",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"prettier"
],
"rules": {
"no-underscore-dangle": "off",
// "import/prefer-default-export": "off",
// "import/no-default-export": "error",
// enhance linting speed
"import/no-cycle": "off",
"import/order": ["error", {
"groups": [["builtin", "external"], "internal", ["parent", "sibling"], "index"],
"newlines-between": "always"
}],
"import/no-extraneous-dependencies": ["error", {
"devDependencies": ["**/*.test.js", "**/*.spec.js", "modules/testUtilities/*.js", "docs/**"]
}],
// "import/no-internal-modules": "off",
// "no-restricted-imports": ["error", "@material-ui/core", "@material-ui/icons", "i18next", "react-i18next"],
// should allowShortCircuit and allowTernary be true?
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
// Why?
// "no-undef": "off",
"prettier/prettier": "error"
}
}