This repository was archived by the owner on Jul 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.js
51 lines (51 loc) · 1.52 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
45
46
47
48
49
50
51
module.exports = {
root: true,
env: {
browser: true,
node: true
},
extends: [
'@nuxtjs',
'plugin:@typescript-eslint/recommended',
'plugin:vue/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended'
],
plugins: [
],
// https://qiita.com/markey/items/cfeb2a07e11d43676505
// https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb
// parserに'vue-eslint-parser'を指定し、'@typescript-eslint/parser'はparserOptionsに指定する
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true
},
warnOnUnsupportedTypeScriptVersion: false
},
// add your custom rules here
rules: {
'dot-notation': 'off',
'no-console': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'import/no-mutable-exports': 'off',
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
'vue/html-self-closing': ['error', {
html: {
void: 'always',
normal: 'never',
component: 'always'
},
svg: 'always',
math: 'always'
}]
}
}