forked from guonanci/react-images-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (44 loc) · 939 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
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
parserOptions: {
sourceType: 'module'
},
env: {
node: true,
browser: true,
commonjs: true,
es6: true,
jest: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
],
// required to lint *.vue files
plugins: [
'react',
],
// check if imports actually resolve
settings: {
react: {
createClass: 'createReactClass',
pragma: 'React',
version: '16.4.1'
},
},
rules: {
'no-unused-vars': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
"no-unused-vars": [2, { "vars": "all", "args": "after-used" }],
'global-require': 0,
}
}