forked from listen1/listen1_chrome_extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (30 loc) · 934 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
module.exports = {
globals: {
$ref: 'readonly',
$computed: 'readonly'
},
env: {
browser: true,
es2021: true,
node: true,
webextensions: true
},
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 12,
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
ignorePatterns: 'dist/',
plugins: ['vue', '@typescript-eslint'],
rules: {
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
// NOTICE: turn off setup props destructure warning
// because new rfc suggests props destructure variable is also reactive
// more details please refer to link
// https://github.com/vuejs/rfcs/discussions/369
'vue/no-setup-props-destructure': 'off',
'vue/multi-word-component-names': 'off'
}
};