8000 adjust Biome config to test mocks and format JSON files by archmoj · Pull Request #7106 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

adjust Biome config to test mocks and format JSON files #7106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 29 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": { "enabled": true },
"files": {
"include": ["src", "lib", "test", "tasks", "build", "devtools"],
"maxSize": 10000000,
"include": [
"src",
"lib",
"test",
"tasks",
"devtools"
],
"ignore": [
"test/plot-schema.json",
"test/image/mocks",
"dist",
"stackgl_modules",
"node_modules",
Expand Down Expand Up @@ -109,6 +115,26 @@
"Uint8Array",
"Int8Array",
"Uint32Array"
]
],
"formatter": {
"quoteStyle": "single",
"trailingCommas": "none",
"indentStyle": "space",
"indentWidth": 4,
"lineEnding": "lf",
"lineWidth": 120
}
},
"json": {
"linter": {
"enabled": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 1,
"lineEnding": "lf",
"lineWidth": 80
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"regl-codegen": "node devtools/regl_codegen/server.js",
"cibuild": "npm run empty-dist && npm run preprocess && node tasks/cibundle.js",
"lint": "npx @biomejs/biome lint",
"lint-fix": "npx @biomejs/biome lint --write || true",
"lint-fix": "npx @biomejs/biome format ./test/image/mocks --write; npx @biomejs/biome lint --write || true",
"pretest": "node tasks/pretest.js",
"test-jasmine": "karma start test/jasmine/karma.conf.js",
"test-mock": "node tasks/test_mock.js",
Expand Down
Loading
0