26 lines
451 B
JavaScript
26 lines
451 B
JavaScript
module.exports = {
|
|
env: {
|
|
es2021: true,
|
|
browser: true,
|
|
},
|
|
extends: ['eslint:recommended'],
|
|
overrides: [
|
|
{
|
|
env: {
|
|
node: true,
|
|
},
|
|
files: ['.eslintrc.{js,cjs}'],
|
|
parserOptions: {
|
|
sourceType: 'script',
|
|
},
|
|
},
|
|
],
|
|
plugins: ['html'],
|
|
rules: {
|
|
indent: ['error', 4],
|
|
'linebreak-style': ['error', 'unix'],
|
|
quotes: ['error', 'single'],
|
|
semi: ['error', 'always'],
|
|
},
|
|
};
|