@hiddenability/opinionated-defaults 0.1.53 → 0.1.54
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.
- package/README.md +8 -3
- package/dist/oxlint/index.d.ts +4 -0
- package/dist/oxlint/index.mjs +1 -1
- package/dist/oxlintrc.json +0 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,6 +85,8 @@ bunx @hiddenability/opinionated-defaults -ox # Oxlint + Oxfmt
|
|
|
85
85
|
#### Exports:
|
|
86
86
|
|
|
87
87
|
- oxlintConfig (Config object for `oxlint.config.ts`)
|
|
88
|
+
- oxlintConfigReact (Base config with React and React performance rules)
|
|
89
|
+
- oxlintConfigNext (React config with Next.js rules)
|
|
88
90
|
|
|
89
91
|
#### Enabled plugins:
|
|
90
92
|
|
|
@@ -92,13 +94,13 @@ bunx @hiddenability/opinionated-defaults -ox # Oxlint + Oxfmt
|
|
|
92
94
|
- unicorn
|
|
93
95
|
- oxc
|
|
94
96
|
- import
|
|
95
|
-
- react
|
|
96
|
-
- react-perf
|
|
97
|
-
- nextjs
|
|
98
97
|
- promise
|
|
99
98
|
- node
|
|
100
99
|
- jsx-a11y
|
|
101
100
|
|
|
101
|
+
The CLI-generated Oxlint config adds framework plugins from direct dependencies:
|
|
102
|
+
React projects get `react` and `react-perf`; Next.js projects also get `nextjs`.
|
|
103
|
+
|
|
102
104
|
### Oxfmt (Prettier replacement):
|
|
103
105
|
|
|
104
106
|
#### Exports:
|
|
@@ -154,6 +156,9 @@ import { oxlintConfig } from '@hiddenability/opinionated-defaults/oxlint';
|
|
|
154
156
|
export default defineConfig(oxlintConfig);
|
|
155
157
|
```
|
|
156
158
|
|
|
159
|
+
Use `oxlintConfigReact` for React projects or `oxlintConfigNext` for Next.js
|
|
160
|
+
projects when configuring Oxlint manually.
|
|
161
|
+
|
|
157
162
|
### Oxfmt:
|
|
158
163
|
|
|
159
164
|
```ts
|
package/dist/oxlint/index.d.ts
CHANGED
package/dist/oxlint/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={$schema:"./node_modules/oxlint/configuration_schema.json",categories:{correctness:"error",suspicious:"warn"},plugins:["typescript","unicorn","oxc","import","
|
|
1
|
+
var e={$schema:"./node_modules/oxlint/configuration_schema.json",categories:{correctness:"error",suspicious:"warn"},plugins:["typescript","unicorn","oxc","import","promise","node","jsx-a11y"],env:{es6:!0,browser:!0,node:!0},ignorePatterns:["**/dist/","**/node_modules/","**/.git/","**/*.gen.ts"],options:{typeAware:!0,typeCheck:!0},rules:{"typescript/no-misused-promises":["error",{checksVoidReturn:!1}],"no-unused-vars":["error",{args:"all",argsIgnorePattern:"^_",caughtErrors:"all",caughtErrorsIgnorePattern:"^_",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0,varsIgnorePattern:"^_"}],"react/react-in-jsx-scope":"off","typescript/prefer-nullish-coalescing":"error","unicorn/filename-case":["error",{cases:{kebabCase:!0}}],"unicorn/no-array-for-each":"off","unicorn/no-array-reduce":"off"}};var r=(...o)=>({...e,plugins:[...new Set([...e.plugins,...o])]}),i=r("react","react-perf"),a=r("react","react-perf","nextjs");export{i as oxlintConfigReact,a as oxlintConfigNext,e as oxlintConfig};
|
package/dist/oxlintrc.json
CHANGED