-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy patheslint.config.js
More file actions
28 lines (27 loc) · 784 Bytes
/
eslint.config.js
File metadata and controls
28 lines (27 loc) · 784 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
const eslint = require("eslint");
const globals = require("globals");
const pluginJs = require("@eslint/js");
const jsdoc = require("eslint-plugin-jsdoc");
/** @type {eslint.Linter.Config[]} */
module.exports = [
pluginJs.configs.recommended,
jsdoc.configs["flat/recommended"],
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
{
languageOptions: { globals: globals.node },
plugins: {
jsdoc,
},
rules: {
"jsdoc/valid-types": "error",
"jsdoc/check-types": "error",
"jsdoc/require-returns-description": "off",
"jsdoc/require-param-description": "off",
"no-unused-vars": "off",
"no-undef": "error",
"semi": [2, "always"],
"quotes": [2, "double"],
"indent": ["error", 2]
}
},
];