-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.cjs
60 lines (58 loc) · 1.5 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
overrides: [
{
files: ['src/**/*.ts'],
},
],
plugins: ['@typescript-eslint', 'jsdoc', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsdoc/recommended',
'plugin:prettier/recommended',
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'no-console': 'error',
'no-debugger': 'warn',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
semi: ['error', 'never'],
quotes: ['error', 'single'],
// Prettier specific rule
'prettier/prettier': ['error', {
semi: false,
singleQuote: true
}],
// JSDoc-specific rules
'jsdoc/check-alignment': 'warn',
'jsdoc/check-param-names': 'error',
'jsdoc/check-tag-names': 'error',
'jsdoc/check-types': 'error',
'jsdoc/require-param': 'error',
'jsdoc/require-returns': 'error',
"jsdoc/tag-lines": ["error", "any",{"startLines":1}],
"jsdoc/require-returns-type": ["off", {"contexts":["never"]}],
"jsdoc/require-param-type": ["off", {"contexts":["never"]}]
},
ignorePatterns: [
'node_modules',
'.eslintrc.cjs',
'**/*.js',
'**/.cache',
'**/dist',
'**/contracts',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
}