-
Notifications
You must be signed in to change notification settings - Fork 235
Expand file tree
/
Copy patheslint.config.mjs
More file actions
36 lines (33 loc) · 1.27 KB
/
eslint.config.mjs
File metadata and controls
36 lines (33 loc) · 1.27 KB
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
import eslint from "@eslint/js";
import jsdoc from 'eslint-plugin-jsdoc';
import tseslint from "typescript-eslint";
// For documentation see
// https://typescript-eslint.io/packages/typescript-eslint#config
export default tseslint.config({
extends: [
eslint.configs.recommended,
jsdoc.configs['flat/recommended'],
...tseslint.configs.recommended
],
languageOptions: {
parserOptions: {
project: true,
}
},
files: ['ts/**/*.ts'],
ignores: ["**/*.d.ts", "**/*.js", "**/cjs/*"],
"rules": {
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["error",
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_" }
],
"@typescript-eslint/no-empty-object-type": ["error", {"allowInterfaces": "with-single-extends"}],
"@typescript-eslint/no-unused-expressions": ["error", { "allowTernary": true }],
"prefer-const": ["error", {"destructuring": "all"}],
"jsdoc/tag-lines": ["warn", "always", {"count": 0, "startLines": 1}],
"jsdoc/reject-any-type": "off",
"jsdoc/reject-function-type": "off"
}
});