-
Notifications
You must be signed in to change notification settings - Fork 92
/
.eslintrc.yml
82 lines (71 loc) · 1.63 KB
/
.eslintrc.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
root: true
extends:
- 'eslint:recommended'
- 'airbnb-base'
- 'airbnb-typescript/base'
- 'plugin:vue/base'
- 'plugin:vue/vue3-essential'
- 'plugin:vue/vue3-strongly-recommended'
- 'plugin:vue/vue3-recommended'
- 'plugin:import/typescript'
- '@vue/typescript/recommended'
- 'prettier'
parser: "vue-eslint-parser"
parserOptions:
parser: "@typescript-eslint/parser"
project: './tsconfig.json'
tsconfigRootDir: './'
plugins:
- vue
- '@typescript-eslint'
env:
browser: true
globals:
OC: readonly
n: readonly
t: readonly
settings:
import/resolver:
node:
paths: ['src']
extensions: ['.js','.ts','.d.ts']
typescript:
project: './tsconfig.json'
alias:
map:
- ['cookbook', './src']
- ['icons', './node_modules/vue-material-design-icons']
extensions: ['.js','.ts','.d.ts']
rules:
import/extensions:
- error
- ignorePackages
- js: 'never'
jsx: 'never'
ts: 'never'
tsx: 'never'
no-plusplus:
- error
- allowForLoopAfterthoughts: true
quotes:
- error
- single
- avoidEscape: true
semi:
- error
- always
# disallow certain syntax forms
# http://eslint.org/docs/rules/no-restricted-syntax
no-restricted-syntax:
- error
- ForInStatement
- LabeledStatement
- WithStatement
# While we are still on Vue2, we need this. Remove once on Vue3
vue/no-deprecated-dollar-listeners-api: off
# While we are still on Vue2, we need this. Remove once on Vue3
vue/no-deprecated-v-bind-sync: off
overrides:
- files: [ "src/composables/**/*.js" ]
rules:
import/prefer-default-export: off