-
Notifications
You must be signed in to change notification settings - Fork 267
/
.eslintrc.js
25 lines (25 loc) · 930 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
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:jsdoc/recommended-error'],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
rules: {
'no-console': 'error',
'@typescript-eslint/no-explicit-any': 1,
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
'jsdoc/check-param-names': 1,
'jsdoc/require-description': 1,
'jsdoc/require-jsdoc': 1,
'jsdoc/require-param-description': 1,
'jsdoc/require-param-type': 0,
'jsdoc/require-param': 1,
'jsdoc/require-returns-description': 1,
'jsdoc/require-returns-type': 0,
'jsdoc/require-returns': 1,
},
};