@bomb.sh/tools
Version:
The internal dev, build, and lint CLI for Bombshell projects
63 lines (59 loc) • 1.7 kB
JSON
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc", "import", "node"],
"jsPlugins": ["./rules/plugin.js"],
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"overrides": [
{
"files": ["**/*.config.{ts,mts,js,mjs,cjs}", "rules/**/*.{js,ts}"],
"rules": {
"import/no-default-export": "off"
}
}
],
"rules": {
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "node:path",
"message": "Use File URLs (new URL()) instead. Only use fileURLToPath() at third-party module boundaries."
},
{
"name": "path",
"message": "Use File URLs (new URL()) instead. Only use fileURLToPath() at third-party module boundaries."
},
{
"name": "node:path/posix",
"message": "Use File URLs (new URL()) instead."
},
{
"name": "node:path/win32",
"message": "Use File URLs (new URL()) instead."
}
]
}
],
"import/no-commonjs": "error",
"node/no-path-concat": "error",
"unicorn/prefer-node-protocol": "error",
"typescript/consistent-type-imports": "error",
"no-console": "off",
"bombshell-dev/no-console-log": "warn",
"prefer-const": "error",
"no-var": "error",
"max-params": "off",
"bombshell-dev/max-params": ["error", { "max": 2 }],
"typescript/explicit-function-return-type": ["warn", { "allowExpressions": true }],
"import/no-default-export": "error",
"bombshell-dev/no-generic-error": "error",
"bombshell-dev/require-export-jsdoc": "warn",
"bombshell-dev/exported-function-async": "warn",
"unicorn/consistent-function-scoping": "off",
"no-underscore-dangle": "off"
}
}