@zgeoff/oxlint-config 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/oxlintrc.json +21 -0
  2. package/package.json +1 -1
package/oxlintrc.json CHANGED
@@ -122,6 +122,27 @@
122
122
  // this config targets node/bun tooling — node builtins are the platform
123
123
  "import/no-nodejs-modules": "off",
124
124
 
125
+ // a file past 500 non-blank lines holds more than one concept, and a fifth
126
+ // parameter wants an options object
127
+ "max-lines": ["error", { "max": 500, "skipBlankLines": true }],
128
+ "max-params": ["error", { "max": 4 }],
129
+
130
+ // counts that fire on code already in its clearest form
131
+ "max-statements": "off",
132
+ "max-lines-per-function": "off",
133
+ "import/max-dependencies": "off",
134
+
135
+ // the fix reads worse than the code: tsc checks assignment before use, a
136
+ // guard `continue` is an early return, awaits in a loop keep order, and
137
+ // an event or timer needs a bare `new Promise`
138
+ "init-declarations": "off",
139
+ "no-continue": "off",
140
+ "no-await-in-loop": "off",
141
+ "promise/avoid-new": "off",
142
+
143
+ // a library or platform handle has no readonly form
144
+ "typescript/prefer-readonly-parameter-types": "off",
145
+
125
146
  // preload-style modules (matcher registration, type augmentation) are
126
147
  // side-effect imports by design
127
148
  "import/no-unassigned-import": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgeoff/oxlint-config",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Shareable oxlint config: strict categories, house-style rules, and a custom JS plugin",
5
5
  "license": "MIT",
6
6
  "repository": {