Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

Commit 8f21f06

Browse files
committed
Updated linting.
1 parent 806e45d commit 8f21f06

File tree

6 files changed

+576
-536
lines changed

6 files changed

+576
-536
lines changed

.eslintignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 100 deletions
This file was deleted.

__tests__/lang/name.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { name } from "../../src/lang/name.js";
22

33
describe("name", () => {
44
it("gets name of class", () => {
5-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
65
expect(name(class Foo {})).toBe("Foo");
76
});
87
it("gets name of function", () => {
9-
// eslint-disable-next-line @typescript-eslint/no-empty-function
108
expect(name(function bar() {})).toBe("bar");
119
});
1210
it("gets key of symbol", () => {

eslint.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(
5+
{ ignores: ["dist", "docs", "eslint.config.js", "jest.config.js"] },
6+
eslint.configs.recommended,
7+
tseslint.configs.recommendedTypeChecked,
8+
tseslint.configs.stylisticTypeChecked,
9+
{
10+
languageOptions: {
11+
parserOptions: {
12+
project: ["./src/tsconfig.json", "./__tests__/tsconfig.json"],
13+
tsconfigRootDir: import.meta.dirname,
14+
},
15+
},
16+
},
17+
);

0 commit comments

Comments
 (0)