From e9d485fe3b5db8c426ac03b30ed8917df0baa62d Mon Sep 17 00:00:00 2001 From: Pauline Date: Sun, 26 Nov 2023 17:13:07 -0500 Subject: feat(lint): switch to eslint config and formatting (use vscode for autoformat) --- package.json | 46 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 2730d2e..955d41a 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,19 @@ { "name": "@polyfrost/nexus", + "type": "module", "version": "0.0.0", "private": true, + "engines": { + "pnpm": ">=8.0.0", + "npm": "pnpm", + "yarn": "pnpm", + "node": ">=18.17 <19 || >=20.1" + }, "scripts": { "build": "turbo run build", "typecheck": "pnpm -r typecheck", - "format": "prettier --write .", - "lint": "turbo run lint", - "lint:fix": "turbo run lint -- --fix", + "lint": "eslint --cache .", + "lint:fix": "pnpm run lint --fix", "clean": "git clean -qfX .", "prisma": "cd core && cargo prisma", "tauri": "pnpm desktop tauri", @@ -25,32 +31,24 @@ "codegen": "cargo test -p nexus-core api::tests::gen -- --exact" }, "devDependencies": { - "@babel/plugin-syntax-import-assertions": "^7.22.5", - "@ianvs/prettier-plugin-sort-imports": "^4.1.1", - "@storybook/react-vite": "^7.5.1", - "prettier": "^3.0.3", - "prettier-plugin-tailwindcss": "^0.5.6", + "@flowr/eslint-config": "^2.1.1-alpha.15", + "@storybook/react-vite": "^7.5.3", + "eslint-plugin-jsx-a11y": "^6.8.0", + "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.4", "turbo": "^1.10.16", "turbo-ignore": "^1.10.16", - "typescript": "^5.2.2", - "vite": "^4.5.0" - }, - "overrides": { - "@types/node": "~18.17.19" - }, - "engines": { - "pnpm": ">=8.0.0", - "npm": "pnpm", - "yarn": "pnpm", - "node": ">=18.17 <19 || >=20.1" - }, - "eslintConfig": { - "root": true + "typescript": "^5.3.2", + "vite": "^5.0.2" }, "pnpm": { "overrides": { - "zod@<=3.22.2": ">=3.22.3", - "@babel/traverse@<7.23.2": ">=7.23.2" + "@babel/traverse@<7.23.2": ">=7.23.2", + "zod@<=3.22.2": ">=3.22.3" } + }, + "overrides": { + "@types/node": "~18.17.19" } } -- cgit