2022-03-16 11:10:30 +03:00
|
|
|
/** @type {import("eslint").Linter.Config} */
|
|
|
|
const config = {
|
|
|
|
root: true,
|
2023-05-19 16:57:28 +03:00
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2022
|
|
|
|
},
|
2022-03-16 11:10:30 +03:00
|
|
|
env: {
|
2023-05-19 16:57:28 +03:00
|
|
|
es2022: true,
|
2022-03-16 11:10:30 +03:00
|
|
|
node: true,
|
|
|
|
commonjs: true
|
|
|
|
},
|
|
|
|
extends: ['eslint:recommended', 'prettier'],
|
|
|
|
rules: {
|
|
|
|
camelcase: [
|
|
|
|
1,
|
|
|
|
{
|
|
|
|
properties: 'always'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
'no-var': 'error',
|
|
|
|
'no-alert': 'error',
|
2022-04-04 19:00:24 +03:00
|
|
|
eqeqeq: 'error',
|
|
|
|
'prefer-const': 'warn',
|
|
|
|
'object-shorthand': 'warn'
|
2022-03-16 11:10:30 +03:00
|
|
|
},
|
2023-05-19 16:57:28 +03:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: '*.mjs',
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-06-21 13:30:54 +03:00
|
|
|
ignorePatterns: [
|
|
|
|
'node_modules',
|
|
|
|
'dist',
|
2023-05-08 10:47:01 +03:00
|
|
|
'dist-*',
|
2022-06-21 13:30:54 +03:00
|
|
|
'public',
|
|
|
|
'events.json',
|
|
|
|
'.*.{ts,js,vue,tsx,jsx}',
|
2023-05-08 10:47:01 +03:00
|
|
|
'generated/**/*',
|
|
|
|
'.nuxt',
|
|
|
|
'.output'
|
2022-06-21 13:30:54 +03:00
|
|
|
]
|
2022-03-16 11:10:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config
|