2022-03-16 11:10:30 +03:00
|
|
|
/** @type {import("eslint").Linter.Config} */
|
|
|
|
const config = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
es2021: true,
|
|
|
|
node: true,
|
|
|
|
commonjs: true
|
|
|
|
},
|
|
|
|
extends: ['eslint:recommended', 'prettier'],
|
|
|
|
rules: {
|
|
|
|
camelcase: [
|
|
|
|
1,
|
|
|
|
{
|
|
|
|
properties: 'always'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
'no-var': 'error',
|
|
|
|
'no-alert': 'error',
|
2022-03-31 11:35:36 +03:00
|
|
|
eqeqeq: 'error'
|
2022-03-16 11:10:30 +03:00
|
|
|
},
|
|
|
|
ignorePatterns: ['node_modules', 'dist', 'public']
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config
|