mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-25 06:24:27 +08:00
- Enforce oxlint and oxfmt for owned JavaScript and TypeScript with independent CI checks. - Preserve compiler import boundaries and protected fixtures while cleaning up lint findings. - Standardize source formatting and validate import, fixture, and embedded-source protections.
34 lines
915 B
JSON
34 lines
915 B
JSON
{
|
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
|
"printWidth": 100,
|
|
"tabWidth": 2,
|
|
"useTabs": false,
|
|
"semi": true,
|
|
"singleQuote": false,
|
|
"quoteProps": "preserve",
|
|
"trailingComma": "all",
|
|
"endOfLine": "lf",
|
|
// Source strings and import execution order are part of compiler and harness contracts.
|
|
"embeddedLanguageFormatting": "off",
|
|
"sortImports": false,
|
|
"sortPackageJson": false,
|
|
"proseWrap": "preserve",
|
|
// Program fixtures, generated output, native/vendor sources and the standalone docs workspace
|
|
// are outside the root JS/TS formatting scope.
|
|
"ignorePatterns": [
|
|
"**/node_modules/**",
|
|
"**/dist/**",
|
|
"**/vendor/**",
|
|
"**/fixtures/**",
|
|
"**/*.generated.*",
|
|
"**/artifacts/**",
|
|
"docs/**",
|
|
"tests/corpus/**",
|
|
"tests/diagnostics/**",
|
|
"tests/library-mode/**",
|
|
"tests/test262/**",
|
|
"benchmarks/**",
|
|
"examples/**",
|
|
],
|
|
}
|