salix-front/.eslintrc.js

29 lines
700 B
JavaScript
Raw Normal View History

2022-02-24 08:23:59 +00:00
module.exports = {
2022-02-25 12:12:14 +00:00
root: true,
env: {
node: true,
2022-02-24 08:23:59 +00:00
},
2022-02-25 12:12:14 +00:00
extends: [
2022-02-28 14:35:13 +00:00
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
2022-02-25 12:12:14 +00:00
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
2022-02-28 14:35:13 +00:00
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
2022-02-25 12:12:14 +00:00
},
overrides: [
{
2022-02-28 14:35:13 +00:00
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
2022-02-25 12:12:14 +00:00
env: {
jest: true,
},
},
],
2022-02-24 08:23:59 +00:00
};