|
1 | 1 | module.exports={ |
2 | | -'extends':[ |
3 | | -'plugin:vue/essential', |
4 | | -'eslint:recommended' |
| 2 | +parser:'@typescript-eslint/parser',// Specifies the ESLint parser |
| 3 | +parserOptions:{ |
| 4 | +ecmaVersion:2020,// Allows for the parsing of modern ECMAScript features |
| 5 | +sourceType:'module',// Allows for the use of imports |
| 6 | +extraFileExtensions:['.vue'], |
| 7 | +ecmaFeatures:{ |
| 8 | +jsx:true, |
| 9 | +}, |
| 10 | +}, |
| 11 | +extends:[ |
| 12 | +'plugin:@typescript-eslint/recommended',// Uses the recommended rules from the@typescript-eslint/eslint-plugin |
| 13 | +'plugin:prettier/recommended',// Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. |
| 14 | +'eslint:recommended', |
| 15 | +'plugin:vue/vue3-recommended', |
5 | 16 | ], |
| 17 | +// plugins: ['@typescript-eslint'], |
6 | 18 | rules:{ |
7 | | -'vue/return-in-computed-property':'off', |
8 | | -'no-undef':'off' |
9 | | -} |
| 19 | +// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs |
| 20 | +// e.g. "@typescript-eslint/explicit-function-return-type": "off", |
| 21 | +}, |
10 | 22 | } |