+const { env } = require('node:process');
const { defineConfig } = require('eslint-define-config');
module.exports = defineConfig({
extends: [
'eslint:recommended',
+ 'plugin:import/recommended',
'plugin:vue/vue3-recommended',
- '@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier',
- 'plugin:import/recommended',
+ '@vue/eslint-config-typescript/recommended',
],
settings: {
},
rules: {
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
+ 'no-console': env.NODE_ENV === 'production' ? 'warn' : 'off',
+ 'no-debugger': env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/require-v-for-key': 'off',
'vue/multi-word-component-names': 'off',
'sort-imports': [