@arianrhodsandlot/oxc-config 1.0.0
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/.github/release.yaml +33 -0
- package/license +21 -0
- package/oxfmtrc.json +21 -0
- package/oxlintrc.json +118 -0
- package/package.json +32 -0
- package/readme.md +29 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
6
|
+
permissions:
|
|
7
|
+
id-token: write
|
|
8
|
+
contents: write
|
|
9
|
+
jobs:
|
|
10
|
+
release:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
needs: test
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: pnpm/action-setup@v3
|
|
16
|
+
- uses: actions/setup-node@v4
|
|
17
|
+
with:
|
|
18
|
+
node-version: latest
|
|
19
|
+
cache: pnpm
|
|
20
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
21
|
+
- run: pnpm i
|
|
22
|
+
- run: node --run build
|
|
23
|
+
|
|
24
|
+
- run: pnpm rk release-notes --version ${{ github.ref_name }}
|
|
25
|
+
- run: npm --version
|
|
26
|
+
|
|
27
|
+
- run: pnpm version from-git --no-git-tag-version
|
|
28
|
+
- run: pnpm publish --no-git-checks --access=public
|
|
29
|
+
|
|
30
|
+
- uses: softprops/action-gh-release@v1
|
|
31
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
32
|
+
with:
|
|
33
|
+
body_path: ./release-notes.md
|
package/license
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 arianrhodsandlot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/oxfmtrc.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://cdn.jsdelivr.net/npm/oxfmt@latest/configuration_schema.json",
|
|
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"
|
|
16
|
+
},
|
|
17
|
+
"singleQuote": true,
|
|
18
|
+
"jsxSingleQuote": true,
|
|
19
|
+
"printWidth": 120,
|
|
20
|
+
"semi": false,
|
|
21
|
+
}
|
package/oxlintrc.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://cdn.jsdelivr.net/npm/oxlint@latest/configuration_schema.json",
|
|
3
|
+
"categories": {
|
|
4
|
+
"correctness": "error",
|
|
5
|
+
"nursery": "warn",
|
|
6
|
+
"pedantic": "warn",
|
|
7
|
+
"perf": "warn",
|
|
8
|
+
"restriction": "warn",
|
|
9
|
+
"style": "warn",
|
|
10
|
+
"suspicious": "error"
|
|
11
|
+
},
|
|
12
|
+
"env": { "browser": true, "builtin": true, "es2026": true, "node": true },
|
|
13
|
+
"ignorePatterns": ["dist", "node_modules"],
|
|
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" } }
|
|
18
|
+
],
|
|
19
|
+
"plugins": ["eslint", "typescript", "unicorn", "react", "react-perf", "oxc", "import", "jsx-a11y", "node", "promise"],
|
|
20
|
+
"rules": {
|
|
21
|
+
"capitalized-comments": "off",
|
|
22
|
+
"complexity": "off",
|
|
23
|
+
"default-case": "off",
|
|
24
|
+
"func-style": ["error", "declaration"],
|
|
25
|
+
"id-length": "off",
|
|
26
|
+
"import/consistent-type-specifier-style": "off",
|
|
27
|
+
"import/exports-last": "off",
|
|
28
|
+
"import/extensions": "off",
|
|
29
|
+
"import/group-exports": "off",
|
|
30
|
+
"import/max-dependencies": "off",
|
|
31
|
+
"import/no-default-export": "off",
|
|
32
|
+
"import/no-named-export": "off",
|
|
33
|
+
"import/no-unassigned-import": "off",
|
|
34
|
+
"import/prefer-default-export": "off",
|
|
35
|
+
"import/unambiguous": "off",
|
|
36
|
+
"init-declarations": "off",
|
|
37
|
+
"jsx-a11y/label-has-associated-control": "off",
|
|
38
|
+
"jsx-a11y/no-autofocus": "off",
|
|
39
|
+
"max-lines": "off",
|
|
40
|
+
"max-lines-per-function": "off",
|
|
41
|
+
"max-statements": "off",
|
|
42
|
+
"no-alert": "off",
|
|
43
|
+
"no-await-in-loop": "off",
|
|
44
|
+
"no-console": ["error", { "allow": ["info", "table", "assert", "warn", "error", "trace"] }],
|
|
45
|
+
"no-continue": "off",
|
|
46
|
+
"no-dynamic-delete": "off",
|
|
47
|
+
"no-empty": ["error", { "allowEmptyCatch": true }],
|
|
48
|
+
"no-inline-comments": "off",
|
|
49
|
+
"no-magic-numbers": "off",
|
|
50
|
+
"no-namespace": "off",
|
|
51
|
+
"no-ternary": "off",
|
|
52
|
+
"no-throw-literal": "off",
|
|
53
|
+
"no-undefined": "off",
|
|
54
|
+
"node/no-process-env": "off",
|
|
55
|
+
"oxc/no-async-await": "off",
|
|
56
|
+
"oxc/no-optional-chaining": "off",
|
|
57
|
+
"oxc/no-rest-spread-properties": "off",
|
|
58
|
+
"prefer-destructuring": [
|
|
59
|
+
"error",
|
|
60
|
+
{
|
|
61
|
+
"AssignmentExpression": { "array": false, "object": false },
|
|
62
|
+
"VariableDeclarator": { "array": false, "object": true }
|
|
63
|
+
},
|
|
64
|
+
{ "enforceForRenamedProperties": false }
|
|
65
|
+
],
|
|
66
|
+
"prefer-ts-expect-error": "off",
|
|
67
|
+
"promise/avoid-new": "off",
|
|
68
|
+
"promise/catch-or-return": "off",
|
|
69
|
+
"promise/prefer-await-to-callbacks": "off",
|
|
70
|
+
"react-perf/jsx-no-jsx-as-prop": "off",
|
|
71
|
+
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
72
|
+
"react-perf/jsx-no-new-function-as-prop": "off",
|
|
73
|
+
"react-perf/jsx-no-new-object-as-prop": "off",
|
|
74
|
+
"react/iframe-missing-sandbox": "off",
|
|
75
|
+
"react/jsx-filename-extension": [
|
|
76
|
+
"error",
|
|
77
|
+
{ "allow": "as-needed", "extensions": [".tsx", ".jsx"], "ignoreFilesWithoutCode": true }
|
|
78
|
+
],
|
|
79
|
+
"react/jsx-key": "off",
|
|
80
|
+
"react/jsx-max-depth": "off",
|
|
81
|
+
"react/jsx-props-no-spreading": "off",
|
|
82
|
+
"react/no-array-index-key": "off",
|
|
83
|
+
"react/no-danger": "off",
|
|
84
|
+
"react/no-unescaped-entities": "off",
|
|
85
|
+
"react/no-unknown-property": ["error", { "ignore": ["prefix"] }],
|
|
86
|
+
"react/only-export-components": "off",
|
|
87
|
+
"react/react-in-jsx-scope": "off",
|
|
88
|
+
"sort-imports": "off",
|
|
89
|
+
"sort-keys": ["error", "asc", { "allowLineSeparatedGroups": true, "caseSensitive": false, "natural": true }],
|
|
90
|
+
"typescript/explicit-function-return-type": "off",
|
|
91
|
+
"typescript/explicit-module-boundary-types": "off",
|
|
92
|
+
"typescript/no-unsafe-member-access": "off",
|
|
93
|
+
"typescript/prefer-nullish-coalescing": "off",
|
|
94
|
+
"typescript/no-unsafe-assignment": "off",
|
|
95
|
+
"typescript/no-unsafe-call": "off",
|
|
96
|
+
"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
|
+
"typescript/no-unsafe-type-assertion": "off",
|
|
105
|
+
"typescript/no-base-to-string": "off",
|
|
106
|
+
"typescript/no-confusing-void-expression": "off",
|
|
107
|
+
"typescript/non-nullable-type-assertion-style": "off",
|
|
108
|
+
"typescript/switch-exhaustiveness-check": "off",
|
|
109
|
+
"typescript/no-misused-spread": "off",
|
|
110
|
+
"typescript/restrict-template-expressions": "off",
|
|
111
|
+
"typescript/no-floating-promises": ["error", { "ignoreIIFE": true }],
|
|
112
|
+
"unicorn/explicit-length-check": "off",
|
|
113
|
+
"unicorn/no-null": "off",
|
|
114
|
+
"unicorn/no-useless-undefined": ["error", { "checkArguments": false }],
|
|
115
|
+
"unicorn/prefer-top-level-await": "off",
|
|
116
|
+
"unicorn/switch-case-braces": ["error", "avoid"]
|
|
117
|
+
}
|
|
118
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@arianrhodsandlot/oxc-config",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A set of predefined Oxc config.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"oxc",
|
|
7
|
+
"oxfmt",
|
|
8
|
+
"oxlint"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "arianrhodsandlot",
|
|
13
|
+
"email": "theguidanceofawhitetower@gmail.com"
|
|
14
|
+
},
|
|
15
|
+
"repository": "arianrhodsandlot/oxc-config",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"dependencies": {},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@typescript/native-preview": "7.0.0-dev.20260106.1",
|
|
20
|
+
"oxfmt": "0.23.0",
|
|
21
|
+
"oxlint": "1.38.0",
|
|
22
|
+
"oxlint-tsgolint": "0.10.1"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"oxfmt": "*",
|
|
26
|
+
"oxlint": "*"
|
|
27
|
+
},
|
|
28
|
+
"optionalDependencies": {
|
|
29
|
+
"@typescript/native-preview": "*",
|
|
30
|
+
"oxlint-tsgolint": "*"
|
|
31
|
+
}
|
|
32
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Oxc Config
|
|
2
|
+
|
|
3
|
+
A set of predefined Oxc config.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Install the package:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save-dev @arianrhodsandlot/oxc-config
|
|
11
|
+
```
|
|
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
|
+
```
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
[MIT](license)
|