2017-11-27 19:21:12 -05:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2019-12-19 06:17:21 -05:00
|
|
|
globals: {
|
|
|
|
__static: 'readonly'
|
2017-11-27 19:21:12 -05:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
},
|
2022-01-04 10:40:28 -05:00
|
|
|
parser: 'vue-eslint-parser',
|
|
|
|
extends: [
|
2023-01-06 04:21:27 -05:00
|
|
|
'plugin:vue/vue3-recommended',
|
2019-12-19 06:17:21 -05:00
|
|
|
'@vue/standard',
|
|
|
|
'@vue/typescript'
|
2017-11-27 19:21:12 -05:00
|
|
|
],
|
2022-01-04 10:40:28 -05:00
|
|
|
plugins: ['@typescript-eslint'],
|
2019-12-19 06:17:21 -05:00
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'off' : 'off',
|
2021-04-15 22:12:11 -04:00
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
2022-01-04 10:40:28 -05:00
|
|
|
indent: 'off',
|
|
|
|
'no-async-promise-executor': 'off',
|
|
|
|
'no-unused-vars': 'off',
|
|
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
2023-02-21 05:42:50 -05:00
|
|
|
'@typescript-eslint/indent': ['error', 2],
|
|
|
|
'vue/no-v-html': 'off'
|
2019-12-19 06:17:21 -05:00
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
parser: '@typescript-eslint/parser'
|
2022-01-04 10:40:28 -05:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.ts', '*.vue'],
|
|
|
|
rules: {
|
|
|
|
'no-undef': 'off' // https://typescript-eslint.io/docs/linting/troubleshooting/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
ignorePatterns: ['src/**/*.d.ts']
|
2017-11-27 19:21:12 -05:00
|
|
|
}
|