-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
45 lines (45 loc) · 932 Bytes
/
.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
module.exports = {
extends: [
'eslint:recommended',
'plugin:react/recommended'
],
plugins: ['react'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
generators: true,
experimentalObjectRestSpread: true,
},
},
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
node: true,
},
globals: {},
rules: {
'prefer-const': 'error',
'object-shorthand': "error",
'no-param-reassign': ['error', { props: true }],
'no-underscore-dangle': 0,
'no-bitwise': 0,
'no-use-before-define': 'error',
'no-shadow': ['error', { builtinGlobals: false, hoist: 'functions' }],
'new-cap': 1,
eqeqeq: 1,
'no-console': 1,
'no-unused-vars': [
'error',
{
args: 'after-used',
argsIgnorePattern: '^_$',
},
],
camelcase: 1,
},
};