forked from commercetools/commercetools-sunrise-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1 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
module.exports = {
env: {
node: true,
es6: true
},
extends: ['plugin:import/errors'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
rules: {
'array-bracket-spacing': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'comma-dangle': ['error', 'never'],
'no-console': 'error',
'no-unused-vars': 'error',
indent: ['error', 2],
'object-curly-spacing': ['error', 'always'],
'no-sequences': 'error',
'no-debugger': 'error',
'no-useless-escape': 'error',
'spaced-comment': ['error', 'always'],
'import/first': ['error', 'always'],
'space-before-function-paren': ['error', 'always'],
semi: ['error', 'never'],
'no-trailing-spaces': [
'error',
{ ignoreComments: true }
],
'eol-last': ['error', 'always'],
'no-multiple-empty-lines': [
'error',
{ max: 2, maxEOF: 1 }
],
'no-undef': 'error'
}
}