-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
28 lines (25 loc) · 880 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
extends: ['plugin:vue/vue3-essential', '@vue/eslint-config-typescript/recommended', 'intolerable-style-guide'],
parser: require.resolve('vue-eslint-parser'),
parserOptions: {
project: ['./tsconfig.json', './tsconfig.app.json', './tsconfig.config.json', './tsconfig.vitest.json'],
parser: {
js: 'espree',
jsx: 'espree',
ts: require.resolve('@typescript-eslint/parser'),
tsx: require.resolve('@typescript-eslint/parser'),
// Leave the template parser unspecified, so that it could be determined by `<script lang="...">`
},
extraFileExtensions: ['.vue'],
ecmaFeatures: {
jsx: true,
},
},
rules: {
'import/no-extraneous-dependencies': 'off',
'promise/prefer-await-to-then': 'off',
},
}