Skip to content

Commit d464480

Browse files
chore: fix lint scripts
1 parent 8715c45 commit d464480

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"example:html-cdn": "pnpm run -F html-cdn-example dev",
3838
"example:html-vite": "pnpm run -F html-vite-example dev",
3939
"format": "biome format --write .",
40-
"lint": "biome lint . && pnpm -F @infineon/infineon-design-system-stencil lint",
41-
"lint:fix": "biome lint --write . && pnpm -F @infineon/infineon-design-system-stencil lint:fix",
40+
"lint": "biome lint . && pnpm -F @infineon/infineon-design-system-stencil lint:eslint",
41+
"lint:fix": "biome lint --write . && pnpm -F @infineon/infineon-design-system-stencil lint:eslint:fix",
4242
"check": "biome check --write .",
43-
"check:ci": "biome ci . && pnpm -F @infineon/infineon-design-system-stencil lint",
43+
"check:ci": "biome ci . && pnpm -F @infineon/infineon-design-system-stencil lint:eslint",
4444
"check:staged": "lint-staged",
4545
"prepare": "husky"
4646
},
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ export default [
1313
],
1414
},
1515
{
16-
files: [
17-
"packages/components/src/**/*.ts",
18-
"packages/components/src/**/*.tsx",
19-
],
16+
files: ["src/**/*.ts", "src/**/*.tsx"],
2017
ignores: [
2118
"**/*.stories.ts",
2219
"**/*.spec.ts",
@@ -29,7 +26,7 @@ export default [
2926
languageOptions: {
3027
parser: tseslint.parser,
3128
parserOptions: {
32-
project: "./packages/components/tsconfig.json",
29+
project: "./tsconfig.json",
3330
},
3431
},
3532
rules: {

packages/components/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@
6060
"test:watch": "jest --watch",
6161
"test:update": "jest -u",
6262
"generate": "stencil generate",
63-
"lint": "eslint .",
64-
"lint:fix": "eslint . --fix",
63+
"lint": "pnpm run lint:eslint && pnpm run lint:biome",
64+
"lint:fix": "pnpm run lint:eslint:fix && pnpm run lint:biome:fix",
65+
"lint:eslint": "eslint .",
66+
"lint:biome": "biome check .",
67+
"lint:eslint:fix": "eslint . --fix",
68+
"lint:biome:fix": "biome check . --write",
6569
"storybook": "storybook dev -p 6262",
6670
"build-storybook": "storybook build"
6771
},

0 commit comments

Comments
 (0)