70 lines
1.2 KiB
JavaScript
70 lines
1.2 KiB
JavaScript
![]() |
module.exports = {
|
||
|
'env': {
|
||
|
'browser': false,
|
||
|
'es6': true,
|
||
|
'node': true,
|
||
|
'jasmine': true,
|
||
|
},
|
||
|
'plugins': [
|
||
|
'import'
|
||
|
],
|
||
|
'extends': [
|
||
|
'eslint:recommended',
|
||
|
'plugin:import/errors',
|
||
|
'plugin:import/warnings'
|
||
|
],
|
||
|
'parser': '@babel/eslint-parser',
|
||
|
'parserOptions': {
|
||
|
'ecmaVersion': 6,
|
||
|
'sourceType': 'module'
|
||
|
},
|
||
|
'settings': {
|
||
|
'import/core-modules': [
|
||
|
'vscode'
|
||
|
]
|
||
|
},
|
||
|
'rules': {
|
||
|
'comma-dangle': [
|
||
|
'error',
|
||
|
'only-multiline'
|
||
|
],
|
||
|
'curly': [
|
||
|
'warn',
|
||
|
'all'
|
||
|
],
|
||
|
'linebreak-style': [
|
||
|
// 'error',
|
||
|
'unix'
|
||
|
],
|
||
|
'no-console': [
|
||
|
'error',
|
||
|
{
|
||
|
'allow': ['warn', 'error', 'info']
|
||
|
},
|
||
|
],
|
||
|
'prefer-const': 'error',
|
||
|
'quotes': [
|
||
|
'error',
|
||
|
'single',
|
||
|
'avoid-escape'
|
||
|
],
|
||
|
'semi': [
|
||
|
'error',
|
||
|
'always'
|
||
|
],
|
||
|
'sort-imports': [
|
||
|
'warn',
|
||
|
{
|
||
|
'ignoreCase': false,
|
||
|
'ignoreMemberSort': false,
|
||
|
'memberSyntaxSortOrder': ['none', 'all', 'multiple', 'single']
|
||
|
}
|
||
|
],
|
||
|
'no-useless-escape': [
|
||
|
'off'
|
||
|
],
|
||
|
'no-empty': [2, {
|
||
|
'allowEmptyCatch': true
|
||
|
}]
|
||
|
},
|
||
|
};
|