-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
31 lines (28 loc) · 929 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
// SPDX-FileCopyrightText: 2024 Ethaks <[email protected]>
//
// SPDX-License-Identifier: EUPL-1.2
// @ts-check
import eslint from "@eslint/js";
import teslint from "typescript-eslint";
import prettierConfig from "eslint-config-prettier";
import globals from "globals";
export default teslint.config(
{ ignores: ["dist/", "docs/", "src/pf1spheres.js"] },
eslint.configs.recommended,
...teslint.configs.strict,
...teslint.configs.stylistic,
prettierConfig,
{
rules: {
// Extending classes might not need anything but changes to static members
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
},
},
{
files: ["**/*.cjs"],
languageOptions: { sourceType: "commonjs" },
extends: [teslint.configs.disableTypeChecked],
},
{ files: ["tools/*.js"], languageOptions: { globals: { ...globals.node } } },
);