-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.eslintrc.js
43 lines (42 loc) · 1.12 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 = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
},
extends: 'airbnb',
env: {
node: true,
commonjs: true,
mocha: true,
es6: true,
browser: true,
},
/**
* {@link https://github.com/benmosher/eslint-plugin-import/issues/275}
* {@link https://github.com/benmosher/eslint-plugin-import#importcore-modules}
*/
settings: {
'import/core-modules': ['electron'],
},
rules: {
strict: [0, 'global'], // required for node, configurable for browser, https://github.com/eslint/eslint/issues/2785#issuecomment-113254153
'arrow-body-style': 0,
'consistent-return': 0,
'no-param-reassign': 0,
'no-shadow': 0,
'no-underscore-dangle': 0,
'react/forbid-prop-types': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
},
};