forked from PrestaShop/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (34 loc) · 779 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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
globals: {
google: true,
document: true,
navigator: false,
window: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module"
},
root: true,
extends: 'airbnb-base',
plugins: [
'import',
'html',
],
rules: {
'indent': ['error', 2, {'SwitchCase': 1}],
'import/no-unresolved': 0,
'no-use-before-define': 0,
'function-paren-newline': ['off', 'never'],
'object-curly-spacing': ['error', 'never'],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'import/extensions': ['off', 'never'],
}
};