-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
69 lines (60 loc) · 1.5 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
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
const { resolve } = require('path');
module.exports = {
root: true,
parserOptions: {
extraFileExtensions: ['.vue'],
parser: '@typescript-eslint/parser',
// project: resolve(__dirname, './tsconfig.json'),
project: './tsconfig.json',
tsconfigRootDir: __dirname,
ecmaVersion: 2020,
sourceType: 'module'
},
env: {
browser: true
},
ignorePatterns: [
'.eslintrc.js',
],
extends: [
'./configs/eslintrc/recommended',
],
plugins: [
],
globals: {
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
__QUASAR_SSR_SERVER__: 'readonly',
__QUASAR_SSR_CLIENT__: 'readonly',
__QUASAR_SSR_PWA__: 'readonly',
process: 'readonly',
Capacitor: 'readonly',
chrome: 'readonly'
},
settings: {
'import/resolver': {
alias: {
map: [
// https://www.npmjs.com/package/eslint-import-resolver-alias#usage
// https://quasar.dev/quasar-cli/handling-webpack#webpack-aliases
['src', resolve(__dirname, './src')],
['app', resolve(__dirname)],
['components', resolve(__dirname, './src/components')],
['layouts', resolve(__dirname, './src/layouts')],
['pages', resolve(__dirname, './src/pages')],
['assets', resolve(__dirname, './src/assets')],
['boot', resolve(__dirname, './src/boot')],
],
extensions: [
'.js',
'.vue',
'.json',
'.ts',
'.d.ts',
],
},
},
},
rules: {
},
};