Remove prettier in favor of @stylistic/eslint-plugin

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-20 12:13:07 +04:00
parent c24726b481
commit 27428377c6
16 changed files with 266 additions and 450 deletions

View File

@@ -9,7 +9,6 @@ MKDIR ?= mkdir -p
NPM ?= npm NPM ?= npm
NPX ?= npx NPX ?= npx
OPENSSL ?= openssl OPENSSL ?= openssl
PRETTIER ?= $(NPX) prettier
SED ?= sed SED ?= sed
SYFT ?= syft SYFT ?= syft
TAIL ?= tail TAIL ?= tail

View File

@@ -41,7 +41,6 @@
}, },
"devDependencies": { "devDependencies": {
"@probo/eslint-config": "1.0.0", "@probo/eslint-config": "1.0.0",
"@probo/prettier": "1.0.0",
"@tailwindcss/vite": "^4.1.7", "@tailwindcss/vite": "^4.1.7",
"@types/node": "^22.15.21", "@types/node": "^22.15.21",
"@types/react": "^19.1.2", "@types/react": "^19.1.2",
@@ -53,11 +52,9 @@
"eslint": "^9.25.0", "eslint": "^9.25.0",
"globals": "^16.0.0", "globals": "^16.0.0",
"graphql": "^16.11.0", "graphql": "^16.11.0",
"prettier": "^3.5.3",
"relay-compiler": "^19.0.0", "relay-compiler": "^19.0.0",
"tailwindcss": "^4.1.7", "tailwindcss": "^4.1.7",
"typescript": "~5.8.3", "typescript": "~5.8.3",
"vite": "^6.4.1" "vite": "^6.4.1"
}, }
"prettier": "@probo/prettier"
} }

View File

@@ -32,7 +32,6 @@
}, },
"devDependencies": { "devDependencies": {
"@probo/eslint-config": "1.0.0", "@probo/eslint-config": "1.0.0",
"@probo/prettier": "1.0.0",
"@tailwindcss/vite": "^4.1.7", "@tailwindcss/vite": "^4.1.7",
"@types/node": "^22.15.21", "@types/node": "^22.15.21",
"@types/react": "^19.1.2", "@types/react": "^19.1.2",
@@ -43,13 +42,11 @@
"babel-plugin-relay": "^19.0.0", "babel-plugin-relay": "^19.0.0",
"eslint": "^9.25.0", "eslint": "^9.25.0",
"graphql": "^16.11.0", "graphql": "^16.11.0",
"prettier": "^3.5.3",
"relay-compiler": "^19.0.0", "relay-compiler": "^19.0.0",
"tailwindcss": "^4.1.7", "tailwindcss": "^4.1.7",
"typescript": "~5.8.3", "typescript": "~5.8.3",
"vite": "^6.4.1" "vite": "^6.4.1"
}, },
"prettier": "@probo/prettier",
"volta": { "volta": {
"node": "24.4.0" "node": "24.4.0"
} }

133
package-lock.json generated
View File

