oxlint-tsgolint 0.5.1 → 0.7.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/README.md +9 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
[![MIT licensed][license-badge]][license-url]
|
|
8
8
|
[![Build Status][ci-badge]][ci-url]
|
|
9
9
|
[![Discord chat][discord-badge]][discord-url]
|
|
10
|
+
[![npm version][npm-badge]][npm-url]
|
|
10
11
|
|
|
11
12
|
</div>
|
|
12
13
|
|
|
@@ -56,6 +57,9 @@ Configure type-aware rules in `.oxlintrc.json`:
|
|
|
56
57
|
|
|
57
58
|
Over 30 TypeScript-specific type-aware rules are available. For detailed setup and configuration, see the [Oxlint Type-Aware Linting guide](https://oxc.rs/blog/2025-08-17-oxlint-type-aware.html).
|
|
58
59
|
|
|
60
|
+
> [!NOTE]
|
|
61
|
+
> Non-type-aware TypeScript rules can be found in [Oxlint's TypeScript rules](https://oxc.rs/docs/guide/usage/linter/rules.html) under the TypeScript source.
|
|
62
|
+
|
|
59
63
|
## Performance
|
|
60
64
|
|
|
61
65
|
**tsgolint** is **20-40 times faster** than ESLint + typescript-eslint.
|
|
@@ -104,7 +108,7 @@ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for:
|
|
|
104
108
|
- How to implement new rules
|
|
105
109
|
- Code style and contribution workflow
|
|
106
110
|
|
|
107
|
-
## Implemented Rules (
|
|
111
|
+
## Implemented Rules (43/59)
|
|
108
112
|
|
|
109
113
|
- [ ] [consistent-return](https://typescript-eslint.io/rules/consistent-return)
|
|
110
114
|
- [ ] [consistent-type-exports](https://typescript-eslint.io/rules/consistent-type-exports)
|
|
@@ -116,7 +120,6 @@ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for:
|
|
|
116
120
|
- [ ] [no-unnecessary-type-parameters](https://typescript-eslint.io/rules/no-unnecessary-type-parameters)
|
|
117
121
|
- [ ] [prefer-destructuring](https://typescript-eslint.io/rules/prefer-destructuring)
|
|
118
122
|
- [ ] [prefer-find](https://typescript-eslint.io/rules/prefer-find)
|
|
119
|
-
- [ ] [prefer-includes](https://typescript-eslint.io/rules/prefer-includes)
|
|
120
123
|
- [ ] [prefer-nullish-coalescing](https://typescript-eslint.io/rules/prefer-nullish-coalescing)
|
|
121
124
|
- [ ] [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
|
|
122
125
|
- [ ] [prefer-readonly](https://typescript-eslint.io/rules/prefer-readonly)
|
|
@@ -151,7 +154,7 @@ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for:
|
|
|
151
154
|
- [x] [no-unsafe-unary-minus](https://typescript-eslint.io/rules/no-unsafe-unary-minus)
|
|
152
155
|
- [x] [non-nullable-type-assertion-style](https://typescript-eslint.io/rules/non-nullable-type-assertion-style)
|
|
153
156
|
- [x] [only-throw-error](https://typescript-eslint.io/rules/only-throw-error)
|
|
154
|
-
- [x] [
|
|
157
|
+
- [x] [prefer-includes](https://typescript-eslint.io/rules/prefer-includes)
|
|
155
158
|
- [x] [prefer-promise-reject-errors](https://typescript-eslint.io/rules/prefer-promise-reject-errors)
|
|
156
159
|
- [x] [prefer-reduce-type-parameter](https://typescript-eslint.io/rules/prefer-reduce-type-parameter)
|
|
157
160
|
- [x] [prefer-return-this-type](https://typescript-eslint.io/rules/prefer-return-this-type)
|
|
@@ -162,6 +165,7 @@ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for:
|
|
|
162
165
|
- [x] [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
|
|
163
166
|
- [x] [restrict-template-expressions](https://typescript-eslint.io/rules/restrict-template-expressions)
|
|
164
167
|
- [x] [return-await](https://typescript-eslint.io/rules/return-await)
|
|
168
|
+
- [x] [strict-boolean-expressions](https://typescript-eslint.io/rules/strict-boolean-expressions)
|
|
165
169
|
- [x] [switch-exhaustiveness-check](https://typescript-eslint.io/rules/switch-exhaustiveness-check)
|
|
166
170
|
- [x] [unbound-method](https://typescript-eslint.io/rules/unbound-method)
|
|
167
171
|
- [x] [use-unknown-in-catch-callback-variable](https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable)
|
|
@@ -176,6 +180,8 @@ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for:
|
|
|
176
180
|
|
|
177
181
|
<!-- Badge definitions -->
|
|
178
182
|
|
|
183
|
+
[npm-badge]: https://img.shields.io/npm/v/oxlint-tsgolint.svg
|
|
184
|
+
[npm-url]: https://www.npmjs.com/package/oxlint-tsgolint
|
|
179
185
|
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
|
180
186
|
[license-url]: LICENSE
|
|
181
187
|
[ci-badge]: https://github.com/oxc-project/tsgolint/actions/workflows/ci.yml/badge.svg
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.7.0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"author": "auvred <aauvred@gmail.com>",
|
|
5
5
|
"repository": "github:oxc-project/tsgolint",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"tsgolint": "./bin/tsgolint.js"
|
|
14
14
|
},
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@oxlint-tsgolint/win32-x64": "0.
|
|
17
|
-
"@oxlint-tsgolint/win32-arm64": "0.
|
|
18
|
-
"@oxlint-tsgolint/linux-x64": "0.
|
|
19
|
-
"@oxlint-tsgolint/linux-arm64": "0.
|
|
20
|
-
"@oxlint-tsgolint/darwin-x64": "0.
|
|
21
|
-
"@oxlint-tsgolint/darwin-arm64": "0.
|
|
16
|
+
"@oxlint-tsgolint/win32-x64": "0.7.0",
|
|
17
|
+
"@oxlint-tsgolint/win32-arm64": "0.7.0",
|
|
18
|
+
"@oxlint-tsgolint/linux-x64": "0.7.0",
|
|
19
|
+
"@oxlint-tsgolint/linux-arm64": "0.7.0",
|
|
20
|
+
"@oxlint-tsgolint/darwin-x64": "0.7.0",
|
|
21
|
+
"@oxlint-tsgolint/darwin-arm64": "0.7.0"
|
|
22
22
|
}
|
|
23
23
|
}
|