Skip to content

Commit 9370c28

Browse files
authored
Merge pull request #13 from xaos7991/resolving-issues
fix: resolve issues
2 parents 66cf651 + d301b3f commit 9370c28

File tree

32 files changed

+355
-109
lines changed

32 files changed

+355
-109
lines changed

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
"tsconfigrootdir",
196196
"tsconfigs",
197197
"tseslint",
198+
"tsgo",
198199
"tsvfs",
199200
"typedef",
200201
"typedefs",

.github/actions/prepare-install/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ runs:
5050
env:
5151
# Other environment variables
5252
HUSKY: '0' # By default do not run HUSKY install
53+
SKIP_POSTINSTALL: 'true'

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
uses: ./.github/actions/prepare-install
7979
with:
8080
node-version: ${{ env.PRIMARY_NODE_VERSION }}
81-
- run: pnpm run generate-configs
81+
- run: pnpm exec nx run generate-configs
8282
- run: git status --porcelain
8383
- if: failure()
8484
run: echo "Outdated result detected from pnpm run generate-configs. Please check in any file changes."
@@ -124,7 +124,7 @@ jobs:
124124
uses: ./.github/actions/prepare-build
125125

126126
- name: Run Check
127-
run: pnpm run ${{ matrix.lint-task }}
127+
run: pnpm ${{ matrix.lint-task }}
128128
env:
129129
ESLINT_USE_FLAT_CONFIG: true
130130

docs/packages/Parser.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ Specifies using TypeScript APIs to generate type information for rules.
294294
It will automatically use the nearest `tsconfig.json` for each file (like `project: true`).
295295
It can also be configured to also allow type information to be computed for JavaScript files without the `allowJs` compiler option (unlike `project: true`).
296296

297+
See [Typed Linting with `parserOptions.projectService`](/blog/project-service) for more context.
298+
297299
<Tabs groupId="eslint-config">
298300
<TabItem value="Flat Config">
299301

docs/packages/Project_Service.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The typescript-eslint Project Service is a wrapper around TypeScript's "project
1616
These APIs are what editors such as VS Code use to programmatically "open" files and generate TypeScript programs for type information.
1717