@@ -14,7 +14,6 @@
"react-dom": "^19.2.1" "react-dom": "^19.2.1"
}, },
"devDependencies": { "devDependencies": {
"prettier": "^3.5.3",
"turbo": "^2.5.3" "turbo": "^2.5.3"
}, },
"engines": { "engines": {
@@ -52,7 +51,6 @@
}, },
"devDependencies": { "devDependencies": {
"@probo/eslint-config": "1.0.0", "@probo/eslint-config": "1.0.0",
"@probo/prettier": "1.0.0",
"@tailwindcss/vite": "^4.1.7", "@tailwindcss/vite": "^4.1.7",
"@types/node": "^22.15.21", "@types/node": "^22.15.21",
"@types/react": "^19.1.2", "@types/react": "^19.1.2",
@@ -64,7 +62,6 @@
"eslint": "^9.25.0", "eslint": "^9.25.0",
"globals": "^16.0.0", "globals": "^16.0.0",
"graphql": "^16.11.0", "graphql": "^16.11.0",
"prettier": "^3.5.3",
"relay-compiler": "^19.0.0", "relay-compiler": "^19.0.0",
"tailwindcss": "^4.1.7", "tailwindcss": "^4.1.7",
"typescript": "~5.8.3", "typescript": "~5.8.3",
@@ -95,7 +92,6 @@
}, },
"devDependencies": { "devDependencies": {
"@probo/eslint-config": "1.0.0", "@probo/eslint-config": "1.0.0",
"@probo/prettier": "1.0.0",
"@tailwindcss/vite": "^4.1.7", "@tailwindcss/vite": "^4.1.7",
"@types/node": "^22.15.21", "@types/node": "^22.15.21",
"@types/react": "^19.1.2", "@types/react": "^19.1.2",
@@ -106,7 +102,6 @@
"babel-plugin-relay": "^19.0.0", "babel-plugin-relay": "^19.0.0",
"eslint": "^9.25.0", "eslint": "^9.25.0",
"graphql": "^16.11.0", "graphql": "^16.11.0",
"prettier": "^3.5.3",
"relay-compiler": "^19.0.0", "relay-compiler": "^19.0.0",
"tailwindcss": "^4.1.7", "tailwindcss": "^4.1.7",
"typescript": "~5.8.3", "typescript": "~5.8.3",
@@ -738,7 +733,9 @@
} }
}, },
"node_modules/@eslint/js": { "node_modules/@eslint/js": {
"version": "9.39.1", "version": "9.39.2",
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz",
"integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0" "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -1317,18 +1314,6 @@
"node": ">=14" "node": ">=14"
} }
}, },
"node_modules/@pkgr/core": {
"version": "0.2.9",
"resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz",
"integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==",
"license": "MIT",
"engines": {
"node": "^12.20.0 || ^14.18.0 || >=16.0.0"
},
"funding": {
"url": "https://opencollective.com/pkgr"
}
},
"node_modules/@polka/url": { "node_modules/@polka/url": {
"version": "1.0.0-next.29", "version": "1.0.0-next.29",
"dev": true, "dev": true,
@@ -1366,10 +1351,6 @@
"resolved": "packages/n8n-node", "resolved": "packages/n8n-node",
"link": true "link": true
}, },
"node_modules/@probo/prettier": {
"resolved": "packages/prettier",
"link": true
},
"node_modules/@probo/react-lazy": { "node_modules/@probo/react-lazy": {
"resolved": "packages/react-lazy", "resolved": "packages/react-lazy",
"link": true "link": true
@@ -5491,7 +5472,9 @@
} }
}, },
"node_modules/eslint": { "node_modules/eslint": {
"version": "9.39.1", "version": "9.39.2",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz",
"integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/eslint-utils": "^4.8.0",
@@ -5500,7 +5483,7 @@
"@eslint/config-helpers": "^0.4.2", "@eslint/config-helpers": "^0.4.2",
"@eslint/core": "^0.17.0", "@eslint/core": "^0.17.0",
"@eslint/eslintrc": "^3.3.1", "@eslint/eslintrc": "^3.3.1",
"@eslint/js": "9.39.1", "@eslint/js": "9.39.2",
"@eslint/plugin-kit": "^0.4.1", "@eslint/plugin-kit": "^0.4.1",
"@humanfs/node": "^0.16.6", "@humanfs/node": "^0.16.6",
"@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/module-importer": "^1.0.1",
@@ -5547,18 +5530,6 @@
} }
} }
}, },
"node_modules/eslint-config-prettier": {
"version": "9.1.2",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.2.tgz",
"integrity": "sha512-iI1f+D2ViGn+uvv5HuHVUamg8ll4tN+JRHGc6IJi4TP9Kl976C57fzPXgseXNs8v0iA8aSJpHsTWjDb9QJamGQ==",
"license": "MIT",
"bin": {
"eslint-config-prettier": "bin/cli.js"
},
"peerDependencies": {
"eslint": ">=7.0.0"
}
},
"node_modules/eslint-config-riot": { "node_modules/eslint-config-riot": {
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
@@ -6129,36 +6100,6 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/eslint-plugin-prettier": {
"version": "5.5.5",
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.5.tgz",
"integrity": "sha512-hscXkbqUZ2sPithAuLm5MXL+Wph+U7wHngPBv9OMWwlP8iaflyxpjTYZkmdgB4/vPIhemRlBEoLrH7UC1n7aUw==",
"license": "MIT",
"dependencies": {
"prettier-linter-helpers": "^1.0.1",
"synckit": "^0.11.12"
},
"engines": {
"node": "^14.18.0 || >=16.0.0"
},
"funding": {
"url": "https://opencollective.com/eslint-plugin-prettier"
},
"peerDependencies": {
"@types/eslint": ">=8.0.0",
"eslint": ">=8.0.0",
"eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0",
"prettier": ">=3.0.0"
},
"peerDependenciesMeta": {
"@types/eslint": {
"optional": true
},
"eslint-config-prettier": {
"optional": true
}
}
},
"node_modules/eslint-plugin-react-hooks": { "node_modules/eslint-plugin-react-hooks": {
"version": "5.2.0", "version": "5.2.0",
"license": "MIT", "license": "MIT",
@@ -6336,12 +6277,6 @@
"version": "3.1.3", "version": "3.1.3",
"license": "MIT" "license": "MIT"
}, },
"node_modules/fast-diff": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz",
"integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==",
"license": "Apache-2.0"
},
"node_modules/fast-glob": { "node_modules/fast-glob": {
"version": "3.2.12", "version": "3.2.12",
"dev": true, "dev": true,
@@ -9329,18 +9264,6 @@
"url": "https://github.com/prettier/prettier?sponsor=1" "url": "https://github.com/prettier/prettier?sponsor=1"
} }
}, },
"node_modules/prettier-linter-helpers": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.1.tgz",
"integrity": "sha512-SxToR7P8Y2lWmv/kTzVLC1t/GDI2WGjMwNhLLE9qtH8Q13C+aEmuRlzDst4Up4s0Wc8sF2M+J57iB3cMLqftfg==",
"license": "MIT",
"dependencies": {
"fast-diff": "^1.1.2"
},
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/pretty-format": { "node_modules/pretty-format": {
"version": "27.5.1", "version": "27.5.1",
"dev": true, "dev": true,
@@ -10908,21 +10831,6 @@
"url": "https://github.com/sponsors/ljharb" "url": "https://github.com/sponsors/ljharb"
} }
}, },
"node_modules/synckit": {
"version": "0.11.12",
"resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.12.tgz",
"integrity": "sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==",
"license": "MIT",
"dependencies": {
"@pkgr/core": "^0.2.9"
},
"engines": {
"node": "^14.18.0 || >=16.0.0"
},
"funding": {
"url": "https://opencollective.com/synckit"
}
},
"node_modules/tailwind-variants": { "node_modules/tailwind-variants": {
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
@@ -12279,8 +12187,6 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vitest": "^3.1.3" "vitest": "^3.1.3"
} }
@@ -12309,15 +12215,10 @@
"dependencies": { "dependencies": {
"@eslint/js": "^9.25.0", "@eslint/js": "^9.25.0",
"@stylistic/eslint-plugin": "^4.2.0", "@stylistic/eslint-plugin": "^4.2.0",
"eslint-config-prettier": "^9.1.0", "eslint": "^9.39.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-hooks": "^5.2.0",
"globals": "^16.0.0", "globals": "^16.0.0",
"typescript-eslint": "^8.30.1" "typescript-eslint": "^8.30.1"
},
"peerDependencies": {
"eslint": "^9.25.0",
"prettier": "^3.5.3"
} }
}, },
"packages/helpers": { "packages/helpers": {
@@ -12328,8 +12229,6 @@
"@probo/coredata": "^1.0.0" "@probo/coredata": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vitest": "^3.1.3" "vitest": "^3.1.3"
} }
@@ -12339,8 +12238,6 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vitest": "^3.1.3" "vitest": "^3.1.3"
} }
@@ -12500,14 +12397,6 @@
"node": "*" "node": "*"
} }
}, },
"packages/prettier": {
"name": "@probo/prettier",
"version": "1.0.0",
"license": "ISC",
"peerDependencies": {
"prettier": "^3.5.3"
}
},
"packages/react-lazy": { "packages/react-lazy": {
"name": "@probo/react-lazy", "name": "@probo/react-lazy",
"version": "1.0.0", "version": "1.0.0",
@@ -12523,8 +12412,6 @@
"graphql": "^16.12.0" "graphql": "^16.12.0"
}, },
"devDependencies": { "devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vitest": "^3.1.3" "vitest": "^3.1.3"
}, },
@@ -12540,8 +12427,6 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vitest": "^3.1.3" "vitest": "^3.1.3"
}, },
@@ -12587,7 +12472,6 @@
"devDependencies": { "devDependencies": {
"@chromatic-com/storybook": "^3.2.6", "@chromatic-com/storybook": "^3.2.6",
"@probo/eslint-config": "1.0.0", "@probo/eslint-config": "1.0.0",
"@probo/prettier": "1.0.0",
"@rollup/pluginutils": "^5.1.4", "@rollup/pluginutils": "^5.1.4",
"@storybook/addon-essentials": "^8.6.13", "@storybook/addon-essentials": "^8.6.13",
"@storybook/blocks": "^8.6.13", "@storybook/blocks": "^8.6.13",
@@ -12604,7 +12488,6 @@
"@vitest/coverage-v8": "^3.1.3", "@vitest/coverage-v8": "^3.1.3",
"eslint": "^9.25.0", "eslint": "^9.25.0",
"playwright": "^1.55.1", "playwright": "^1.55.1",
"prettier": "^3.5.3",
"react": "^19.1.0", "react": "^19.1.0",
"react-docgen": "^7.1.1", "react-docgen": "^7.1.1",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",

View File

@@ -12,15 +12,12 @@
"build": "turbo run build", "build": "turbo run build",
"dev": "turbo run dev", "dev": "turbo run dev",
"lint": "turbo run lint", "lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"check": "turbo run check", "check": "turbo run check",
"relay": "turbo run relay" "relay": "turbo run relay"
}, },
"devDependencies": { "devDependencies": {
"prettier": "^3.5.3",
"turbo": "^2.5.3" "turbo": "^2.5.3"
}, },
"prettier": "@probo/prettier",
"graphql": { "graphql": {
"schema": "./pkg/server/api/console/v1/schema.graphql" "schema": "./pkg/server/api/console/v1/schema.graphql"
}, },

