Skip to content

Commit

Permalink
#80 fixed eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bennobuilder committed Nov 28, 2024
1 parent 4fc320b commit eca8192
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 39 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 src/**",
"lint": "eslint",
"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
2 changes: 1 addition & 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 src/**",
"lint": "eslint",
"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
2 changes: 1 addition & 1 deletion packages/config/eslint/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ module.exports = [
}
},
{
ignores: ['dist/**']
files: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.js', 'src/**/*.jsx']
}
];
7 changes: 1 addition & 6 deletions packages/elevenlabs-client/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
* @see https://eslint.org/docs/latest/use/configure/configuration-files
* @type {import("eslint").Linter.Config}
*/
module.exports = [
...require('@blgc/config/eslint/library'),
{
ignores: ['src/gen/*']
}
];
module.exports = [...require('@blgc/config/eslint/library'), { ignores: ['src/gen/*'] }];
2 changes: 1 addition & 1 deletion 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 src/**",
"lint": "eslint",
"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 Down
7 changes: 1 addition & 6 deletions packages/eprel-client/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
* @see https://eslint.org/docs/latest/use/configure/configuration-files
* @type {import("eslint").Linter.Config}
*/
module.exports = [
...require('@blgc/config/eslint/library'),
{
ignores: ['src/gen/*']
}
];
module.exports = [...require('@blgc/config/eslint/library'), { ignores: ['src/gen/*'] }];
2 changes: 1 addition & 1 deletion 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 src/**",
"lint": "eslint",
"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 Down
2 changes: 1 addition & 1 deletion 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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-form/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* @see https://eslint.org/docs/latest/use/configure/configuration-files
* @type {import("eslint").Linter.Config}
*/
module.exports = [...require('../config/eslint/library')];
module.exports = [...require('@blgc/config/eslint/library')];
2 changes: 1 addition & 1 deletion 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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion 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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion 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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion packages/figma-connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
7 changes: 1 addition & 6 deletions packages/google-webfonts-client/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
* @see https://eslint.org/docs/latest/use/configure/configuration-files
* @type {import("eslint").Linter.Config}
*/
module.exports = [
...require('@blgc/config/eslint/library'),
{
ignores: ['src/gen/*']
}
];
module.exports = [...require('@blgc/config/eslint/library')];
2 changes: 1 addition & 1 deletion packages/google-webfonts-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 src/**",
"lint": "eslint",
"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",
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-router/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* @see https://eslint.org/docs/latest/use/configure/configuration-files
* @type {import("eslint").Linter.Config}
*/
module.exports = [...require('../config/eslint/library')];
module.exports = [...require('@blgc/config/eslint/library')];
2 changes: 1 addition & 1 deletion packages/openapi-router/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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"update:latest": "pnpm update --latest"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion packages/validation-adapter/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* @see https://eslint.org/docs/latest/use/configure/configuration-files
* @type {import("eslint").Linter.Config}
*/
module.exports = [...require('../config/eslint/library')];
module.exports = [...require('@blgc/config/eslint/library')];
2 changes: 1 addition & 1 deletion packages/validation-adapter/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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion packages/validation-adapters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion packages/xml-tokenizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build:dev": "shx rm -rf dist && ../../scripts/cli.sh bundle --target=dev",
"clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo",
"install:clean": "pnpm run clean && pnpm install",
"lint": "eslint src/**",
"lint": "eslint",
"publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public",
"size": "size-limit --why",
"start:dev": "tsc -w",
Expand Down

0 comments on commit eca8192

Please sign in to comment.