27 lines
571 B
JavaScript
27 lines
571 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: false,
|
|
commonjs: true,
|
|
es2021: true,
|
|
node: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
},
|
|
rules: {
|
|
'indent': ['error', 2],
|
|
'linebreak-style': ['error', 'unix'],
|
|
'quotes': ['error', 'single'],
|
|
'semi': ['error', 'always'],
|
|
'no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
|
|
'no-console': 'off',
|
|
'prefer-const': 'error',
|
|
'no-var': 'error',
|
|
'object-shorthand': 'error',
|
|
'prefer-arrow-callback': 'error',
|
|
},
|
|
};
|