View File

@@ -5,16 +5,12 @@
"main": "./src/index.ts", "main": "./src/index.ts",
"scripts": { "scripts": {
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest", "test:watch": "vitest"
"format": "prettier --write ./src"
}, },
"prettier": "@probo/prettier",
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vitest": "^3.1.3" "vitest": "^3.1.3"
} }

View File

@@ -3,141 +3,141 @@ import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks"; import reactHooks from "eslint-plugin-react-hooks";
import tseslint from "typescript-eslint"; import tseslint from "typescript-eslint";
import stylistic from "@stylistic/eslint-plugin"; import stylistic from "@stylistic/eslint-plugin";
import prettier from "eslint-plugin-prettier";
import prettierConfig from "eslint-config-prettier";
/** /**
* Base ESLint configuration with strict and stylistic rules * Base ESLint configuration with strict and stylistic rules
*/ */
export function createConfig({ export function createConfig({
files = ["**/*.{ts,tsx}"], files = ["**/*.{ts,tsx}"],
languageOptions = {}, languageOptions = {},
react = false, react = false,
project = true, project = true,
tsconfigRootDir, tsconfigRootDir,
} = {}) { } = {}) {
const configs = [ const configs = [
{ ignores: ["dist", "node_modules", "**/*.d.ts"] }, { ignores: ["dist", "node_modules", "**/*.d.ts"] },
js.configs.recommended, js.configs.recommended,
...tseslint.configs.recommendedTypeChecked, ...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked, {
{ files,
files, languageOptions: (() => {
languageOptions: (() => { const mergedGlobals = {
const mergedGlobals = { ...globals.node,
...globals.node, ...globals.es2021,
...globals.es2021, ...(languageOptions.globals || {}),
...(languageOptions.globals || {}), };
}; const mergedParserOptions = {
const mergedParserOptions = { project,
project, ...(tsconfigRootDir && { tsconfigRootDir }),
...(tsconfigRootDir && { tsconfigRootDir }), ...(languageOptions.parserOptions || {}),
...(languageOptions.parserOptions || {}), };
}; const otherLanguageOptions = Object.fromEntries(
const otherLanguageOptions = Object.fromEntries( Object.entries(languageOptions).filter(
Object.entries(languageOptions).filter(([key]) => key !== "globals" && key !== "parserOptions"), ([key]) => key !== "globals" && key !== "parserOptions",
); ),
);
return { return {
ecmaVersion: 2020, ecmaVersion: 2020,
sourceType: "module", sourceType: "module",
globals: mergedGlobals, globals: mergedGlobals,
parserOptions: mergedParserOptions, parserOptions: mergedParserOptions,
...otherLanguageOptions, ...otherLanguageOptions,
}; };
})(), })(),
plugins: { plugins: {
"@stylistic": stylistic, "@stylistic": stylistic,
prettier, },
}, rules: {
rules: { // TypeScript strict rules
// Prettier integration "@typescript-eslint/no-unused-vars": [
"prettier/prettier": "error", "error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
// TypeScript strict rules // Stylistic rules
"@typescript-eslint/no-unused-vars": [ "@stylistic/quotes": ["error", "double", { avoidEscape: true }],
"error", "@stylistic/semi": ["error", "always"],
{ "@stylistic/comma-dangle": ["error", "always-multiline"],
argsIgnorePattern: "^_", "@stylistic/indent": ["error", 2, { SwitchCase: 1 }],
varsIgnorePattern: "^_", "@stylistic/object-curly-spacing": ["error", "always"],
}, "@stylistic/array-bracket-spacing": ["error", "never"],
], "@stylistic/comma-spacing": ["error", { before: false, after: true }],
"@typescript-eslint/explicit-function-return-type": "off", "@stylistic/key-spacing": [
"@typescript-eslint/no-explicit-any": "warn", "error",
"@typescript-eslint/no-floating-promises": "error", { beforeColon: false, afterColon: true },
"@typescript-eslint/no-misused-promises": "error", ],
"@typescript-eslint/await-thenable": "error", "@stylistic/space-before-blocks": ["error", "always"],
"@typescript-eslint/no-unnecessary-type-assertion": "error", "@stylistic/space-before-function-paren": [
"error",
{ anonymous: "always", named: "never", asyncArrow: "always" },
],
"@stylistic/space-infix-ops": "error",
"@stylistic/arrow-spacing": ["error", { before: true, after: true }],
"@stylistic/no-trailing-spaces": "error",
"@stylistic/eol-last": ["error", "always"],
"@stylistic/max-len": [
"warn",
{ code: 120, ignoreUrls: true, ignoreStrings: true },
],
},
},
];
// Stylistic rules if (react) {
"@stylistic/quotes": ["error", "double", { avoidEscape: true }], configs.push({
"@stylistic/semi": ["error", "always"], files,
"@stylistic/comma-dangle": ["error", "always-multiline"], plugins: {
"@stylistic/indent": ["error", 4, { SwitchCase: 1 }], "react-hooks": reactHooks,
"@stylistic/object-curly-spacing": ["error", "always"], },
"@stylistic/array-bracket-spacing": ["error", "never"], rules: {
"@stylistic/comma-spacing": ["error", { before: false, after: true }], ...reactHooks.configs.recommended.rules,
"@stylistic/key-spacing": ["error", { beforeColon: false, afterColon: true }], },
"@stylistic/space-before-blocks": ["error", "always"], });
"@stylistic/space-before-function-paren": [ }
"error",
{ anonymous: "always", named: "never", asyncArrow: "always" },
],
"@stylistic/space-infix-ops": "error",
"@stylistic/arrow-spacing": ["error", { before: true, after: true }],
"@stylistic/no-trailing-spaces": "error",
"@stylistic/eol-last": ["error", "always"],
"@stylistic/max-len": ["warn", { code: 120, ignoreUrls: true, ignoreStrings: true }],
},
},
prettierConfig,
];
if (react) { return configs;
configs.push({
files,
plugins: {
"react-hooks": reactHooks,
},
rules: {
...reactHooks.configs.recommended.rules,
},
});
}
return configs;
} }
/** /**
* Browser/React configuration * Browser/React configuration
*/ */
export function browser(project = true, tsconfigRootDir) { export function browser(project = true, tsconfigRootDir) {
return createConfig({ return createConfig({
files: ["**/*.{ts,tsx}"], files: ["**/*.{ts,tsx}"],
languageOptions: { languageOptions: {
globals: { globals: {
...globals.browser, ...globals.browser,
}, },
}, },
react: true, react: true,
project, project,
tsconfigRootDir, tsconfigRootDir,
}); });
} }
/** /**
* Node.js configuration * Node.js configuration
*/ */
export function node(project = true, tsconfigRootDir) { export function node(project = true, tsconfigRootDir) {
return createConfig({ return createConfig({
files: ["**/*.{ts,tsx}"], files: ["**/*.{ts,tsx}"],
languageOptions: { languageOptions: {
globals: { globals: {
...globals.node, ...globals.node,
}, },
}, },
react: false, react: false,
project, project,
tsconfigRootDir, tsconfigRootDir,
}); });
} }

