-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (44 loc) · 967 Bytes
/
.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
44
45
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
extends: ['@toruslabs/vue'],
parser: 'vue-eslint-parser',
ignorePatterns: ['*.config.js', '.eslintrc.js', '*.config.mts'],
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 2022,
project: './tsconfig.json'
},
env: {
browser: true,
node: true,
mocha: true
},
rules: {
'vue/multi-word-component-names': 'off',
'no-console': 'off',
'prettier/prettier': [
'error',
{ semi: false, tabWidth: 2, singleQuote: true, printWidth: 100, trailingComma: 'none' }
],
camelcase: 0,
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never'
}
]
},
settings: {
'import/resolver': {
typescript: {
project: './tsconfig.json'
}
}
}
}