generated from recallwei/tornado
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
41 lines (40 loc) · 1.28 KB
/
.eslintrc.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
require('@rushstack/eslint-patch/modern-module-resolution')
const { defineConfig } = require('eslint-define-config')
module.exports = defineConfig({
root: true,
globals: {},
extends: [
'plugin:jsonc/recommended-with-jsonc',
'plugin:markdown/recommended',
'plugin:vue/vue3-recommended',
'@vue/eslint-config-typescript',
'airbnb-base',
'@vue/eslint-config-prettier'
],
plugins: ['html'],
parserOptions: {
ecmaVersion: 'latest'
},
overrides: [
{
files: ['*.json', '*.json5', '*.jsonc'],
parser: 'jsonc-eslint-parser'
}
],
rules: {
quotes: ['error', 'single'],
semi: ['error', 'never'],
'comma-dangle': 'off',
'vue/multi-word-component-names': ['error', { ignores: ['index'] }],
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'import/newline-after-import': 'off',
'import/no-absolute-path': 'off', // For import ./public.
'import/no-unresolved': 'off',
'no-unused-vars': 'off', // Use @typescript-eslint/no-unused-vars to check.
'no-shadow': 'off', // Use @typescript-eslint/no-shadow to check.
'no-undef': 'off', // TypeScript already checked it.
'@typescript-eslint/no-shadow': 'error'
}
})