oxlint-react-compiler-experimental 0.0.0 → 0.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.
- 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 +1 -1
|
@@ -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
|