-
-
Notifications
You must be signed in to change notification settings - Fork 702
/
Copy patheslint.config.js
34 lines (31 loc) · 1009 Bytes
/
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
import jsdoc from "eslint-plugin-jsdoc";
import {configs as tseslintConfigs} from 'typescript-eslint';
import eslintjs from "@eslint/js";
const {configs: eslintConfigs} = eslintjs;
export default [
jsdoc.configs["flat/recommended"],
eslintConfigs["recommended"],
...tseslintConfigs.recommended,
{
languageOptions: {
// if we ever use more globals than this, pull in the `globals` package
globals: {
console: false
}
},
rules: {
"jsdoc/require-param-description": "off",
"jsdoc/require-returns-description": "off",
"jsdoc/tag-lines": ["error", "any", { startLines: 1 }],
// temporary until we do a cleanup
"no-var": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"prefer-rest-params": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}],
},
},
];