-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
43 lines (42 loc) · 1.12 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
42
43
const { defineConfig } = require('eslint-define-config');
module.exports = defineConfig({
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 'latest',
},
env: {
es2021: true,
node: true,
},
plugins: ['prettier'],
extends: [
'plugin:vue/vue3-recommended',
'standard',
'prettier',
'@vue/typescript/recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
semi: 'off',
indent: 'off',
'comma-dangle': 'off',
'space-before-function-paren': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
},
],
'vue/max-attributes-per-line': 'off',
},
});