advent22/ui/.eslintrc.js

35 lines
570 B
JavaScript
Raw Permalink Normal View History

2022-10-28 00:14:20 +00:00
module.exports = {
root: true,
2023-01-21 02:59:46 +00:00
2022-10-28 00:14:20 +00:00
env: {
node: true
},
2023-01-21 02:59:46 +00:00
2022-10-28 00:14:20 +00:00
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended'
],
2023-01-21 02:59:46 +00:00
2022-10-28 00:14:20 +00:00
parserOptions: {
ecmaVersion: 2020
},
2023-01-21 02:59:46 +00:00
2022-10-28 00:14:20 +00:00
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
2023-01-21 02:59:46 +00:00
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
mocha: true
}
}
]
2022-10-28 00:14:20 +00:00
}