-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.eslintrc.js
More file actions
32 lines (32 loc) · 844 Bytes
/
.eslintrc.js
File metadata and controls
32 lines (32 loc) · 844 Bytes
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
module.exports = {
env: {
'vitest/env': true,
browser: true,
node: true,
},
plugins: ['vitest', 'vue'],
extends: ['eslint:recommended', 'plugin:vue/recommended', 'prettier'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
requireConfigFile: false,
},
rules: {
'linebreak-style': ['error', 'unix'],
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: false,
argsIgnorePattern: '^_',
},
],
'no-var': 'error',
// We need a proper logging solution (see https://github.com/sanger/limber/issues/836),
// but until then:
'no-console': ['error', { allow: ['warn', 'error', 'log'] }],
// Legacy in from the old days. We should remove these:
'vue/prop-name-casing': ['warn'],
},
}