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

Commit 7567bd6

Browse files
authored
Self use eslint-types (#253)
1 parent 982d1d9 commit 7567bd6

File tree

3 files changed

+45
-22
lines changed

3 files changed

+45
-22
lines changed

.eslintrc.cjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// @ts-check
2-
const { defineConfig } = require('.');
2+
const { defineConfig } = require('eslint-define-config');
33
const { readGitignoreFiles } = require('eslint-gitignore');
44

5+
/// <reference types="@eslint-types/prettier" />
6+
/// <reference types="@eslint-types/typescript-eslint" />
7+
58
module.exports = defineConfig({
69
ignorePatterns: [
710
...readGitignoreFiles(),

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
"tsconfig.json"
6464
],
6565
"devDependencies": {
66+
"@eslint-types/prettier": "~5.0.1",
67+
"@eslint-types/typescript-eslint": "~6.9.0",
6668
"@types/eslint": "~8.44.3",
6769
"@types/json-schema": "~7.0.13",
6870
"@types/node": "~20.8.3",
@@ -72,6 +74,7 @@
7274
"change-case": "~4.1.2",
7375
"eslint": "~8.51.0",
7476
"eslint-config-prettier": "~9.0.0",
77+
"eslint-define-config": "link:./",
7578
"eslint-gitignore": "~0.1.0",
7679
"eslint-plugin-prettier": "~5.0.0",
7780
"expect-type": "~0.17.3",

pnpm-lock.yaml

+38-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)