@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 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
@@ -1 +1,5 @@
1
+ import oxlintConfigBase from "../oxlintrc.json";
2
+ type OxlintConfig = typeof oxlintConfigBase;
1
3
  export { default as oxlintConfig } from "../oxlintrc.json";
4
+ export declare const oxlintConfigReact: OxlintConfig;
5
+ export declare const oxlintConfigNext: OxlintConfig;
@@ -1 +1 @@
1
- var e={$schema:"./node_modules/oxlint/configuration_schema.json",categories:{correctness:"error",suspicious:"warn"},plugins:["typescript","unicorn","oxc","import","react","react-perf","nextjs","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"}};export{e as oxlintConfig};
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};
@@ -9,9 +9,6 @@
9
9
  "unicorn",
10
10
  "oxc",
11
11
  "import",
12
- "react",
13
- "react-perf",
14
- "nextjs",
15
12
  "promise",
16
13
  "node",
17
14
  "jsx-a11y"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hiddenability/opinionated-defaults",
3
3
  "description": "Opinionated default configurations for webdev tools.",
4
- "version": "0.1.53",
4
+ "version": "0.1.54",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",