-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.cjs
28 lines (26 loc) · 991 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
const { defineConfig } = require('eslint-define-config');
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = defineConfig({
root: true,
env: {
node: true,
browser: true,
},
extends: [
// node_modules/eslint-plugin-vue/lib/configs/vue3-strongly-recommended
'plugin:vue/vue3-strongly-recommended',
// node_modules/eslint/conf/eslint-recommended.js
'eslint:recommended',
// node_modules/@vue/eslint-config-typescript/index.js => node_modules/@typescript-eslint/dist/configs/eslint-recommended.js
'@vue/eslint-config-typescript/recommended',
// node_modules/@vue/eslint-config-prettier/index.js => node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js
'@vue/eslint-config-prettier',
'./.eslintrc-auto-import.json',
],
rules: {
// 下面的配置能够覆盖之前的配置
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
});