View File

@@ -1,25 +1,20 @@
{ {
"name": "@probo/eslint-config", "name": "@probo/eslint-config",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"description": "Shared ESLint configuration for Probo monorepo", "description": "Shared ESLint configuration for Probo monorepo",
"main": "eslint.config.mjs", "main": "eslint.config.mjs",
"type": "module", "type": "module",
"scripts": {}, "scripts": {},
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@eslint/js": "^9.25.0", "@eslint/js": "^9.25.0",
"@stylistic/eslint-plugin": "^4.2.0", "@stylistic/eslint-plugin": "^4.2.0",
"eslint-config-prettier": "^9.1.0", "eslint": "^9.39.2",
"eslint-plugin-prettier": "^5.2.1", "eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-hooks": "^5.2.0", "globals": "^16.0.0",
"globals": "^16.0.0", "typescript-eslint": "^8.30.1"
"typescript-eslint": "^8.30.1" }
},
"peerDependencies": {
"eslint": "^9.25.0",
"prettier": "^3.5.3"
}
} }

View File

@@ -5,16 +5,12 @@
"main": "./src/index.ts", "main": "./src/index.ts",
"scripts": { "scripts": {
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest", "test:watch": "vitest"
"format": "prettier --write ./src"
}, },
"prettier": "@probo/prettier",
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vitest": "^3.1.3" "vitest": "^3.1.3"
}, },

