-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
62 lines (62 loc) · 1.55 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
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
root: true,
env: {
browser: true,
node: true,
'jest/globals': true,
},
extends: [
'@nuxtjs/eslint-config-typescript',
'eslint:recommended',
'plugin:jest/recommended',
'prettier',
],
plugins: ['jest'],
// add your custom rules here
rules: {
'no-console': [
'error',
{
allow: ['warn', 'error'],
},
],
'no-trailing-spaces': 'error',
'no-empty': [
'error',
{
allowEmptyCatch: true,
},
],
camelcase: 'off',
// '@typescript-eslint/camelcase': 'off',
// '@typescript-eslint/explicit-function-return-type': 'off',
eqeqeq: 'error',
// 'prefer-template': 'error',
// https://teppeis.hatenablog.com/entry/2019/02/typescript-eslint
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': 'error',
'vue/max-attributes-per-line': 'off',
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 'error',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'always',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
'vue/singleline-html-element-content-newline': 'off',
'unicorn/number-literal-case': 'off',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',
},
}