-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
.eslintrc.js
41 lines (41 loc) · 1.14 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
module.exports = {
root: true,
env: {
node: true,
browser: true,
es6: true,
},
parser: 'vue-eslint-parser',
plugins: ['vue', '@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'prettier',
],
parserOptions: {
tsconfigRootDir: __dirname,
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module',
allowImportExportEverywhere: true,
},
ignorePatterns: ['**/*.test.ts', 'packages/**/dist', 'package.json'],
rules: {
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': 'off',
'space-before-function-paren': 'off',
'max-len': [1, { code: 120 }],
'require-jsdoc': 0,
'no-invalid-this': 0,
'import/no-absolute-path': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/no-deprecated-slot-attribute': 'off',
'vue/require-default-prop': 'off',
'vue/html-self-closing': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 0,
'vue/no-multiple-template-root': 'off',
'vue/first-attribute-linebreak': 'off',
},
}