View File

@@ -1,21 +1,17 @@
{ {
"name": "@probo/hooks", "name": "@probo/hooks",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "./src/index.ts", "main": "./src/index.ts",
"scripts": { "scripts": {
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest", "test:watch": "vitest"
"format": "prettier --write ./src" },
}, "keywords": [],
"prettier": "@probo/prettier", "author": "",
"keywords": [], "license": "ISC",
"author": "", "devDependencies": {
"license": "ISC", "typescript": "^5.8.3",
"devDependencies": { "vitest": "^3.1.3"
"@probo/prettier": "1.0.0", }
"prettier": "^3.5.3",
"typescript": "^5.8.3",
"vitest": "^3.1.3"
}
} }

View File

@@ -1,14 +0,0 @@
{
"name": "@probo/prettier",
"private": true,
"version": "1.0.0",
"description": "Shared Prettier configuration for Probo monorepo",
"main": "prettier.config.js",
"scripts": {},
"keywords": [],
"author": "",
"license": "ISC",
"peerDependencies": {
"prettier": "^3.5.3"
}
}

View File

@@ -1,14 +0,0 @@
module.exports = {
tabWidth: 2,
useTabs: false,
semi: true, // Add semicolons
singleQuote: false, // Use double quotes (matches @stylistic/quotes)
quoteProps: "as-needed",
trailingComma: "all", // Trailing commas (matches @stylistic/comma-dangle)
bracketSpacing: true, // { foo: bar } not {foo: bar}
arrowParens: "always", // (x) => x not x => x
endOfLine: "lf", // Unix line endings
printWidth: 120, // Max line length (matches @stylistic/max-len)
proseWrap: "preserve",
bracketSameLine: false,
};

