forked from ledermann/docker-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1.03 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 = {
root: true,
env: {
browser: true,
node: true,
},
plugins: [],
extends: [
'eslint:recommended',
'airbnb-base',
],
rules: {
// override/add rules settings here, such as:
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'class-methods-use-this': [0],
quotes: ['warn', 'single'],
'no-multiple-empty-lines': ['error', {
max: 2,
}],
'no-unexpected-multiline': 'warn',
'no-extra-semi': 'error',
'no-underscore-dangle': 0,
'prefer-const': ['error'],
'getter-return': ['error'],
'object-curly-spacing': 2,
'object-curly-newline': ['error', {
ObjectExpression: 'always',
ObjectPattern: {
multiline: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true, minProperties: 3,
},
}],
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
};