-
Notifications
You must be signed in to change notification settings - Fork 4
/
eslint.config.mjs
43 lines (35 loc) · 1.56 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
// This is the configuration file for ESLint, the TypeScript linter:
// https://eslint.org/docs/latest/use/configure/
// @ts-check
import { completeConfigBase } from "eslint-config-complete"; // eslint-disable-line import-x/no-extraneous-dependencies
import { isaacScriptModConfigBase } from "eslint-config-isaacscript"; // eslint-disable-line import-x/no-extraneous-dependencies
import tseslint from "typescript-eslint"; // eslint-disable-line import-x/no-extraneous-dependencies
export default tseslint.config(
// https://github.com/complete-ts/complete/blob/main/packages/eslint-config-complete/src/base.js
...completeConfigBase,
// https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-config-isaacscript/src/base.js
...isaacScriptModConfigBase,
{
rules: {
// Insert changed or disabled rules here, if necessary.
// @template-customization-start
// All classes in this mod are internal only, so there is no need for method modifiers.
"no-restricted-syntax": [
"error",
{
selector: "MethodDefinition[accessibility='public']",
message: 'Using "public" class method modifiers are not allowed.',
},
{
selector: "MethodDefinition[accessibility='private']",
message: 'Using "private" class method modifiers are not allowed.',
},
{
selector: "MethodDefinition[accessibility='protected']",
message: 'Using "protected" class method modifiers are not allowed.',
},
],
// @template-customization-end
},
},
);