forked from electricitymaps/bloom-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
44 lines (44 loc) · 1.29 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
{
"extends": ["airbnb", "prettier", "prettier/react", "plugin:jest/recommended"],
"env": {
"jest/globals": true
},
"globals": { "__DEV__": true, "fetch": false, "window": false, "Buffer": false },
"parser": "babel-eslint",
"plugins": ["jest"],
"rules": {
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"curly": "error",
"brace-style": "warn",
"class-methods-use-this": "warn",
"dot-notation": "warn",
"implicit-arrow-linebreak": "off",
"import/prefer-default-export": "off",
"max-len": "warn",
"no-await-in-loop": "warn",
"no-continue": "warn",
"no-nested-ternary": "warn",
"no-param-reassign": ["error", { "props": false }],
"no-trailing-spaces": "warn",
"no-underscore-dangle": "warn",
"no-unused-vars": "warn",
"prefer-destructuring": "warn",
"quote-props": "warn",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prop-types": "off",
"react/sort-comp": "warn"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".json", ".ios.js", ".android.js"]
}
}
}
}