You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wiki/backend/.oxlintrc.json

30 lines
868 B

{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc"],
"env": {
"node": true
},
"globals": {
"WIKI": "readonly"
},
"categories": {
"correctness": "error"
},
"rules": {
// Not in `correctness`, so it has to be named. Free here -- the backend reports none, `WIKI` being
// declared above and everything else imported -- and on for the same reason as the frontend's:
// a name used but never imported is a runtime error that no build step here would catch, there
// being no build step. `npm run typecheck` finds it too, but that is a separate command; this
// puts it in the lint everyone runs.
"no-undef": "error"
},
"ignorePatterns": [
"node_modules/**",
"**/*.min.js",
"repo/**",
"data/**",
"logs/**",
"locales/**"
]
}