Skip to content

Commit

Permalink
#80 updated eslint config for most packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bennobuilder committed Nov 27, 2024
1 parent 9515768 commit a050276
Show file tree
Hide file tree
Showing 79 changed files with 156 additions and 179 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 0 additions & 7 deletions examples/openapi-router/express/petstore/.eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions examples/openapi-router/express/petstore/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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')];
2 changes: 1 addition & 1 deletion examples/openapi-router/express/petstore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi-router/express/petstore/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@blgc/config/shared-library.tsconfig.json",
"extends": "@blgc/style-guide/typescript/node20",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 0 additions & 7 deletions packages/cli/.eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions packages/cli/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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')];
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@blgc/config/node.tsconfig.json",
"extends": "@blgc/style-guide/typescript/node20",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
Expand Down
8 changes: 0 additions & 8 deletions packages/elevenlabs-client/.eslintrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions packages/elevenlabs-client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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/*']
}
];
4 changes: 2 additions & 2 deletions packages/elevenlabs-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/elevenlabs-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@blgc/config/shared-library.tsconfig.json",
"extends": "@blgc/style-guide/typescript/library",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/elevenlabs-client/vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -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({}));
8 changes: 0 additions & 8 deletions packages/eprel-client/.eslintrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions packages/eprel-client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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/*']
}
];
4 changes: 2 additions & 2 deletions packages/eprel-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/eprel-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@blgc/config/shared-library.tsconfig.json",
"extends": "@blgc/style-guide/typescript/library",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/eprel-client/vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -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({}));
8 changes: 0 additions & 8 deletions packages/feature-fetch/.eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions packages/feature-fetch/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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')];
4 changes: 2 additions & 2 deletions packages/feature-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-fetch/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@blgc/config/shared-library.tsconfig.json",
"extends": "@blgc/style-guide/typescript/library",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-fetch/vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -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({}));
7 changes: 0 additions & 7 deletions packages/feature-form/.eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions packages/feature-form/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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')];
4 changes: 2 additions & 2 deletions packages/feature-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -40,7 +40,7 @@
"validation-adapter": "workspace:*"
},
"devDependencies": {
"@blgc/config": "workspace:*",
"@blgc/style-guide": "workspace:*",
"@types/node": "^22.9.0"
},
"size-limit": [
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-form/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@blgc/config/shared-library.tsconfig.json",
"extends": "@blgc/style-guide/typescript/library",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-form/vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -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({}));
7 changes: 0 additions & 7 deletions packages/feature-logger/.eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions packages/feature-logger/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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')];
4 changes: 2 additions & 2 deletions packages/feature-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -38,7 +38,7 @@
"@blgc/utils": "workspace:*"
},
"devDependencies": {
"@blgc/config": "workspace:*",
"@blgc/style-guide": "workspace:*",
"@types/node": "^22.9.0"
},
"size-limit": [
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-logger/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@blgc/config/shared-library.tsconfig.json",
"extends": "@blgc/style-guide/typescript/library",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-logger/vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -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({}));
7 changes: 0 additions & 7 deletions packages/feature-react/.eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions packages/feature-react/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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')];
4 changes: 2 additions & 2 deletions packages/feature-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
"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",
"test": "vitest run",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@blgc/config/react-library.tsconfig.json",
"extends": "@blgc/style-guide/typescript/react-internal",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-react/vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -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({}));
7 changes: 0 additions & 7 deletions packages/feature-state/.eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions packages/feature-state/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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')];
4 changes: 2 additions & 2 deletions packages/feature-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -38,7 +38,7 @@
"@blgc/utils": "workspace:*"
},
"devDependencies": {
"@blgc/config": "workspace:*",
"@blgc/style-guide": "workspace:*",
"@types/node": "^22.9.0"
},
"size-limit": [
Expand Down
Loading

0 comments on commit a050276

Please sign in to comment.