create-moost
Version:
59 lines (54 loc) • 1.7 kB
JSON
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "typescript"],
"env": {
"es2021": true,
"node": true
},
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"ignorePatterns": ["node_modules", "dist"],
"rules": {
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-inline-comments": "off",
"no-warning-comments": "off",
"no-negated-condition": "off",
"no-shadow": "off",
"eqeqeq": "error",
"prefer-const": "error",
"prefer-template": "error",
"no-var": "error",
"curly": "error",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"array-callback-return": "error",
"import/first": "error",
"import/no-duplicates": "error",
"import/no-self-import": "error",
"import/no-default-export": "error",
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
// consistent-type-imports MUST stay off: this project relies on
// emitDecoratorMetadata (moost DI by param type, atscript .as forms in
// decorators). Auto-fixing a value import to `import type` makes
// design:paramtypes emit `Object` — DI and form binding break silently.
"typescript/consistent-type-imports": "off",
"typescript/no-extraneous-class": "off",
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "warn",
"max-params": ["warn", { "max": 4 }],
"complexity": "off",
"max-lines-per-function": "off",
"max-statements": "off"
},
"overrides": [
{
"files": ["**/*.config.*"],
"rules": {
"import/no-default-export": "off"
}
}
]
}