diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fbed50cc..af1048eb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,7 +28,7 @@ The structure of the `package.json` file in this project should adhere to a spec "scripts": { "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "start:dev": "tsc -w", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/examples/openapi-router/express/petstore/.eslintrc.js b/examples/openapi-router/express/petstore/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/examples/openapi-router/express/petstore/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/examples/openapi-router/express/petstore/eslint.config.js b/examples/openapi-router/express/petstore/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/examples/openapi-router/express/petstore/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/examples/openapi-router/express/petstore/package.json b/examples/openapi-router/express/petstore/package.json index 06063710..c1939733 100644 --- a/examples/openapi-router/express/petstore/package.json +++ b/examples/openapi-router/express/petstore/package.json @@ -19,7 +19,7 @@ "validation-adapters": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/express": "^5.0.0", "@types/node": "^22.8.5", "nodemon": "^3.1.7", diff --git a/examples/openapi-router/express/petstore/tsconfig.json b/examples/openapi-router/express/petstore/tsconfig.json index 013b32c1..8b2bbf68 100644 --- a/examples/openapi-router/express/petstore/tsconfig.json +++ b/examples/openapi-router/express/petstore/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/node20", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/package.json b/package.json index c873065c..53356810 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ }, "devDependencies": { "@blgc/cli": "workspace:*", - "@blgc/config": "workspace:*", "@blgc/style-guide": "workspace:*", "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.10", diff --git a/packages/cli/.eslintrc.js b/packages/cli/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/cli/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/cli/eslint.config.js b/packages/cli/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/cli/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/cli/package.json b/packages/cli/package.json index 44442942..0b5d81d5 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -29,7 +29,7 @@ "build": "shx rm -rf dist && tsc", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts,.jsx,.tsx src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "start:dev": "tsc -w", "test": "echo \"Error: no test specified\" && exit 1", @@ -67,6 +67,7 @@ "rollup-plugin-postcss": "^4.0.2" }, "devDependencies": { + "@blgc/style-guide": "workspace:*", "@types/figlet": "^1.7.0", "@types/lodash": "^4.17.13", "@types/node": "^22.9.0", diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 5806d731..5b95d44c 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/node.tsconfig.json", + "extends": "@blgc/style-guide/typescript/node20", "compilerOptions": { "outDir": "./dist", "rootDir": "./src" diff --git a/packages/elevenlabs-client/.eslintrc.js b/packages/elevenlabs-client/.eslintrc.js deleted file mode 100644 index 4ace0911..00000000 --- a/packages/elevenlabs-client/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')], - ignorePatterns: ['src/gen/*'] -}; diff --git a/packages/elevenlabs-client/eslint.config.js b/packages/elevenlabs-client/eslint.config.js new file mode 100644 index 00000000..cd05f2de --- /dev/null +++ b/packages/elevenlabs-client/eslint.config.js @@ -0,0 +1,10 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [ + ...require('@blgc/style-guide/eslint/library'), + { + ignores: ['src/gen/*'] + } +]; diff --git a/packages/elevenlabs-client/package.json b/packages/elevenlabs-client/package.json index e3dfa2c3..32746f8f 100644 --- a/packages/elevenlabs-client/package.json +++ b/packages/elevenlabs-client/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "openapi:generate": "npx openapi-typescript ./resources/openapi_v1-0-0.json -o ./src/gen/v1.ts", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", @@ -39,7 +39,7 @@ "feature-fetch": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0", "dotenv": "^16.4.5", "openapi-typescript": "^7.4.2" diff --git a/packages/elevenlabs-client/tsconfig.json b/packages/elevenlabs-client/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/elevenlabs-client/tsconfig.json +++ b/packages/elevenlabs-client/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/elevenlabs-client/vitest.config.mjs b/packages/elevenlabs-client/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/elevenlabs-client/vitest.config.mjs +++ b/packages/elevenlabs-client/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/eprel-client/.eslintrc.js b/packages/eprel-client/.eslintrc.js deleted file mode 100644 index 4ace0911..00000000 --- a/packages/eprel-client/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')], - ignorePatterns: ['src/gen/*'] -}; diff --git a/packages/eprel-client/eslint.config.js b/packages/eprel-client/eslint.config.js new file mode 100644 index 00000000..cd05f2de --- /dev/null +++ b/packages/eprel-client/eslint.config.js @@ -0,0 +1,10 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [ + ...require('@blgc/style-guide/eslint/library'), + { + ignores: ['src/gen/*'] + } +]; diff --git a/packages/eprel-client/package.json b/packages/eprel-client/package.json index b64ddc41..91c836f1 100644 --- a/packages/eprel-client/package.json +++ b/packages/eprel-client/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "openapi:generate": "npx openapi-typescript ./resources/openapi_v1-0-58.yaml -o ./src/gen/v1.ts", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", @@ -39,7 +39,7 @@ "feature-fetch": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0", "dotenv": "^16.4.5", "openapi-typescript": "^7.4.2" diff --git a/packages/eprel-client/tsconfig.json b/packages/eprel-client/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/eprel-client/tsconfig.json +++ b/packages/eprel-client/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/eprel-client/vitest.config.mjs b/packages/eprel-client/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/eprel-client/vitest.config.mjs +++ b/packages/eprel-client/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/feature-fetch/.eslintrc.js b/packages/feature-fetch/.eslintrc.js deleted file mode 100644 index b849a678..00000000 --- a/packages/feature-fetch/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')], - ignorePatterns: ['src/__tests__/*'] -}; diff --git a/packages/feature-fetch/eslint.config.js b/packages/feature-fetch/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/feature-fetch/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/feature-fetch/package.json b/packages/feature-fetch/package.json index 14fbae93..67fa49c1 100644 --- a/packages/feature-fetch/package.json +++ b/packages/feature-fetch/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -39,7 +39,7 @@ "@blgc/utils": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0", "@types/url-parse": "^1.4.11", "msw": "^2.6.0" diff --git a/packages/feature-fetch/tsconfig.json b/packages/feature-fetch/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/feature-fetch/tsconfig.json +++ b/packages/feature-fetch/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/feature-fetch/vitest.config.mjs b/packages/feature-fetch/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/feature-fetch/vitest.config.mjs +++ b/packages/feature-fetch/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/feature-form/.eslintrc.js b/packages/feature-form/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/feature-form/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/feature-form/eslint.config.js b/packages/feature-form/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/feature-form/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/feature-form/package.json b/packages/feature-form/package.json index ad9a241a..8887ca6b 100644 --- a/packages/feature-form/package.json +++ b/packages/feature-form/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -40,7 +40,7 @@ "validation-adapter": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0" }, "size-limit": [ diff --git a/packages/feature-form/tsconfig.json b/packages/feature-form/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/feature-form/tsconfig.json +++ b/packages/feature-form/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/feature-form/vitest.config.mjs b/packages/feature-form/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/feature-form/vitest.config.mjs +++ b/packages/feature-form/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/feature-logger/.eslintrc.js b/packages/feature-logger/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/feature-logger/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/feature-logger/eslint.config.js b/packages/feature-logger/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/feature-logger/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/feature-logger/package.json b/packages/feature-logger/package.json index fa5417b0..7c71154a 100644 --- a/packages/feature-logger/package.json +++ b/packages/feature-logger/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -38,7 +38,7 @@ "@blgc/utils": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0" }, "size-limit": [ diff --git a/packages/feature-logger/tsconfig.json b/packages/feature-logger/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/feature-logger/tsconfig.json +++ b/packages/feature-logger/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/feature-logger/vitest.config.mjs b/packages/feature-logger/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/feature-logger/vitest.config.mjs +++ b/packages/feature-logger/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/feature-react/.eslintrc.js b/packages/feature-react/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/feature-react/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/feature-react/eslint.config.js b/packages/feature-react/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/feature-react/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/feature-react/package.json b/packages/feature-react/package.json index 3e47b49c..5d0d4d0d 100644 --- a/packages/feature-react/package.json +++ b/packages/feature-react/package.json @@ -46,7 +46,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -54,7 +54,7 @@ "update:latest": "pnpm update --latest" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@blgc/utils": "workspace:*", "@types/node": "^22.9.0", "@types/react": "^18.3.12", diff --git a/packages/feature-react/tsconfig.json b/packages/feature-react/tsconfig.json index 66d1f2c4..10148c00 100644 --- a/packages/feature-react/tsconfig.json +++ b/packages/feature-react/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/react-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/react-internal", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/feature-react/vitest.config.mjs b/packages/feature-react/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/feature-react/vitest.config.mjs +++ b/packages/feature-react/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/feature-state/.eslintrc.js b/packages/feature-state/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/feature-state/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/feature-state/eslint.config.js b/packages/feature-state/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/feature-state/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/feature-state/package.json b/packages/feature-state/package.json index c87b56b5..57f658b5 100644 --- a/packages/feature-state/package.json +++ b/packages/feature-state/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -38,7 +38,7 @@ "@blgc/utils": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0" }, "size-limit": [ diff --git a/packages/feature-state/tsconfig.json b/packages/feature-state/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/feature-state/tsconfig.json +++ b/packages/feature-state/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/feature-state/vitest.config.mjs b/packages/feature-state/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/feature-state/vitest.config.mjs +++ b/packages/feature-state/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/figma-connect/.eslintrc.js b/packages/figma-connect/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/figma-connect/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/figma-connect/eslint.config.js b/packages/figma-connect/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/figma-connect/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/figma-connect/package.json b/packages/figma-connect/package.json index 710c3c36..623dbf2e 100644 --- a/packages/figma-connect/package.json +++ b/packages/figma-connect/package.json @@ -46,7 +46,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -57,7 +57,7 @@ "@blgc/utils": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@figma/plugin-typings": "^1.100.2", "@types/node": "^22.9.0" }, diff --git a/packages/figma-connect/tsconfig.json b/packages/figma-connect/tsconfig.json index ba7ab1c1..5d833c4a 100644 --- a/packages/figma-connect/tsconfig.json +++ b/packages/figma-connect/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/google-webfonts-client/.eslintrc.js b/packages/google-webfonts-client/.eslintrc.js deleted file mode 100644 index 4ace0911..00000000 --- a/packages/google-webfonts-client/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')], - ignorePatterns: ['src/gen/*'] -}; diff --git a/packages/google-webfonts-client/eslint.config.js b/packages/google-webfonts-client/eslint.config.js new file mode 100644 index 00000000..cd05f2de --- /dev/null +++ b/packages/google-webfonts-client/eslint.config.js @@ -0,0 +1,10 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [ + ...require('@blgc/style-guide/eslint/library'), + { + ignores: ['src/gen/*'] + } +]; diff --git a/packages/google-webfonts-client/package.json b/packages/google-webfonts-client/package.json index 5688ab3e..36d3aac9 100644 --- a/packages/google-webfonts-client/package.json +++ b/packages/google-webfonts-client/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "openapi:generate": "npx openapi-typescript ./resources/openapi-v1.yaml -o ./src/gen/v1.ts", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", @@ -39,7 +39,7 @@ "feature-fetch": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0", "dotenv": "^16.4.5", "openapi-typescript": "^7.4.2" diff --git a/packages/google-webfonts-client/tsconfig.json b/packages/google-webfonts-client/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/google-webfonts-client/tsconfig.json +++ b/packages/google-webfonts-client/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/google-webfonts-client/vitest.config.mjs b/packages/google-webfonts-client/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/google-webfonts-client/vitest.config.mjs +++ b/packages/google-webfonts-client/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/openapi-router/.eslintrc.js b/packages/openapi-router/.eslintrc.js deleted file mode 100644 index b849a678..00000000 --- a/packages/openapi-router/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')], - ignorePatterns: ['src/__tests__/*'] -}; diff --git a/packages/openapi-router/eslint.config.js b/packages/openapi-router/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/openapi-router/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/openapi-router/package.json b/packages/openapi-router/package.json index f2f6d55a..8b15b8c2 100644 --- a/packages/openapi-router/package.json +++ b/packages/openapi-router/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -38,7 +38,7 @@ "validation-adapter": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/express": "^5.0.0", "@types/express-serve-static-core": "^5.0.1", "@types/node": "^22.9.0", diff --git a/packages/openapi-router/tsconfig.json b/packages/openapi-router/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/openapi-router/tsconfig.json +++ b/packages/openapi-router/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/openapi-router/vitest.config.mjs b/packages/openapi-router/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/openapi-router/vitest.config.mjs +++ b/packages/openapi-router/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/types/.eslintrc.js b/packages/types/.eslintrc.js deleted file mode 100644 index adf2a258..00000000 --- a/packages/types/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')], - ignorePatterns: ['src/openapi/__tests__/*'] -}; diff --git a/packages/types/eslint.config.js b/packages/types/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/types/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/types/package.json b/packages/types/package.json index dea4a7cf..d348b431 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -49,11 +49,11 @@ "build": "shx rm -rf dist && ../../scripts/cli.sh bundle -b typesonly", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "update:latest": "pnpm update --latest" }, "devDependencies": { - "@blgc/config": "workspace:*" + "@blgc/style-guide": "workspace:*" } } diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index 55efaf9d..ba09944a 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/utils/.eslintrc.js b/packages/utils/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/utils/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/utils/eslint.config.js b/packages/utils/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/utils/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/utils/package.json b/packages/utils/package.json index cfcabc4b..fd9c8a29 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -34,7 +34,7 @@ "update:latest": "pnpm update --latest" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0" }, "size-limit": [ diff --git a/packages/utils/tsconfig.json b/packages/utils/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/utils/tsconfig.json +++ b/packages/utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/utils/vitest.config.mjs b/packages/utils/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/utils/vitest.config.mjs +++ b/packages/utils/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/validation-adapter/.eslintrc.js b/packages/validation-adapter/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/validation-adapter/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/validation-adapter/eslint.config.js b/packages/validation-adapter/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/validation-adapter/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/validation-adapter/package.json b/packages/validation-adapter/package.json index 4fd55b71..cec78fdb 100644 --- a/packages/validation-adapter/package.json +++ b/packages/validation-adapter/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -37,7 +37,7 @@ "@blgc/utils": "workspace:*" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0" }, "size-limit": [ diff --git a/packages/validation-adapter/tsconfig.json b/packages/validation-adapter/tsconfig.json index 48b05761..591b470c 100644 --- a/packages/validation-adapter/tsconfig.json +++ b/packages/validation-adapter/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/validation-adapter/vitest.config.mjs b/packages/validation-adapter/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/validation-adapter/vitest.config.mjs +++ b/packages/validation-adapter/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/validation-adapters/.eslintrc.js b/packages/validation-adapters/.eslintrc.js deleted file mode 100644 index 46b3cc44..00000000 --- a/packages/validation-adapters/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @type {import('eslint').Linter.Config} - */ -module.exports = { - root: true, - extends: [require.resolve('@blgc/config/eslint/library')] -}; diff --git a/packages/validation-adapters/eslint.config.js b/packages/validation-adapters/eslint.config.js new file mode 100644 index 00000000..7bda1ed1 --- /dev/null +++ b/packages/validation-adapters/eslint.config.js @@ -0,0 +1,5 @@ +/** + * @see https://eslint.org/docs/latest/use/configure/configuration-files + * @type {import("eslint").Linter.Config} + */ +module.exports = [...require('@blgc/style-guide/eslint/library')]; diff --git a/packages/validation-adapters/package.json b/packages/validation-adapters/package.json index 83a3c88b..0f043d6f 100644 --- a/packages/validation-adapters/package.json +++ b/packages/validation-adapters/package.json @@ -57,7 +57,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint --ext .js,.ts src/", + "lint": "eslint src/**", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", @@ -65,7 +65,7 @@ "update:latest": "pnpm update --latest" }, "devDependencies": { - "@blgc/config": "workspace:*", + "@blgc/style-guide": "workspace:*", "@types/node": "^22.9.0", "valibot": "1.0.0-beta.3", "validation-adapter": "workspace:*", diff --git a/packages/validation-adapters/tsconfig.json b/packages/validation-adapters/tsconfig.json index 213d45ec..2efcf08a 100644 --- a/packages/validation-adapters/tsconfig.json +++ b/packages/validation-adapters/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@blgc/config/shared-library.tsconfig.json", + "extends": "@blgc/style-guide/typescript/library", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", diff --git a/packages/validation-adapters/vitest.config.mjs b/packages/validation-adapters/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/validation-adapters/vitest.config.mjs +++ b/packages/validation-adapters/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({})); diff --git a/packages/xml-tokenizer/vitest.config.mjs b/packages/xml-tokenizer/vitest.config.mjs index 872ed257..f45b25a5 100644 --- a/packages/xml-tokenizer/vitest.config.mjs +++ b/packages/xml-tokenizer/vitest.config.mjs @@ -1,4 +1,4 @@ +import { nodeConfig } from '@blgc/style-guide/vite/library'; import { defineConfig, mergeConfig } from 'vitest/config'; -import { nodeConfig } from '@blgc/config/vite/node.config'; export default mergeConfig(nodeConfig, defineConfig({}));