You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
export default {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
es2022: true
|
|
},
|
|
extends: [
|
|
'plugin:vue/vue3-recommended',
|
|
'eslint:recommended',
|
|
'@vue/typescript/recommended'
|
|
],
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: {
|
|
'ts': '@typescript-eslint/parser',
|
|
'js': '@typescript-eslint/parser',
|
|
'<template>': 'espree'
|
|
},
|
|
ecmaVersion: 2022,
|
|
sourceType: 'module',
|
|
extraFileExtensions: ['.vue'],
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
}
|
|
},
|
|
plugins: [
|
|
'@typescript-eslint',
|
|
'vue'
|
|
],
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }]
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.ts', '*.tsx', '*.mts'],
|
|
parser: '@typescript-eslint/parser'
|
|
},
|
|
{
|
|
files: ['*.js', '*.jsx', '*.mjs'],
|
|
parser: '@typescript-eslint/parser'
|
|
}
|
|
],
|
|
settings: {
|
|
'import/resolver': {
|
|
node: {
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', '.mjs', '.mts']
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|