@arianrhodsandlot/oxc-config 1.0.0 → 1.0.1

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.
@@ -2,14 +2,13 @@ name: release
2
2
  on:
3
3
  push:
4
4
  tags:
5
- - 'v[0-9]+.[0-9]+.[0-9]+'
5
+ - v[0-9]+.[0-9]+.[0-9]+
6
6
  permissions:
7
7
  id-token: write
8
8
  contents: write
9
9
  jobs:
10
10
  release:
11
11
  runs-on: ubuntu-latest
12
- needs: test
13
12
  steps:
14
13
  - uses: actions/checkout@v4
15
14
  - uses: pnpm/action-setup@v3
@@ -17,9 +16,8 @@ jobs:
17
16
  with:
18
17
  node-version: latest
19
18
  cache: pnpm
20
- registry-url: 'https://registry.npmjs.org/'
19
+ registry-url: https://registry.npmjs.org/
21
20
  - run: pnpm i
22
- - run: node --run build
23
21
 
24
22
  - run: pnpm rk release-notes --version ${{ github.ref_name }}
25
23
  - run: npm --version
package/changelog.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [1.0.1] - 2026-01-07
11
+ ### Fixed
12
+ - Update rules
13
+
14
+ ## [1.0.0] - 2026-01-07
15
+ ### Added
16
+ - Initial release
17
+
18
+ [1.0.1]: https://github.com/arianrhodsandlot/eslint-config/compare/v1.0.0...v1.0.1
19
+ [1.0.0]: https://github.com/arianrhodsandlot/eslint-config/releases/tag/v0.1.0
package/oxfmtrc.json CHANGED
@@ -1,21 +1,12 @@
1
1
  {
2
2
  "$schema": "https://cdn.jsdelivr.net/npm/oxfmt@latest/configuration_schema.json",
3
3
  "experimentalSortImports": {
4
- "groups": [
5
- [
6
- "builtin",
7
- "external",
8
- "internal",
9
- "parent",
10
- "sibling",
11
- "index",
12
- "object"
13
- ]
14
- ],
15
- "newlines-between": "never"
4
+ "groups": [["builtin"], ["external"], ["internal"], ["subpath"], ["parent"], ["sibling"], ["index"], ["unknown"]],
5
+ "newlinesBetween": false
16
6
  },
17
- "singleQuote": true,
18
7
  "jsxSingleQuote": true,
19
8
  "printWidth": 120,
20
9
  "semi": false,
10
+ "singleQuote": true,
11
+ "tabWidth": 2
21
12
  }
package/oxlintrc.json CHANGED
@@ -12,9 +12,8 @@
12
12
  "env": { "browser": true, "builtin": true, "es2026": true, "node": true },
13
13
  "ignorePatterns": ["dist", "node_modules"],
14
14
  "overrides": [
15
- { "files": ["page.tsx"], "rules": { "import/no-default-export": "off" } },
16
- { "files": ["*.{jsx,tsx}"], "rules": { "max-lines-per-function": "off", "unicorn/no-useless-undefined": "off" } },
17
- { "files": ["tests/e2e/**/*.ts"], "rules": { "no-unused-vars": "off", "react-hooks/rules-of-hooks": "off" } }
15
+ { "files": ["*.{jsx,tsx}"], "rules": { "unicorn/no-useless-undefined": "off" } },
16
+ { "files": ["tests/**/*.ts"], "rules": { "no-unused-vars": "off", "react-hooks/rules-of-hooks": "off" } }
18
17
  ],
19
18
  "plugins": ["eslint", "typescript", "unicorn", "react", "react-perf", "oxc", "import", "jsx-a11y", "node", "promise"],
