2022-09-12 02:41:50 -07:00
|
|
|
/**
|
|
|
|
* @type {import('@types/eslint').ESLint.ConfigData}
|
|
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
plugins: ['vue'],
|
|
|
|
|
2022-11-09 08:32:05 -08:00
|
|
|
extends: ['plugin:vue/essential', '@vue/typescript', './base'],
|
2022-09-12 02:41:50 -07:00
|
|
|
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
parser: 'vue-eslint-parser',
|
|
|
|
parserOptions: {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
},
|
|
|
|
|
2022-11-09 08:32:05 -08:00
|
|
|
ignorePatterns: ['**/*.js', '**/*.d.ts', 'vite.config.ts'],
|
2022-09-12 02:41:50 -07:00
|
|
|
|
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
|
semi: [2, 'always'],
|
|
|
|
indent: ['error', 'tab'],
|
|
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
|
|
'no-tabs': 0,
|
|
|
|
'no-labels': 0,
|
|
|
|
},
|
|
|
|
};
|