1818
:::note
19-
See [Announcing typescript-eslint v8 > Project Service](/blog/announcing-typescript-eslint-v8#project-service) for more details on how lint users interact with the Project Service.
19+
See [Blog > Typed Linting with Project Service](/blog/project-service) for more details on how lint users interact with the Project Service.
2020
:::
2121

2222
```ts

knip.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ export default {
5858
},
5959
'packages/eslint-plugin': {
6060
entry: ['tests/**/*.{bench,test,test-d}.?(cm)ts?(x)', 'tools/**'],
61-
ignore: [
62-
'tests/fixtures/**',
63-
'typings/eslint-rules.d.ts',
64-
'typings/typescript.d.ts',
65-
'docs/**/*.mdx',
66-
],
61+
ignore: ['typings/eslint-rules.d.ts', 'typings/typescript.d.ts'],
62+
ignoreDependencies: ['@types/react'],
63+
project: ['src/**/*.ts!', 'tools/**/*.mts'],
6764

68-
ignoreDependencies: ['@types/react', 'tsx'],
65+
vitest: {
66+
config: ['vitest.config.mts'],
67+
entry: ['tests/**/*.{bench,test,test-d}.?(c|m)ts?(x)'],
68+
project: ['tests/**', '!tests/fixtures/**'],
69+
},
6970
},
7071
'packages/eslint-plugin-internal': {
7172
ignore: ['tests/fixtures/**'],
@@ -168,6 +169,7 @@ export default {
168169
'@docusaurus/BrowserOnly',
169170
'@docusaurus/module-type-aliases',
170171
'@generated/docusaurus.config',
172+
'@typescript-eslint/website-eslint',
171173
'^@site/.*',
172174
'^@theme/.*',
173175
'^@theme-original/.*',
@@ -194,6 +196,7 @@ export default {
194196
'vt',
195197
'@typescript-eslint/tsconfig-utils',
196198
'@typescript-eslint/type-utils',
199+
'@typescript-eslint/tsconfig-utils',
197200
],
198201
},
199202
'tools/dummypkg': {},

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"check-format": "prettier --check .",
2828
"check-spelling": "cspell --config=.cspell.json \"**/*.{md,mdx,ts,mts,cts,js,cjs,mjs,tsx,jsx}\" --no-progress --show-context --show-suggestions",
2929
"clean": "nx run-many -t clean --parallel=20",
30-
"format": "prettier --ignore-path=$PROJECT_CWD/.prettierignore --config=$PROJECT_CWD/.prettierrc.json --write .",
30+
"format": "prettier --ignore-path=%PNPM_SCRIPT_SRC_DIR%/.prettierignore --config=%PNPM_SCRIPT_SRC_DIR%/.prettierrc.json --write %INIT_CWD%",
3131
"generate-breaking-changes": "nx run eslint-plugin:generate-breaking-changes",
3232
"generate-configs": "tsx tools/scripts/generate-configs.mts",
3333
"generate-contributors": "tsx tools/scripts/generate-contributors.mts",
3434
"generate-lib": "tsx tools/scripts/generate-lib.mts",
3535
"generate-sponsors": "tsx tools/scripts/generate-sponsors.mts",
3636
"generate-website-dts": "nx run website:generate-website-dts",
3737
"lint-fix": "pnpm run lint --fix",
38-
"lint-markdown-fix": "pnpm lint-markdown --fix",
38+
"lint-markdown-fix": "pnpm run lint-markdown --fix",
3939
"lint-markdown": "markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore",
4040
"lint-stylelint": "nx lint website stylelint",
4141
"lint": "nx run-many -t lint",
@@ -45,8 +45,7 @@
4545
"start": "nx run website:start",
4646
"test": "nx run-many -t test --exclude integration-tests website website-eslint",
4747
"test-integration": "nx run integration-tests:test",
48-
"typecheck": "nx run-many -t typecheck",
49-
"knip": "knip"
48+
"typecheck": "nx run-many -t typecheck"
5049
},
5150
"engines": {
5251
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"

packages/ast-spec/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"types": "dist/index.d.ts",
3333
"scripts": {
3434
"//": "These package scripts are mostly here for convenience. Task running is handled by Nx at the root level.",
35-
"build": "tsc -b tsconfig.build.json && api-extractor run --local --config=./api-extractor.json",
35+
"build": "pnpm -w exec nx build",
3636
"clean": "rimraf dist/ coverage/",
3737
"clean-fixtures": "rimraf -g \"./src/**/fixtures/**/snapshots\"",
38-
"format": "pnpm --workspace-root run format",
39-
"lint": "pnpm --workspace-root exec nx lint",
40-
"test": "pnpm --workspace-root exec nx test",
41-
"typecheck": "pnpm --workspace-root exec nx typecheck"
38+
"format": "pnpm -w run format",
39+
"lint": "pnpm -w exec nx lint",
40+
"test": "pnpm -w exec nx test",
41+
"typecheck": "pnpm -w exec nx typecheck"
4242
},
4343
"funding": {
4444
"type": "opencollective",

packages/eslint-plugin-internal/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"license": "MIT",
1616
"scripts": {
1717
"//": "These package scripts are mostly here for convenience. Task running is handled by Nx at the root level.",
18-
"build": "pnpm --workspace-root exec nx build",
18+
"build": "pnpm -w exec nx build",
1919
"clean": "rimraf dist/ coverage/",
20-
"format": "pnpm --workspace-root run format",
21-
"lint": "pnpm --workspace-root exec nx lint",
22-
"test": "pnpm --workspace-root exec nx test",
23-
"typecheck": "pnpm --workspace-root exec nx typecheck"
20+
"format": "pnpm -w run format",
21+
"lint": "pnpm -w exec nx lint",
22+
"test": "pnpm -w exec nx test",
23+
"typecheck": "pnpm -w exec nx typecheck"
2424
},
2525
"dependencies": {
2626
"@prettier/sync": "^0.5.1",

packages/eslint-plugin/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@
5050
],
5151
"scripts": {
5252
"//": "These package scripts are mostly here for convenience. Task running is handled by Nx at the root level.",
53-
"build": "pnpm --workspace-root exec nx build",
53+
"build": "pnpm -w exec nx build",
5454
"clean": "rimraf dist/ coverage/",
55-
"format": "pnpm --workspace-root run format",
55+
"format": "pnpm -w run format",
5656
"generate-breaking-changes": "tsx tools/generate-breaking-changes.mts",
57-
"generate-configs": "pnpm --workspace-root run generate-configs",
58-
"lint": "pnpm --workspace-root exec nx lint",
59-
"test": "pnpm --workspace-root exec nx test",
57+
"generate-configs": "pnpm -w run generate-configs",
58+
"lint": "pnpm -w exec nx lint",
59+
"test": "pnpm -w exec nx test",
6060
"test-single": "vitest --run --config=./vitest.config.mts --no-coverage",
61-
"typecheck": "pnpm --workspace-root exec nx typecheck"
61+
"typecheck": "pnpm -w exec nx typecheck"
6262
},
6363
"dependencies": {
6464
"@eslint-community/regexpp": "^4.10.0",
@@ -97,7 +97,7 @@
9797
"vitest": "^3.1.3"
9898
},
9999
"peerDependencies": {
100-
"@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0",
100+
"@typescript-eslint/parser": "^8.33.0",
101101
"eslint": "^8.57.0 || ^9.0.0",
102102
"typescript": ">=4.8.4 <5.9.0"
103103
},

0 commit comments

Comments
 (0)