8000 Merge pull request #7106 from plotly/mocks-format · plotly/plotly.js@5d49246 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d49246

Browse files
authored
Merge pull request #7106 from plotly/mocks-format
adjust Biome config to test mocks and format JSON files
2 parents 77e58b5 + 09868c8 commit 5d49246

File tree

1,306 files changed

+1474537
-1595910
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,306 files changed

+1474537
-1595910
lines changed

biome.json

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
33
"organizeImports": { "enabled": true },
44
"files": {
5- 741A
"include": ["src", "lib", "test", "tasks", "build", "devtools"],
5+
"maxSize": 10000000,
6+
"include": [
7+
"src",
8+
"lib",
9+
"test",
10+
"tasks",
11+
"devtools"
12+
],
613
"ignore": [
714
"test/plot-schema.json",
8-
"test/image/mocks",
915
"dist",
1016
"stackgl_modules",
1117
"node_modules",
@@ -109,6 +115,26 @@
109115
"Uint8Array",
110116
"Int8Array",
111117
"Uint32Array"
112-
]
118+
],
119+
"formatter": {
120+
"quoteStyle": "single",
121+
"trailingCommas": "none",
122+
"indentStyle": "space",
123+
"indentWidth": 4,
124+
"lineEnding": "lf",
125+
"lineWidth": 120
126+
}
127+
},
128+
"json": {
129+
"linter": {
130+
"enabled": true
131+
},
132+
"formatter": {
133+
"enabled": true,
134+
"indentStyle": "space",
135+
"indentWidth": 1,
136+
"lineEnding": "lf",
137+
"lineWidth": 80
138+
}
113139
}
114140
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"regl-codegen": "node devtools/regl_codegen/server.js",
3737
"cibuild": "npm run empty-dist && npm run preprocess && node tasks/cibundle.js",
3838
"lint": "npx @biomejs/biome lint",
39-
"lint-fix": "npx @biomejs/biome lint --write || true",
39+
"lint-fix": "npx @biomejs/biome format ./test/image/mocks --write; npx @biomejs/biome lint --write || true",
4040
"pretest": "node tasks/pretest.js",
4141
"test-jasmine": "karma start test/jasmine/karma.conf.js",
4242
"test-mock": "node tasks/test_mock.js",

0 commit comments

Comments
 (0)
0