-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (49 loc) · 1004 Bytes
/
.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
module.exports = {
env: {
browser: true,
node: true,
es6: true
},
extends: [
'eslint:recommended',
'plugin:jsdoc/recommended',
'plugin:jsx-a11y/recommended',
'next',
'next/core-web-vitals',
'prettier'
],
settings: {
jsdoc: {
mode: 'typescript',
tagNamePreference: {
returns: 'return'
}
}
},
plugins: ['prettier', 'jsdoc'],
rules: {
'jsdoc/check-indentation': 'warn',
'jsdoc/require-param': 'off',
'jsdoc/require-param-type': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/check-line-alignment': [
'warn',
'always',
{
tags: [
'param',
'return',
'property',
'type',
'default',
'name',
'description'
]
}
],
'jsx-a11y/anchor-is-valid': 'off',
'no-console': ['error', {allow: ['warn', 'error']}],
'prettier/prettier': 'error'
}
}