-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
36 lines (35 loc) · 1.07 KB
/
eslint.config.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
// eslint.config.js
import typescriptEslint from "@typescript-eslint/eslint-plugin"
import jsdoc from "eslint-plugin-jsdoc"
export default [
{
files: ["src/**/*.js"],
ignores: ["node_modules/**", "types/**"],
languageOptions: {
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "./jsconfig.json"
}
},
plugins: {
jsdoc,
"@typescript-eslint": typescriptEslint
},
rules: {
"jsdoc/require-param": "error",
"jsdoc/require-returns": "error",
"jsdoc/check-types": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrors: "none"
}
],
"no-console": "off" // set to warn or error to quickly see where console.log is being used
}
}
]