-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
33 lines (30 loc) · 1.02 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
require( '@rushstack/eslint-patch/modern-module-resolution' );
module.exports = {
root: true,
env: {
'vue/setup-compiler-macros': true,
},
extends: [
'wikimedia',
'wikimedia/node',
'wikimedia/client-common',
'wikimedia/vue3-common',
// we do not import any wikimedia/language/es* config:
// if it compiles, we’re allowed to use it
'@wmde/wikimedia-typescript',
'@vue/typescript/recommended',
'plugin:cypress/recommended',
'plugin:vuejs-accessibility/recommended',
],
rules: {
'comma-dangle': [ 'error', 'always-multiline' ],
'vue/component-name-in-template-casing': [ 'error', 'kebab-case', {
registeredComponentsOnly: false, // we don’t use custom elements
} ],
// resetting this back to the default value, to comply with modern vite conventions
'vue/component-tags-order': [ 'error', { order: [ [ 'script', 'template' ], 'style' ] } ],
// rule has no support for our @/ aliases;
// the designated replacement, plugin:import, was a pain so we ditched it
'n/no-missing-import': 'off',
},
};