-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (38 loc) · 1.19 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
const { defineEslintConfig } = require('@ttou/define-config')
module.exports = defineEslintConfig({
root: true,
env: {
browser: true,
node: true
},
extends: [
'eslint:recommended',
'@vue/typescript/recommended',
'plugin:vue/recommended',
'plugin:prettier/recommended'
],
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser'
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'prettier'],
rules: {
'no-undef': 'off',
'no-empty': 'off',
'no-useless-escape': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'prettier/prettier': 'error',
'vue/attribute-hyphenation': 'off',
'vue/multi-word-component-names': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-interface': 'off'
}
})