View File

@@ -1,13 +1,12 @@
{ {
"name": "@probo/react-lazy", "name": "@probo/react-lazy",
"version": "1.0.0", "version": "1.0.0",
"description": "Enhanced React lazy loading with retries and error handling", "description": "Enhanced React lazy loading with retries and error handling",
"private": true, "private": true,
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"scripts": {}, "scripts": {},
"prettier": "@probo/prettier", "peerDependencies": {
"peerDependencies": { "react": ">18.0.0"
"react": ">18.0.0" }
}
} }

View File

@@ -1,31 +1,27 @@
{ {
"name": "@probo/relay", "name": "@probo/relay",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"type": "module", "type": "module",
"main": "./src/index.ts", "main": "./src/index.ts",
"scripts": { "scripts": {
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest", "test:watch": "vitest"
"format": "prettier --write ./src" },
}, "keywords": [],
"prettier": "@probo/prettier", "author": "",
"keywords": [], "license": "ISC",
"author": "", "devDependencies": {
"license": "ISC", "typescript": "^5.8.3",
"devDependencies": { "vitest": "^3.1.3"
"@probo/prettier": "1.0.0", },
"prettier": "^3.5.3", "peerDependencies": {
"typescript": "^5.8.3", "react": "^19.2.1",
"vitest": "^3.1.3" "react-relay": "^19.0.0",
}, "react-router": "^7.10.0",
"peerDependencies": { "relay-runtime": "^19.0.0"
"react": "^19.2.1", },
"react-relay": "^19.0.0", "dependencies": {
"react-router": "^7.10.0", "graphql": "^16.12.0"
"relay-runtime": "^19.0.0" }
},
"dependencies": {
"graphql": "^16.12.0"
}
} }

