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.
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
extends: ['plugin:vue/vue3-essential', 'airbnb-base', '@vue/typescript/recommended', '@vue/prettier', '@vue/prettier/@typescript-eslint'],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
// 'no-param-reassign': ['error', { props: true, ignorePropertyModificationsFor: ['state'] }],
|
|
|
|
// 'linebreak-style': [0, 'error', 'windows'],
|
|
|
|
// 'import/prefer-default-export': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
|
|
// '@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
|
|
// // 避免使用Q_作为查询参数时报错
|
|
|
|
// '@typescript-eslint/camelcase': 'off',
|
|
|
|
|
|
|
|
'import/extensions': 'off',
|
|
|
|
'no-nested-ternary': 'off',
|
|
|
|
'no-use-before-define': 'off',
|
|
|
|
'no-unused-expressions': 'off',
|
|
|
|
'no-empty': 'off',
|
|
|
|
'no-console': 'off'
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
'import/resolver': {
|
|
|
|
alias: {
|
|
|
|
map: [['@', './src']],
|
|
|
|
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.vue'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
|
|
|
|
env: {
|
|
|
|
jest: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|