Skip to content

Commit 5517388

Browse files
committed
[DX] Add lint/format/check-lint/check-format scripts to packages package.json
1 parent faaa385 commit 5517388

File tree

20 files changed

+156
-4
lines changed

20 files changed

+156
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"scripts": {
99
"build": "node bin/build_javascript.js && node bin/build_styles.js",
1010
"test": "bin/run-vitest-all.sh",
11-
"lint": "biome lint --write",
12-
"format": "biome format --write",
13-
"check-lint": "biome lint",
14-
"check-format": "biome format"
11+
"lint": "yarn workspaces foreach --all -pt run lint",
12+
"format": "yarn workspaces foreach --all -pt run format",
13+
"check-lint": "yarn workspaces foreach --all -pt run check-lint",
14+
"check-format": "yarn workspaces foreach --all -pt run check-format"
1515
},
1616
"devDependencies": {
1717
"@babel/core": "^7.25.2",

src/Autocomplete/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"types": "dist/controller.d.ts",
66
"version": "1.0.0",
77
"license": "MIT",
8+
"scripts": {
9+
"build": "echo 'The build script is not yet configured.' && exit 1",
10+
"test": "echo 'The test script is not yet configured.' && exit 1",
11+
"lint": "biome lint --write",
12+
"format": "biome format --write",
13+
"check-lint": "biome lint",
14+
"check-format": "biome format"
15+
},
816
"symfony": {
917
"controllers": {
1018
"autocomplete": {

src/Chartjs/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"type": "module",
77
"main": "dist/controller.js",
88
"types": "dist/controller.d.ts",
9+
"scripts": {
10+
"build": "echo 'The build script is not yet configured.' && exit 1",
11+
"test": "echo 'The test script is not yet configured.' && exit 1",
12+
"lint": "biome lint --write",
13+
"format": "biome format --write",
14+
"check-lint": "biome lint",
15+
"check-format": "biome format"
16+
},
917
"symfony": {
1018
"controllers": {
1119
"chart": {

src/Cropperjs/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
"config": {
99
"css_source": "src/style.css"
1010
},
11+
"scripts": {
12+
"build": "echo 'The build script is not yet configured.' && exit 1",
13+
"test": "echo 'The test script is not yet configured.' && exit 1",
14+
"lint": "biome lint --write",
15+
"format": "biome format --write",
16+
"check-lint": "biome lint",
17+
"check-format": "biome format"
18+
},
1119
"symfony": {
1220
"controllers": {
1321
"cropper": {

src/Dropzone/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
"config": {
99
"css_source": "src/style.css"
1010
},
11+
"scripts": {
12+
"build": "echo 'The build script is not yet configured.' && exit 1",
13+
"test": "echo 'The test script is not yet configured.' && exit 1",
14+
"lint": "biome lint --write",
15+
"format": "biome format --write",
16+
"check-lint": "biome lint",
17+
"check-format": "biome format"
18+
},
1119
"symfony": {
1220
"controllers": {
1321
"dropzone": {

src/LazyImage/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"version": "1.1.0",
66
"main": "dist/controller.js",
77
"types": "dist/controller.d.ts",
8+
"scripts": {
9+
"build": "echo 'The build script is not yet configured.' && exit 1",
10+
"test": "echo 'The test script is not yet configured.' && exit 1",
11+
"lint": "biome lint --write",
12+
"format": "biome format --write",
13+
"check-lint": "biome lint",
14+
"check-format": "biome format"
15+
},
816
"symfony": {
917
"controllers": {
1018
"lazy-image": {

src/LiveComponent/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
"css_source": "styles/live.css"
99
},
1010
"license": "MIT",
11+
"scripts": {
12+
"build": "echo 'The build script is not yet configured.' && exit 1",
13+
"test": "echo 'The test script is not yet configured.' && exit 1",
14+
"lint": "biome lint --write",
15+
"format": "biome format --write",
16+
"check-lint": "biome lint",
17+
"check-format": "biome format"
18+
},
1119
"symfony": {
1220
"controllers": {
1321
"live": {

src/Map/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"type": "module",
77
"main": "dist/abstract_map_controller.js",
88
"types": "dist/abstract_map_controller.d.ts",
9+
"scripts": {
10+
"build": "echo 'The build script is not yet configured.' && exit 1",
11+
"test": "echo 'The test script is not yet configured.' && exit 1",
12+
"lint": "biome lint --write",
13+
"format": "biome format --write",
14+
"check-lint": "biome lint",
15+
"check-format": "biome format"
16+
},
917
"symfony": {
1018
"importmap": {
1119
"@hotwired/stimulus": "^3.0.0"

src/Map/src/Bridge/Google/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"type": "module",
77
"main": "dist/map_controller.js",
88
"types": "dist/map_controller.d.ts",
9+
"scripts": {
10+
"build": "echo 'The build script is not yet configured.' && exit 1",
11+
"test": "echo 'The test script is not yet configured.' && exit 1",
12+
"lint": "biome lint --write",
13+
"format": "biome format --write",
14+
"check-lint": "biome lint",
15+
"check-format": "biome format"
16+
},
917
"symfony": {
1018
"controllers": {
1119
"map": {

src/Map/src/Bridge/Leaflet/assets/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"type": "module",
77
"main": "dist/map_controller.js",
88
"types": "dist/map_controller.d.ts",
9+
"scripts": {
10+
"build": "echo 'The build script is not yet configured.' && exit 1",
11+
"test": "echo 'The test script is not yet configured.' && exit 1",
12+
"lint": "biome lint --write",
13+
"format": "biome format --write",
14+
"check-lint": "biome lint",
15+
"check-format": "biome format"
16+
},
917
"symfony": {
1018
"controllers": {
1119
"map": {

0 commit comments

Comments
 (0)