oxlint-react-compiler-experimental 0.0.0 → 0.0.2
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/configuration_schema.json +2 -1
- package/dist/bindings.js +1 -1
- package/dist/index.d.ts +9 -45
- package/dist/oxlint.darwin-arm64.node +0 -0
- package/package.json +5 -22
- package/README.md +0 -59
|
@@ -394,6 +394,7 @@
|
|
|
394
394
|
"jsx-a11y",
|
|
395
395
|
"nextjs",
|
|
396
396
|
"react-perf",
|
|
397
|
+
"react-compiler",
|
|
397
398
|
"promise",
|
|
398
399
|
"node",
|
|
399
400
|
"vue"
|
|
@@ -797,4 +798,4 @@
|
|
|
797
798
|
}
|
|
798
799
|
},
|
|
799
800
|
"markdownDescription": "Oxlint Configuration File\n\nThis configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`).\n\nUsage: `oxlint -c oxlintrc.json`\n\nExample\n\n`.oxlintrc.json`\n\n```json\n{\n\"$schema\": \"./node_modules/oxlint/configuration_schema.json\",\n\"plugins\": [\"import\", \"typescript\", \"unicorn\"],\n\"env\": {\n\"browser\": true\n},\n\"globals\": {\n\"foo\": \"readonly\"\n},\n\"settings\": {\n\"react\": {\n\"version\": \"18.2.0\"\n},\n\"custom\": { \"option\": true }\n},\n\"rules\": {\n\"eqeqeq\": \"warn\",\n\"import/no-cycle\": \"error\",\n\"react/self-closing-comp\": [\"error\", { \"html\": false }]\n},\n\"overrides\": [\n{\n\"files\": [\"*.test.ts\", \"*.spec.ts\"],\n\"rules\": {\n\"@typescript-eslint/no-explicit-any\": \"off\"\n}\n}\n]\n}\n```\n\n`oxlint.config.ts`\n\n```ts\nimport { defineConfig } from \"oxlint\";\n\nexport default defineConfig({\nplugins: [\"import\", \"typescript\", \"unicorn\"],\nenv: {\n\"browser\": true\n},\nglobals: {\n\"foo\": \"readonly\"\n},\nsettings: {\nreact: {\nversion: \"18.2.0\"\n},\ncustom: { option: true }\n},\nrules: {\n\"eqeqeq\": \"warn\",\n\"import/no-cycle\": \"error\",\n\"react/self-closing-comp\": [\"error\", { \"html\": false }]\n},\noverrides: [\n{\nfiles: [\"*.test.ts\", \"*.spec.ts\"],\nrules: {\n\"@typescript-eslint/no-explicit-any\": \"off\"\n}\n}\n]\n}\n});\n```"
|
|
800
|
-
}
|
|
801
|
+
}
|
package/dist/bindings.js
CHANGED
|
@@ -399,6 +399,6 @@ if (nativeBinding = requireNative(), !nativeBinding || process.env.NAPI_RS_FORCE
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
if (!nativeBinding) throw loadErrors.length > 0 ? Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.", { cause: loadErrors.reduce((err, cur) => (cur.cause = err, cur)) }) : Error("Failed to load native binding");
|
|
402
|
-
const {
|
|
402
|
+
const { applyFixes, getBufferOffset, lint, parseRawSync, rawTransferSupported } = nativeBinding;
|
|
403
403
|
//#endregion
|
|
404
404
|
export { rawTransferSupported as a, parseRawSync as i, getBufferOffset as n, lint as r, applyFixes as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ type ExternalPluginEntry = string | {
|
|
|
34
34
|
* A set of glob patterns.
|
|
35
35
|
*/
|
|
36
36
|
type GlobSet = string[];
|
|
37
|
-
type LintPluginOptionsSchema = "eslint" | "react" | "unicorn" | "typescript" | "oxc" | "import" | "jsdoc" | "jest" | "vitest" | "jsx-a11y" | "nextjs" | "react-perf" | "promise" | "node" | "vue";
|
|
37
|
+
type LintPluginOptionsSchema = "eslint" | "react" | "unicorn" | "typescript" | "oxc" | "import" | "jsdoc" | "jest" | "vitest" | "jsx-a11y" | "nextjs" | "react-perf" | "react-compiler" | "promise" | "node" | "vue";
|
|
38
38
|
type LintPlugins = LintPluginOptionsSchema[];
|
|
39
39
|
type DummyRule = AllowWarnDeny | unknown[];
|
|
40
40
|
type OxlintOverrides = OxlintOverride[];
|
|
@@ -148,42 +148,6 @@ type CustomComponent = string | {
|
|
|
148
148
|
* }
|
|
149
149
|
* });
|
|
150
150
|
* ```
|
|
151
|
-
*
|
|
152
|
-
* `oxlint.config.ts`
|
|
153
|
-
*
|
|
154
|
-
* ```ts
|
|
155
|
-
* import { defineConfig } from "oxlint";
|
|
156
|
-
*
|
|
157
|
-
* export default defineConfig({
|
|
158
|
-
* plugins: ["import", "typescript", "unicorn"],
|
|
159
|
-
* env: {
|
|
160
|
-
* "browser": true
|
|
161
|
-
* },
|
|
162
|
-
* globals: {
|
|
163
|
-
* "foo": "readonly"
|
|
164
|
-
* },
|
|
165
|
-
* settings: {
|
|
166
|
-
* react: {
|
|
167
|
-
* version: "18.2.0"
|
|
168
|
-
* },
|
|
169
|
-
* custom: { option: true }
|
|
170
|
-
* },
|
|
171
|
-
* rules: {
|
|
172
|
-
* "eqeqeq": "warn",
|
|
173
|
-
* "import/no-cycle": "error",
|
|
174
|
-
* "react/self-closing-comp": ["error", { "html": false }]
|
|
175
|
-
* },
|
|
176
|
-
* overrides: [
|
|
177
|
-
* {
|
|
178
|
-
* files: ["*.test.ts", "*.spec.ts"],
|
|
179
|
-
* rules: {
|
|
180
|
-
* "@typescript-eslint/no-explicit-any": "off"
|
|
181
|
-
* }
|
|
182
|
-
* }
|
|
183
|
-
* ]
|
|
184
|
-
* }
|
|
185
|
-
* });
|
|
186
|
-
* ```
|
|
187
151
|
*/
|
|
188
152
|
interface Oxlintrc$1 {
|
|
189
153
|
/**
|
|
@@ -373,14 +337,6 @@ interface OxlintGlobals {
|
|
|
373
337
|
* Options for the linter.
|
|
374
338
|
*/
|
|
375
339
|
interface OxlintOptions {
|
|
376
|
-
/**
|
|
377
|
-
* Report unused disable directives (e.g. `// oxlint-disable-line` or `// eslint-disable-line`).
|
|
378
|
-
*
|
|
379
|
-
* Equivalent to passing `--report-unused-disable-directives-severity` on the CLI.
|
|
380
|
-
* CLI flags take precedence over this value when both are set.
|
|
381
|
-
* Only supported in the root configuration file.
|
|
382
|
-
*/
|
|
383
|
-
reportUnusedDisableDirectives?: AllowWarnDeny | null;
|
|
384
340
|
/**
|
|
385
341
|
* Ensure warnings produce a non-zero exit code.
|
|
386
342
|
*
|
|
@@ -393,6 +349,14 @@ interface OxlintOptions {
|
|
|
393
349
|
* Equivalent to passing `--max-warnings` on the CLI.
|
|
394
350
|
*/
|
|
395
351
|
maxWarnings?: number | null;
|
|
352
|
+
/**
|
|
353
|
+
* Report unused disable directives (e.g. `// oxlint-disable-line` or `// eslint-disable-line`).
|
|
354
|
+
*
|
|
355
|
+
* Equivalent to passing `--report-unused-disable-directives-severity` on the CLI.
|
|
356
|
+
* CLI flags take precedence over this value when both are set.
|
|
357
|
+
* Only supported in the root configuration file.
|
|
358
|
+
*/
|
|
359
|
+
reportUnusedDisableDirectives?: AllowWarnDeny | null;
|
|
396
360
|
/**
|
|
397
361
|
* Enable rules that require type information.
|
|
398
362
|
*
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-react-compiler-experimental",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Linter for the JavaScript Oxidation Compiler",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Linter for the JavaScript Oxidation Compiler (React Compiler Experimental)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
7
7
|
"javascript",
|
|
8
8
|
"linter",
|
|
9
9
|
"oxc",
|
|
10
10
|
"oxlint",
|
|
11
|
+
"react-compiler",
|
|
11
12
|
"typescript"
|
|
12
13
|
],
|
|
13
14
|
"homepage": "https://oxc.rs/docs/guide/usage/linter",
|
|
@@ -16,14 +17,11 @@
|
|
|
16
17
|
"author": "Boshen and oxc contributors",
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/
|
|
20
|
+
"url": "git+https://github.com/nicksrandall/oxc.git",
|
|
20
21
|
"directory": "npm/oxlint"
|
|
21
22
|
},
|
|
22
|
-
"funding": {
|
|
23
|
-
"url": "https://github.com/sponsors/Boshen"
|
|
24
|
-
},
|
|
25
23
|
"bin": {
|
|
26
|
-
"oxlint": "bin/oxlint"
|
|
24
|
+
"oxlint-react-compiler-experimental": "bin/oxlint"
|
|
27
25
|
},
|
|
28
26
|
"files": [
|
|
29
27
|
"configuration_schema.json",
|
|
@@ -44,21 +42,6 @@
|
|
|
44
42
|
"default": "./dist/plugins-dev.js"
|
|
45
43
|
}
|
|
46
44
|
},
|
|
47
|
-
"peerDependencies": {
|
|
48
|
-
"oxlint-tsgolint": ">=0.15.0"
|
|
49
|
-
},
|
|
50
|
-
"peerDependenciesMeta": {
|
|
51
|
-
"oxlint-tsgolint": {
|
|
52
|
-
"optional": true
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"napi": {
|
|
56
|
-
"binaryName": "oxlint",
|
|
57
|
-
"packageName": "@oxlint/binding",
|
|
58
|
-
"targets": [
|
|
59
|
-
"aarch64-apple-darwin"
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
45
|
"engines": {
|
|
63
46
|
"node": "^20.19.0 || >=22.12.0"
|
|
64
47
|
},
|
package/README.md
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<br>
|
|
3
|
-
<br>
|
|
4
|
-
<a href="https://oxc.rs" target="_blank" rel="noopener noreferrer">
|
|
5
|
-
<picture>
|
|
6
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://oxc.rs/oxc-light.svg">
|
|
7
|
-
<source media="(prefers-color-scheme: light)" srcset="https://oxc.rs/oxc-dark.svg">
|
|
8
|
-
<img alt="Oxc logo" src="https://oxc.rs/oxc-dark.svg" height="60">
|
|
9
|
-
</picture>
|
|
10
|
-
</a>
|
|
11
|
-
<br>
|
|
12
|
-
<br>
|
|
13
|
-
<br>
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
<div align="center">
|
|
17
|
-
|
|
18
|
-
[![MIT licensed][license-badge]][license-url]
|
|
19
|
-
[![Build Status][ci-badge]][ci-url]
|
|
20
|
-
[![Code Coverage][code-coverage-badge]][code-coverage-url]
|
|
21
|
-
[![Sponsors][sponsors-badge]][sponsors-url]
|
|
22
|
-
|
|
23
|
-
[![Discord chat][discord-badge]][discord-url]
|
|
24
|
-
[![Playground][playground-badge]][playground-url]
|
|
25
|
-
|
|
26
|
-
[discord-badge]: https://img.shields.io/discord/1079625926024900739?logo=discord&label=Discord
|
|
27
|
-
[discord-url]: https://discord.gg/9uXCAwqQZW
|
|
28
|
-
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
|
29
|
-
[license-url]: https://github.com/oxc-project/oxc/blob/main/LICENSE
|
|
30
|
-
[ci-badge]: https://github.com/oxc-project/oxc/actions/workflows/ci.yml/badge.svg?event=push&branch=main
|
|
31
|
-
[ci-url]: https://github.com/oxc-project/oxc/actions/workflows/ci.yml?query=event%3Apush+branch%3Amain
|
|
32
|
-
[npm-badge]: https://img.shields.io/npm/v/oxlint/latest?color=brightgreen
|
|
33
|
-
[npm-url]: https://npmx.dev/package/oxlint/v/latest
|
|
34
|
-
[code-size-badge]: https://img.shields.io/github/languages/code-size/oxc-project/oxc
|
|
35
|
-
[code-size-url]: https://github.com/oxc-project/oxc
|
|
36
|
-
[code-coverage-badge]: https://codecov.io/github/oxc-project/oxc/branch/main/graph/badge.svg
|
|
37
|
-
[code-coverage-url]: https://codecov.io/gh/oxc-project/oxc
|
|
38
|
-
[sponsors-badge]: https://img.shields.io/github/sponsors/Boshen
|
|
39
|
-
[sponsors-url]: https://github.com/sponsors/Boshen
|
|
40
|
-
[playground-badge]: https://img.shields.io/badge/Playground-blue?color=9BE4E0
|
|
41
|
-
[playground-url]: https://playground.oxc.rs/
|
|
42
|
-
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
# ⚓ Oxc
|
|
46
|
-
|
|
47
|
-
The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript.
|
|
48
|
-
|
|
49
|
-
## Oxlint
|
|
50
|
-
|
|
51
|
-
This is the linter for oxc.
|
|
52
|
-
|
|
53
|
-
See [usage instructions](https://oxc.rs/docs/guide/usage/linter).
|
|
54
|
-
|
|
55
|
-
Run
|
|
56
|
-
|
|
57
|
-
- `npx --yes oxlint@latest` in your JavaScript / TypeScript codebase and see it complete in milliseconds. No configurations are required.
|
|
58
|
-
- `npx oxlint@latest --help` for quick usage instructions.
|
|
59
|
-
- `npx oxlint@latest --rules` for the list of rules.
|