20
19
  "rules": {
@@ -48,6 +47,7 @@
48
47
  "no-inline-comments": "off",
49
48
  "no-magic-numbers": "off",
50
49
  "no-namespace": "off",
50
+ "no-param-reassign": "off",
51
51
  "no-ternary": "off",
52
52
  "no-throw-literal": "off",
53
53
  "no-undefined": "off",
@@ -89,26 +89,26 @@
89
89
  "sort-keys": ["error", "asc", { "allowLineSeparatedGroups": true, "caseSensitive": false, "natural": true }],
90
90
  "typescript/explicit-function-return-type": "off",
91
91
  "typescript/explicit-module-boundary-types": "off",
92
- "typescript/no-unsafe-member-access": "off",
93
- "typescript/prefer-nullish-coalescing": "off",
92
+ "typescript/no-base-to-string": "off",
93
+ "typescript/no-confusing-void-expression": "off",
94
+ "typescript/no-explicit-any": "off",
95
+ "typescript/no-floating-promises": ["error", { "ignoreIIFE": true }],
96
+ "typescript/no-misused-promises": "off",
97
+ "typescript/no-misused-spread": "off",
98
+ "typescript/no-unsafe-argument": "off",
94
99
  "typescript/no-unsafe-assignment": "off",
95
100
  "typescript/no-unsafe-call": "off",
101
+ "typescript/no-unsafe-member-access": "off",
96
102
  "typescript/no-unsafe-return": "off",
97
- "typescript/promise-function-async": "off",
98
- "typescript/strict-boolean-expressions": "off",
99
- "typescript/return-await": "off",
100
- "typescript/no-misused-promises": "off",
101
- "typescript/only-throw-error": "off",
102
- "typescript/no-explicit-any": "off",
103
- "typescript/no-unsafe-argument": "off",
104
103
  "typescript/no-unsafe-type-assertion": "off",
105
- "typescript/no-base-to-string": "off",
106
- "typescript/no-confusing-void-expression": "off",
107
104
  "typescript/non-nullable-type-assertion-style": "off",
108
- "typescript/switch-exhaustiveness-check": "off",
109
- "typescript/no-misused-spread": "off",
105
+ "typescript/only-throw-error": "off",
106
+ "typescript/prefer-nullish-coalescing": "off",
107
+ "typescript/promise-function-async": "off",
110
108
  "typescript/restrict-template-expressions": "off",
111
- "typescript/no-floating-promises": ["error", { "ignoreIIFE": true }],
109
+ "typescript/return-await": "off",
110
+ "typescript/strict-boolean-expressions": "off",
111
+ "typescript/switch-exhaustiveness-check": "off",
112
112
  "unicorn/explicit-length-check": "off",
113
113
  "unicorn/no-null": "off",
114
114
  "unicorn/no-useless-undefined": ["error", { "checkArguments": false }],
package/package.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@arianrhodsandlot/oxc-config",
3
- "version": "1.0.0",
4
3
  "description": "A set of predefined Oxc config.",
5
4
  "keywords": [
6
5
  "oxc",
@@ -14,9 +13,9 @@
14
13
  },
15
14
  "repository": "arianrhodsandlot/oxc-config",
16
15
  "type": "module",
17
- "dependencies": {},
18
16
  "devDependencies": {
19
- "@typescript/native-preview": "7.0.0-dev.20260106.1",
17
+ "@arianrhodsandlot/release-kit": "0.2.0",
18
+ "@typescript/native-preview": "7.0.0-dev.20260107.1",
20
19
  "oxfmt": "0.23.0",
21
20
  "oxlint": "1.38.0",
22
21
  "oxlint-tsgolint": "0.10.1"
@@ -26,7 +25,8 @@
26
25
  "oxlint": "*"
27
26
  },
28
27
  "optionalDependencies": {
29
- "@typescript/native-preview": "*",
30
- "oxlint-tsgolint": "*"
31
- }
28
+ "@typescript/native-preview": "7.0.0-dev.20260107.1",
29
+ "oxlint-tsgolint": "^0.10.1"
30
+ },
31
+ "version": "1.0.1"
32
32
  }
package/readme.md CHANGED
@@ -10,19 +10,20 @@ Install the package:
10
10
  npm install --save-dev @arianrhodsandlot/oxc-config
11
11
  ```
12
12
 
13
- Then, extend the config in your oxlint or oxfmt configuration file:
14
-
15
- ```json
16
- {
17
- "extends": ["node_modules/@arianrhodsandlot/oxc-config/oxlintrc.json"],
18
- }
19
- ```
20
-
21
- ```json
22
- {
23
- "extends": ["node_modules/@arianrhodsandlot/oxc-config/oxfmtrc.json"],
24
- }
25
- ```
13
+ Then, extend the config in your oxlint or oxfmt configuration file.
14
+
15
+ - For oxlint, create a `.oxlintrc.json` with the following content:
16
+ ```json
17
+ {
18
+ "$schema": "https://cdn.jsdelivr.net/npm/oxlint@latest/configuration_schema.json",
19
+ "env": { "browser": true, "builtin": true, "es2026": true, "node": true },
20
+ "extends": ["node_modules/@arianrhodsandlot/oxc-config/oxlintrc.json"]
21
+ }
22
+ ```
23
+ - For oxfmt, as oxfmt does not support extending configuration files yet, we need to copy the config file directly:
24
+ ```sh
25
+ cp node_modules/@arianrhodsandlot/oxc-config/oxfmtrc.json .oxfmtrc.json
26
+ ```
26
27
 
27
28
  ## License
28
29
 
@@ -0,0 +1,2 @@
1
+ ### Fixed
2
+ - Update rules