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, }, }, ], };