Skip to content

Commit 703a5a8

Browse files
feat(eslint): Add eslint-plugin-unicorn, fix file ignores (#109)
* feat: Add eslint-plugin-unicorn * Remove types, remove some rules * Fix integration
1 parent 08cb047 commit 703a5a8

File tree

11 files changed

+873
-532
lines changed

11 files changed

+873
-532
lines changed

integrations/react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"test:build": "vite build && vitest && publint --strict && attw --pack"
2727
},
2828
"dependencies": {
29-
"@tanstack/query-core": "^5.36.0",
29+
"@tanstack/query-core": "^5.48.0",
3030
"react": "^18.3.1",
3131
"react-dom": "^18.3.1"
3232
},
3333
"devDependencies": {
3434
"@tanstack/config": "<1.0.0",
35-
"@types/react": "^18.3.2",
35+
"@types/react": "^18.3.3",
3636
"@types/react-dom": "^18.3.0",
37-
"@vitejs/plugin-react": "^4.2.1"
37+
"@vitejs/plugin-react": "^4.3.1"
3838
}
3939
}

integrations/react/snap/cjs/index.cjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ const nested = require("./nested/nested.cjs");
66
exports.Component = useClient.Component;
77
exports.test = nested.test;
88
Object.keys(queryCore).forEach((k) => {
9-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
10-
Object.defineProperty(exports, k, {
11-
enumerable: true,
12-
get: () => queryCore[k]
13-
});
9+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
10+
enumerable: true,
11+
get: () => queryCore[k]
12+
});
1413
});
1514
//# sourceMappingURL=index.cjs.map

integrations/react/snap/cjs/index.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
"test:build": "vite build && vitest && publint --strict"
2727
},
2828
"dependencies": {
29-
"vue": "^3.4.27"
29+
"vue": "^3.4.31"
3030
},
3131
"devDependencies": {
3232
"@tanstack/config": "<1.0.0",
33-
"@vitejs/plugin-vue": "^5.0.4"
33+
"@vitejs/plugin-vue": "^5.0.5"
3434
}
3535
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@tanstack/config",
33
"type": "module",
44
"version": "0.8.7",
5-
"packageManager": "pnpm@9.2.0",
5+
"packageManager": "pnpm@9.4.0",
66
"description": "Configuration and tools for publishing and maintaining TanStack projects.",
77
"author": "tannerlinsley",
88
"license": "MIT",
@@ -19,7 +19,6 @@
1919
"exports": {
2020
"./eslint": {
2121
"import": {
22-
"types": "./src/eslint/index.d.ts",
2322
"default": "./src/eslint/index.js"
2423
}
2524
},
@@ -72,12 +71,13 @@
7271
},
7372
"dependencies": {
7473
"@commitlint/parse": "^19.0.3",
75-
"@eslint/js": "^9.5.0",
74+
"@eslint/js": "^8.57.0",
7675
"commander": "^12.1.0",
7776
"current-git-branch": "^1.1.0",
7877
"esbuild-register": "^3.5.0",
7978
"eslint-config-prettier": "^9.1.0",
8079
"eslint-plugin-import-x": "^0.5.1",
80+
"eslint-plugin-unicorn": "^54.0.0",
8181
"globals": "^15.6.0",
8282
"interpret": "^3.1.1",
8383
"jsonfile": "^6.1.0",
@@ -100,17 +100,17 @@
100100
"@types/jsonfile": "^6.1.4",
101101
"@types/liftoff": "^4.0.3",
102102
"@types/minimist": "^1.2.5",
103-
"@types/node": "^20.14.2",
103+
"@types/node": "^20.14.9",
104104
"@types/semver": "^7.5.8",
105105
"@types/v8flags": "^3.1.3",
106106
"eslint": "^8.57.0",
107107
"jsdom": "^24.1.0",
108-
"nx": "^19.2.2",
108+
"nx": "^19.3.2",
109109
"prettier": "^3.3.2",
110110
"publint": "^0.2.8",
111-
"type-fest": "^4.20.0",
112-
"typescript": "^5.4.5",
113-
"vite": "^5.2.13",
111+
"type-fest": "^4.20.1",
112+
"typescript": "^5.5.2",
113+
"vite": "^5.3.2",
114114
"vitest": "^1.6.0"
115115
}
116116
}

0 commit comments

Comments
 (0)