View File

@@ -5,16 +5,12 @@
"main": "./src/index.ts", "main": "./src/index.ts",
"scripts": { "scripts": {
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest", "test:watch": "vitest"
"format": "prettier --write ./src"
}, },
"prettier": "@probo/prettier",
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vitest": "^3.1.3" "vitest": "^3.1.3"
}, },

View File

@@ -1,76 +1,73 @@
{ {
"name": "@probo/ui", "name": "@probo/ui",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"scripts": { "scripts": {
"lint": "eslint .", "lint": "eslint .",
"dev": "storybook dev -p 6006 --no-open", "dev": "storybook dev -p 6006 --no-open",
"check": "tsc --noEmit -p tsconfig.app.json", "check": "tsc --noEmit -p tsconfig.app.json",
"icons": "bun run src/Atoms/Icons/generator.ts" "icons": "bun run src/Atoms/Icons/generator.ts"
}, },
"prettier": "@probo/prettier", "dependencies": {
"dependencies": { "@ariakit/react": "^0.4.17",
"@ariakit/react": "^0.4.17", "@probo/helpers": "1.0.0",
"@probo/helpers": "1.0.0", "@probo/i18n": "1.0.0",
"@probo/i18n": "1.0.0", "@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-alert-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-dropdown-menu": "^2.1.16", "@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-label": "^2.1.8", "@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-popover": "^1.1.15", "@radix-ui/react-portal": "^1.1.10",
"@radix-ui/react-portal": "^1.1.10", "@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-scroll-area": "^1.2.10", "@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-select": "^2.2.6", "@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tabs": "^1.1.13", "clsx": "^2.1.1",
"clsx": "^2.1.1", "cmdk": "^1.1.1",
"cmdk": "^1.1.1", "react-dropzone": "^14.3.8",
"react-dropzone": "^14.3.8", "react-intersection-observer": "^9.16.0",
"react-intersection-observer": "^9.16.0", "react-markdown": "^10.1.0",
"react-markdown": "^10.1.0", "rehype-raw": "^7.0.0",
"rehype-raw": "^7.0.0", "remark-gfm": "^4.0.1",
"remark-gfm": "^4.0.1", "tailwind-variants": "^1.0.0",
"tailwind-variants": "^1.0.0", "tailwindcss": "^4.1.7",
"tailwindcss": "^4.1.7", "tw-animate-css": "^1.3.0",
"tw-animate-css": "^1.3.0", "zustand": "^5.0.4"
"zustand": "^5.0.4" },
}, "devDependencies": {
"devDependencies": { "@chromatic-com/storybook": "^3.2.6",
"@chromatic-com/storybook": "^3.2.6", "@probo/eslint-config": "1.0.0",
"@probo/eslint-config": "1.0.0", "@rollup/pluginutils": "^5.1.4",
"@probo/prettier": "1.0.0", "@storybook/addon-essentials": "^8.6.13",
"@rollup/pluginutils": "^5.1.4", "@storybook/blocks": "^8.6.13",
"@storybook/addon-essentials": "^8.6.13", "@storybook/experimental-addon-test": "^8.6.13",
"@storybook/blocks": "^8.6.13", "@storybook/react": "^8.6.13",
"@storybook/experimental-addon-test": "^8.6.13", "@storybook/react-vite": "^8.6.13",
"@storybook/react": "^8.6.13", "@storybook/test": "^8.6.13",
"@storybook/react-vite": "^8.6.13", "@tailwindcss/typography": "^0.5.16",
"@storybook/test": "^8.6.13", "@tailwindcss/vite": "^4.1.17",
"@tailwindcss/typography": "^0.5.16", "@types/react": "^19.1.2",
"@tailwindcss/vite": "^4.1.17", "@types/react-dom": "^19.1.2",
"@types/react": "^19.1.2", "@vitejs/plugin-react": "^4.4.1",
"@types/react-dom": "^19.1.2", "@vitest/browser": "^3.1.3",
"@vitejs/plugin-react": "^4.4.1", "@vitest/coverage-v8": "^3.1.3",
"@vitest/browser": "^3.1.3", "eslint": "^9.25.0",
"@vitest/coverage-v8": "^3.1.3", "playwright": "^1.55.1",
"eslint": "^9.25.0", "react": "^19.1.0",
"playwright": "^1.55.1", "react-docgen": "^7.1.1",
"prettier": "^3.5.3", "react-dom": "^19.1.0",
"react": "^19.1.0", "react-router": "^7.12.0",
"react-docgen": "^7.1.1", "storybook": "^8.6.15",
"react-dom": "^19.1.0", "typescript": "~5.8.3",
"react-router": "^7.12.0", "vite": "^6.4.1",
"storybook": "^8.6.15", "vitest": "^3.1.3"
"typescript": "~5.8.3", },
"vite": "^6.4.1", "peerDependencies": {
"vitest": "^3.1.3" "react": "^19.1.0",
}, "react-dom": "^19.1.0",
"peerDependencies": { "react-router": "^7.12.0"
"react": "^19.1.0", },
"react-dom": "^19.1.0", "volta": {
"react-router": "^7.12.0" "node": "24.4.0"
}, }
"volta": {
"node": "24.4.0"
}
} }