-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
62 lines (61 loc) · 1.78 KB
/
index.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
import typescriptEslint from 'typescript-eslint'
import vue from 'eslint-plugin-vue'
import vueParser from 'vue-eslint-parser'
import globals from 'globals'
import prettier from 'eslint-config-prettier'
import rules from '@futuredapp/eslint-config-rules'
export default [
prettier,
{
files: ['**/*.{js,mjs,ts,jsx,tsx,vue}'],
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
globals: {
...globals.node,
...globals.browser,
...globals.es2021,
ga: 'readonly', // Google Analytics
cordova: 'readonly',
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
__QUASAR_SSR_SERVER__: 'readonly',
__QUASAR_SSR_CLIENT__: 'readonly',
__QUASAR_SSR_PWA__: 'readonly',
process: 'readonly',
Capacitor: 'readonly',
chrome: 'readonly',
},
},
...rules.core,
},
...typescriptEslint.configs.recommended,
{
files: ['**/*.{ts,tsx,vue}'],
languageOptions: {
parser: typescriptEslint.parser,
parserOptions: {
project: './tsconfig.json',
},
},
...rules.typescript,
},
...vue.configs['flat/essential'],
{
files: ['**/*.vue'],
plugins: {
vue,
},
languageOptions: {
parser: vueParser,
parserOptions: {
extraFileExtensions: ['.vue'],
parser: typescriptEslint.parser,
project: './tsconfig.json',
ecmaVersion: 2021,
sourceType: 'module',
},
},
...rules.vue
},
]