27 lines
446 B
JavaScript
27 lines
446 B
JavaScript
|
module.exports = {
|
||
|
env: {
|
||
|
browser: true,
|
||
|
commonjs: true,
|
||
|
es2021: true,
|
||
|
},
|
||
|
extends: 'eslint:recommended',
|
||
|
parserOptions: {
|
||
|
ecmaVersion: 12,
|
||
|
},
|
||
|
rules: {
|
||
|
'no-unused-vars': [
|
||
|
'warn',
|
||
|
{
|
||
|
argsIgnorePattern: '^_',
|
||
|
varsIgnorePattern: '^_',
|
||
|
caughtErrorsIgnorePattern: '^_',
|
||
|
},
|
||
|
],
|
||
|
'no-useless-escape': 0,
|
||
|
'no-empty': ['warn'],
|
||
|
},
|
||
|
globals: {
|
||
|
process: true,
|
||
|
},
|
||
|
}
|