Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@
"node": true,
"mocha": true
},
"categories": {
"correctness": "error",
"perf": "error",
"nursery": "error",
"restriction": "error",
"style": "error",
"pedantic": "error",
"suspicious": "error"
},
Comment on lines +7 to +15
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Enabling the nursery, restriction, and pedantic categories with "error" severity might be too aggressive and could lead to a lot of linting noise.

  • nursery: These rules are experimental and may not be stable. They could change or be removed in future versions.
  • pedantic: These rules are often very stylistic or opinionated. It's usually better to discuss and enable them individually.
  • restriction: These rules disallow certain language features. Enabling the whole category can be overly restrictive without a team-wide agreement.

Consider setting these to "warn" or starting without them and enabling specific rules as needed. This will help focus on the most critical issues first.

  "categories": {
    "correctness": "error",
    "perf": "error",
    "nursery": "warn",
    "restriction": "warn",
    "style": "error",
    "pedantic": "warn",
    "suspicious": "error"
  },

"plugins": [
"import",
"typescript",
"unicorn",
"jsdoc",
"node",
"promise",
"oxc"
],
"rules": {},
"ignorePatterns": [
"index.d.ts",
Expand Down
Loading