-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.27 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
module.exports = {
env: {
browser: true,
node: true,
webextensions: true,
},
extends: ['airbnb-base'],
parserOptions: {
ecmaVersion: 2018,
},
plugins: ['eslint-plugin-import-order-alphabetical', 'import', 'sort-destructure-keys'],
rules: {
'class-methods-use-this': 0,
'global-require': 0,
'guard-for-in': 0,
// Allow const x => y => x * y;
'implicit-arrow-linebreak': 0,
'import/no-dynamic-require': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: ['**/**'] }],
'import/prefer-default-export': 0,
'import-order-alphabetical/order': [
'error',
{
groups: [
['builtin', 'external'],
['internal', 'parent', 'sibling', 'index'],
],
'newlines-between': 'always',
},
],
'max-len': ['error', { code: 120 }],
'no-console': 0,
'no-continue': 0,
// Improve literacy of reduce() functions
'no-param-reassign': 0,
'no-restricted-syntax': ['error', 'WithStatement'],
// Prefix symbols with underscore to denote private visibility
'no-underscore-dangle': 0,
'no-unused-expressions': ['error', { allowTaggedTemplates: true }],
'sort-destructure-keys/sort-destructure-keys': ['error'],
'sort-keys': ['error'],
},
};