37 lines
782 B
JavaScript
37 lines
782 B
JavaScript
/* eslint-disable */
|
|
module.exports = {
|
|
'env': {
|
|
'browser': true,
|
|
'es2021': true,
|
|
"webextensions": true
|
|
},
|
|
'extends': 'eslint:recommended',
|
|
'ignorePatterns': ['webpack.*', 'dist/'],
|
|
'parserOptions': {
|
|
'ecmaVersion': 12,
|
|
'sourceType': 'module'
|
|
},
|
|
'plugins': ['unused-imports'],
|
|
'rules': {
|
|
'indent': ['error', 2, { 'SwitchCase': 1 }],
|
|
'linebreak-style': [
|
|
'error',
|
|
'unix'
|
|
],
|
|
'quotes': [
|
|
'error',
|
|
'single'
|
|
],
|
|
'semi': [
|
|
'error',
|
|
'always'
|
|
],
|
|
'no-unused-vars': 'off',
|
|
'unused-imports/no-unused-imports': ['error'],
|
|
'unused-imports/no-unused-vars': [
|
|
'warn',
|
|
{ 'vars': 'all', 'varsIgnorePattern': '^_', 'args': 'after-used', 'argsIgnorePattern': '^_' }
|
|
]
|
|
}
|
|
}
|