Skip to content

Commit 93e7783

Browse files
feat(eslint): add eslint-plugin-pnpm (#267)
* feat(eslint): add eslint-plugin-pnpm * Update stylistic * Update changeset
1 parent e8cfad2 commit 93e7783

22 files changed

Lines changed: 170 additions & 70 deletions

File tree

.changeset/brown-ants-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/eslint-config': minor
3+
---
4+
5+
chore: update @stylistic/eslint-plugin

.changeset/slow-cougars-cut.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@tanstack/config': minor
3+
'@tanstack/eslint-config': minor
4+
---
5+
6+
feat: add eslint-plugin-pnpm

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// @ts-check
2+
3+
import { tanstackConfig } from './packages/eslint-config/src/index.js'
4+
5+
export default [...tanstackConfig]

integrations/react/tests/build.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readdirSync, readFileSync } from 'node:fs'
1+
import { readFileSync, readdirSync } from 'node:fs'
22
import { fileURLToPath } from 'node:url'
33
import { dirname, resolve } from 'node:path'
44
import { describe, expect, it } from 'vitest'

integrations/vanilla/tests/build.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readdirSync, readFileSync } from 'node:fs'
1+
import { readFileSync, readdirSync } from 'node:fs'
22
import { fileURLToPath } from 'node:url'
33
import { dirname, resolve } from 'node:path'
44
import { describe, expect, it } from 'vitest'

integrations/vue/tests/build.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readdirSync, readFileSync } from 'node:fs'
1+
import { readFileSync, readdirSync } from 'node:fs'
22
import { fileURLToPath } from 'node:url'
33
import { dirname, resolve } from 'node:path'
44
import { describe, expect, it } from 'vitest'

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test:ci": "nx run-many --targets=test:eslint,test:types,test:build,test:sherif,build",
1515
"test:build": "nx affected --target=test:build",
1616
"test:types": "nx affected --target=test:types",
17-
"test:eslint": "nx affected --target=test:eslint",
17+
"test:eslint": "eslint '**/*'",
1818
"test:format": "pnpm run prettier --check",
1919
"test:sherif": "sherif",
2020
"build": "nx affected --target=build",
@@ -27,6 +27,12 @@
2727
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write",
2828
"changeset:publish": "changeset publish"
2929
},
30+
"nx": {
31+
"includedScripts": [
32+
"test:eslint",
33+
"test:sherif"
34+
]
35+
},
3036
"devDependencies": {
3137
"@changesets/cli": "catalog:",
3238
"@svitejs/changesets-changelog-github-compact": "catalog:",

packages/config/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"scripts": {
1818
"test:types": "tsc",
19-
"test:eslint": "eslint ./src",
2019
"test:build": "publint --strict",
2120
"build": "vite build"
2221
},

packages/eslint-config/eslint.config.js

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

packages/eslint-config/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"scripts": {
1818
"test:types": "tsc",
19-
"test:eslint": "eslint ./src",
2019
"test:build": "publint --strict"
2120
},
2221
"type": "module",
@@ -41,9 +40,12 @@
4140
"@stylistic/eslint-plugin": "catalog:",
4241
"eslint-plugin-import-x": "catalog:",
4342
"eslint-plugin-n": "catalog:",
43+
"eslint-plugin-pnpm": "catalog:",
4444
"globals": "catalog:",
45+
"jsonc-eslint-parser": "catalog:",
4546
"typescript-eslint": "catalog:",
46-
"vue-eslint-parser": "catalog:"
47+
"vue-eslint-parser": "catalog:",
48+
"yaml-eslint-parser": "catalog:"
4749
},
4850
"devDependencies": {
4951
"@types/eslint": "catalog:",

0 commit comments

Comments
 (0)