-
-
Notifications
You must be signed in to change notification settings - Fork 717
Expand file tree
/
Copy patheslint.config.js
More file actions
28 lines (26 loc) · 702 Bytes
/
eslint.config.js
File metadata and controls
28 lines (26 loc) · 702 Bytes
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
import jsdoc from "eslint-plugin-jsdoc";
import eslintjs from "@eslint/js";
import globals from "globals";
const {configs: eslintConfigs} = eslintjs;
export default [
jsdoc.configs["flat/recommended"],
eslintConfigs["recommended"],
{
languageOptions: {
globals: {
console: false,
...globals.browser, // EventTarget, Event
}
},
rules: {
"no-var": "error",
"jsdoc/require-param-description": "off",
"jsdoc/require-returns-description": "off",
"jsdoc/tag-lines": ["error", "any", { startLines: 1 }],
"no-unused-vars": ["error", {
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}]
},
},
];