-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy patheslint.config.js
More file actions
43 lines (38 loc) · 1.09 KB
/
eslint.config.js
File metadata and controls
43 lines (38 loc) · 1.09 KB
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
import {defineConfig} from 'eslint/config';
import pluginVue from 'eslint-plugin-vue';
import globals from 'globals';
// https://eslint.org/docs/latest/use/configure/
export default defineConfig([
...pluginVue.configs['flat/vue2-essential'],
{
files: [
'addon/**/*.js',
'addon/**/*.vue',
'plugins/**/*.js',
'translate/**/*.js',
],
ignores: [
'addon/dist/',
'addon/node_modules/',
'addon/src/js/vue.runtime.esm.js',
],
languageOptions: {
sourceType: 'module',
globals: {
...globals.browser,
...globals.webextensions,
},
},
rules: {
'no-const-assign': 'error',
'no-unreachable': 'error',
'no-mixed-spaces-and-tabs': 'error',
'valid-typeof': 'error',
// 'no-redeclare': 'error',
'no-undef': 'error',
'no-unused-vars': 'warn',
// 'no-extra-semi': 'warn',
// 'semi': 'warn',
},
},
]);