-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
30 lines (25 loc) · 1.05 KB
/
.eslintrc.cjs
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
// This is the configuration file for ESLint, the TypeScript linter:
// https://eslint.org/docs/latest/use/configure/
/** @type {import("eslint").Linter.Config} */
const config = {
extends: [
// The linter base is the shared IsaacScript config:
// https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-config-isaacscript/base.js
"eslint-config-isaacscript/base",
],
// Don't bother linting compiled output.
ignorePatterns: ["**/dist/**", "*.min.js"],
parserOptions: {
// ESLint needs to know about the project's TypeScript settings in order for TypeScript-specific
// things to lint correctly. We do not point this at "./tsconfig.json" because certain files
// (such at this file) should be linted but not included in the actual project output.
project: "./tsconfig.eslint.json",
},
rules: {
// Insert changed or disabled rules here, if necessary.
// @template-customization-start
"isaacscript/require-variadic-function-argument": "off",
// @template-customization-end
},
};
module.exports = config;