-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.44 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
module.exports = {
parserOptions: {
'ecmaVersion': 6,
'sourceType': 'module'
},
env: {
browser: true,
node: true,
},
extends: 'eslint:recommended',
plugins: [
'@stylistic/js'
],
rules: {
'indent': ['error', 2],
'@stylistic/js/array-bracket-spacing': ['error', 'never'],
'@stylistic/js/arrow-spacing': 'error',
'@stylistic/js/comma-spacing': ['error', { 'before': false, 'after': true }],
'@stylistic/js/comma-style': ['error', 'last'],
'@stylistic/js/multiline-ternary': ['error', 'always'],
'@stylistic/js/eol-last': ['error', 'always'],
'@stylistic/js/function-paren-newline': ['error', 'never'],
'@stylistic/js/space-infix-ops': 'error',
'@stylistic/js/key-spacing': ['error', { 'beforeColon': false, 'afterColon': true}],
'@stylistic/js/lines-around-comment': ['error', { 'beforeBlockComment': true }],
'@stylistic/js/function-call-spacing': ['error', 'never'],
'@stylistic/js/no-floating-decimal': 'error',
'@stylistic/js/no-multi-spaces': 'error',
'@stylistic/js/space-before-blocks': 'error',
'@stylistic/js/keyword-spacing': ['error', { 'before': true, 'after': true }],
'linebreak-style': 'off',
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'no-unused-vars': ['error', {'args': 'none'}],
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-var': 'off',
'prefer-const': 'error',
'no-assign-const': 'off'
}
};