forked from Tokyo-Metro-Gov/covid19
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.21 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
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
plugins: ['eslint-plugin-tsdoc', 'simple-import-sort', 'vuejs-accessibility'],
extends: [
'@nuxtjs/eslint-config-typescript',
'prettier',
'plugin:prettier/recommended',
],
rules: {
'vue/multi-word-component-names': 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
},
},
],
'prettier/prettier': [
'error',
{
semi: false,
singleQuote: true,
},
],
'tsdoc/syntax': 'error',
'simple-import-sort/imports': 'error',
'no-restricted-imports': [
'error',
{
patterns: ['./', '../'],
},
],
'vuejs-accessibility/alt-text': 'error',
'vuejs-accessibility/aria-props': 'error',
'vuejs-accessibility/aria-role': ['error', { ignoreNonDOM: true }],
'vuejs-accessibility/aria-unsupported-elements': 'error',
'vuejs-accessibility/form-control-has-label': 'error',
'vuejs-accessibility/heading-has-content': 'error',
'vuejs-accessibility/no-redundant-roles': 'error',
'vuejs-accessibility/role-has-required-aria-props': 'error',
'vuejs-accessibility/tabindex-no-positive': 'error',
},
}