金融产品设计及数字化营销沙盘
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.

38 lines
1.0 KiB

1 year ago
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',
},
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,
},
},
],
};