-
Notifications
You must be signed in to change notification settings - Fork 21
/
eslint.config.mjs
61 lines (53 loc) · 1.42 KB
/
eslint.config.mjs
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// @ts-check
// eslint-disable-next-line import-x/no-extraneous-dependencies
import {
completeConfigBase,
completeConfigMonorepo,
} from "eslint-config-complete";
import tseslint from "typescript-eslint";
import { isaacScriptModConfigBase } from "../eslint-config-isaacscript/src/mod.js";
// @ts-expect-error https://github.com/jrdrg/eslint-plugin-sort-exports/issues/44
import ESLintPluginSortExports from "eslint-plugin-sort-exports";
export default tseslint.config(
...completeConfigBase,
...completeConfigMonorepo,
...isaacScriptModConfigBase,
{
plugins: {
"sort-exports": ESLintPluginSortExports,
},
rules: {
/**
* Defined at: base-typescript-eslint.js
*
* Ark120202, the author of TypeScriptToLua, recommends using triple-slash directives.
*/
"@typescript-eslint/triple-slash-reference": "off",
/**
* Defined at: base-jsdoc.js
*
* The API documentation does not contain entries for every parameter.
*/
"jsdoc/require-param-description": "off",
/** Not defined in the parent configs. */
"sort-exports/sort-exports": [
"warn",
{
sortDir: "asc",
},
],
},
},
{
files: ["src/index.ts"],
rules: {
"sort-exports/sort-exports": "off",
},
},
{
files: ["src/enums/flags/*.ts"],
rules: {
"@typescript-eslint/no-redeclare": "off",
},
},
);