You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
module.exports = { |
|
parserOptions: { |
|
ecmaVersion: 6, |
|
sourceType: 'module', |
|
}, |
|
env: { |
|
'browser': true, |
|
'commonjs': true, |
|
'node': true, |
|
}, |
|
extends: 'eslint:recommended', |
|
rules: { |
|
'comma-dangle': 'off', |
|
'no-console': 'off', |
|
'no-constant-condition': 'off', |
|
'no-redeclare': 'off', |
|
'no-unused-vars': 'off', |
|
|
|
'array-bracket-spacing': 'error', |
|
'block-spacing': 'error', |
|
'brace-style': 'error', |
|
'comma-spacing': 'error', |
|
'comma-style': 'error', |
|
'eol-last': 'error', |
|
'indent': ['error', 2], |
|
'key-spacing': 'error', |
|
'keyword-spacing': 'error', |
|
'linebreak-style': 'error', |
|
'no-array-constructor': 'error', |
|
'no-trailing-spaces': 'error', |
|
'no-unneeded-ternary': 'error', |
|
'object-curly-newline': 'error', |
|
'object-curly-spacing': 'error', |
|
'operator-linebreak': 'error', |
|
'semi-spacing': 'error', |
|
'semi': 'error', |
|
'space-before-blocks': 'error', |
|
'space-before-function-paren': ['error', 'never'], |
|
'space-in-parens': 'error', |
|
'space-infix-ops': 'error', |
|
'space-unary-ops': 'error', |
|
}, |
|
};
|
|
|