├── .node-version ├── CLAUDE.md ├── .serena └── .gitignore ├── editors └── vscode │ ├── LICENSE │ ├── fixtures │ ├── lint_on_run │ │ ├── onType.ts │ │ └── .oxlintrc.json │ ├── nested_config │ │ ├── index.ts │ │ ├── folder │ │ │ ├── index.ts │ │ │ └── .oxlintrc.json │ │ └── .oxlintrc.json │ ├── changing_enable │ │ └── debugger.js │ ├── debugger │ │ └── debugger.js │ ├── debugger_empty_config │ │ ├── .oxlintrc.json │ │ └── debugger.js │ ├── file_extensions │ │ ├── debugger.cjs │ │ ├── debugger.cts │ │ ├── debugger.js │ │ ├── debugger.jsx │ │ ├── debugger.mjs │ │ ├── debugger.mts │ │ ├── debugger.ts │ │ ├── debugger.tsx │ │ ├── debugger.astro │ │ ├── debugger.vue │ │ └── debugger.svelte │ ├── debugger_error │ │ ├── debugger.js │ │ └── .oxlintrc.json │ ├── changing_extended_config │ │ ├── debugger.js │ │ ├── .oxlintrc.json │ │ └── folder │ │ │ └── custom.json │ ├── formatting │ │ └── formatting.ts │ ├── changing_fix_kind │ │ └── for_direction.ts │ ├── formatting_with_config │ │ ├── formatter.json │ │ └── formatting.ts │ └── fixall_code_action_ignore_only_disable_fix │ │ ├── file2.js │ │ └── expected.txt │ ├── CONTRIBUTING.md │ └── .vscodeignore ├── napi ├── minify │ ├── test │ │ ├── colorless-console.js │ │ └── worker.mjs │ ├── build.rs │ └── browser.js ├── parser │ ├── build.rs │ ├── src-js │ │ └── browser.js │ └── test │ │ └── worker.js ├── .gitignore ├── playground │ ├── build.rs │ └── browser.js └── transform │ ├── build.rs │ ├── browser.js │ └── test │ └── worker.mjs ├── apps ├── oxlint │ ├── fixtures │ │ ├── eslintrc_off │ │ │ ├── test.js │ │ │ └── eslintrc.json │ │ ├── linter │ │ │ ├── no_extension │ │ │ ├── .customignore │ │ │ ├── debugger.js │ │ │ ├── nan.js │ │ │ ├── js_as_jsx.js │ │ │ └── eslintrc.json │ │ ├── fix_argument │ │ │ ├── fix.js │ │ │ └── fix.vue │ │ ├── tsconfig │ │ │ └── tsconfig.json │ │ ├── flow │ │ │ ├── index.mjs │ │ │ └── flow.js │ │ ├── issue_7566 │ │ │ ├── .oxlintignore │ │ │ └── tests │ │ │ │ ├── main.js │ │ │ │ └── function │ │ │ │ └── main.js │ │ ├── no_undef │ │ │ └── test.js │ │ ├── overrides │ │ │ ├── lib │ │ │ │ ├── index.ts │ │ │ │ └── tests │ │ │ │ │ └── index.js │ │ │ ├── src │ │ │ │ ├── oxlint.js │ │ │ │ └── tests │ │ │ │ │ └── index.js │ │ │ ├── test.js │ │ │ ├── test.ts │ │ │ └── other.jsx │ │ ├── eslintrc_env │ │ │ ├── test.js │ │ │ └── eslintrc_no_env.json │ │ ├── nested_config │ │ │ ├── debugger.js │ │ │ ├── console.ts │ │ │ ├── package1-empty-config │ │ │ │ ├── debugger.js │ │ │ │ └── console.ts │ │ │ ├── package2-no-config │ │ │ │ ├── debugger.js │ │ │ │ └── console.ts │ │ │ └── package3-deep-config │ │ │ │ └── src │ │ │ │ └── .oxlintrc.json │ │ ├── no_console_off │ │ │ ├── test.js │ │ │ └── eslintrc.json │ │ ├── auto_config_detection │ │ │ ├── debugger.js │ │ │ └── .oxlintrc.json │ │ ├── config_ignore_patterns │ │ │ ├── ignore_extension │ │ │ │ ├── main.js │ │ │ │ ├── main.ts │ │ │ │ └── eslintrc.json │ │ │ ├── with_oxlintrc │ │ │ │ ├── main.js │ │ │ │ ├── main.ts │ │ │ │ └── test │ │ │ │ │ ├── main.ts │ │ │ │ │ └── eslintrc.json │ │ │ └── ignore_directory │ │ │ │ ├── main.js │ │ │ │ ├── tests │ │ │ │ └── main.spec.js │ │ │ │ └── eslintrc.json │ │ ├── dot_folder │ │ │ └── .a_dot_folder │ │ │ │ └── index.ts │ │ ├── tsgolint │ │ │ ├── no-base-to-string.ts │ │ │ ├── restrict-plus-operands.ts │ │ │ ├── await-thenable.ts │ │ │ ├── no-implied-eval.ts │ │ │ ├── non-tsgolint.ts │ │ │ ├── only-throw-error.ts │ │ │ ├── prefer-promise-reject-errors.ts │ │ │ ├── no-redundant-type-constituents.ts │ │ │ ├── no-array-delete.ts │ │ │ ├── config-test.json │ │ │ ├── no-duplicate-type-constituents.ts │ │ │ ├── no-unnecessary-template-expression.ts │ │ │ ├── no-unsafe-call.ts │ │ │ ├── no-mixed-enums.ts │ │ │ ├── no-unsafe-member-access.ts │ │ │ ├── strict-boolean-expressions.ts │ │ │ ├── no-unsafe-unary-minus.ts │ │ │ ├── no-misused-spread.ts │ │ │ ├── require-array-sort-compare.ts │ │ │ ├── no-unsafe-assignment.ts │ │ │ └── no-unsafe-type-assertion.ts │ │ ├── vue │ │ │ └── empty.vue │ │ ├── auto_config_parse_error │ │ │ ├── debugger.js │ │ │ └── .oxlintrc.json │ │ ├── extends_config │ │ │ ├── console.js │ │ │ ├── overrides │ │ │ │ ├── test.ts │ │ │ │ └── test.tsx │ │ │ ├── overrides_same_directory │ │ │ │ └── config │ │ │ │ │ └── test.js │ │ │ ├── extends_rules_config.json │ │ │ └── relative_paths │ │ │ │ └── extends_extends_config.json │ │ ├── ignore_patterns_whitelist │ │ │ ├── index.ts │ │ │ └── index.whitelist.ts │ │ ├── ignore_patterns_mixed │ │ │ ├── should_be_ignored.ts │ │ │ ├── nested │ │ │ │ ├── should_be_ignored.ts │ │ │ │ ├── should_not_be_ignored.ts │ │ │ │ └── .oxlintrc.json │ │ │ └── .oxlintrc.json │ │ ├── tsgolint_config_error │ │ │ ├── index.ts │ │ │ └── tsconfig.json │ │ ├── tsgolint_type_error │ │ │ ├── index.ts │ │ │ └── index.js │ │ ├── ignore_pattern_non_glob_syntax │ │ │ ├── ignored_dir │ │ │ │ └── index.ts │ │ │ ├── with_nested │ │ │ │ └── ignored_dir │ │ │ │ │ └── index.ts │ │ │ └── .oxlintrc.json │ │ ├── ignore_patterns_empty_nested │ │ │ ├── ignored-file.ts │ │ │ └── another_config │ │ │ │ └── not-ignored-file.ts │ │ ├── ignore_patterns_relative │ │ │ ├── nested │ │ │ │ ├── should_be_ignored.ts │ │ │ │ └── should_not_be_ignored.js │ │ │ ├── should_not_be_ignored.ts │ │ │ └── .oxlintrc.json │ │ ├── ignore_patterns_symlink │ │ │ └── testdir │ │ │ │ ├── ignored_dir │ │ │ │ └── index.ts │ │ │ │ └── .oxlintrc.json │ │ ├── issue_10054 │ │ │ ├── b.ts │ │ │ └── a.ts │ │ ├── issue_10394 │ │ │ └── foo.test.ts │ │ ├── issue_11054 │ │ │ └── index.js │ │ ├── walk_dir │ │ │ └── foo.js │ │ ├── no_empty_allow_empty_catch │ │ │ └── test.js │ │ ├── no_empty_disallow_empty_catch │ │ │ └── test.js │ │ ├── ignore_file_current_dir │ │ │ ├── a │ │ │ │ └── bar.js │ │ │ └── foo.js │ │ ├── eslintrc_vitest_replace │ │ │ └── foo.test.js │ │ ├── test.min.js │ │ ├── import-cycle │ │ │ ├── a.ts │ │ │ └── b.ts │ │ ├── two_rules_with_same_rule_name │ │ │ └── test.js │ │ ├── typescript_eslint │ │ │ └── test.ts │ │ ├── output_formatter_diagnostic │ │ │ └── test.js │ │ ├── tsgolint_tsconfig_extends_config_err │ │ │ └── tsconfig.json │ │ ├── cross_module_extended_config │ │ │ └── .oxlintrc.json │ │ └── cross_module_nested_config │ │ │ └── dep-a.ts │ ├── conformance │ │ └── .gitignore │ ├── test │ │ └── fixtures │ │ │ ├── createOnce │ │ │ └── files │ │ │ │ ├── 1.js │ │ │ │ └── 2.js │ │ │ ├── basic │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── definePlugin │ │ │ ├── files │ │ │ │ ├── 1.js │ │ │ │ └── 2.js │ │ │ └── options.json │ │ │ ├── defineRule │ │ │ ├── files │ │ │ │ ├── 1.js │ │ │ │ └── 2.js │ │ │ └── options.json │ │ │ ├── globals │ │ │ └── files │ │ │ │ ├── index.js │ │ │ │ └── nested │ │ │ │ └── index.js │ │ │ ├── options │ │ │ └── files │ │ │ │ ├── index.js │ │ │ │ └── nested │ │ │ │ └── index.js │ │ │ ├── sourceCode │ │ │ └── files │ │ │ │ ├── 2.js │ │ │ │ └── 1.js │ │ │ ├── basic_many_files │ │ │ └── files │ │ │ │ ├── 01.js │ │ │ │ ├── 02.js │ │ │ │ ├── 03.js │ │ │ │ ├── 04.js │ │ │ │ ├── 05.js │ │ │ │ ├── 06.js │ │ │ │ ├── 07.js │ │ │ │ ├── 08.js │ │ │ │ ├── 09.js │ │ │ │ ├── 10.js │ │ │ │ ├── 11.js │ │ │ │ ├── 12.js │ │ │ │ ├── 13.js │ │ │ │ ├── 14.js │ │ │ │ ├── 15.js │ │ │ │ ├── 16.js │ │ │ │ ├── 17.js │ │ │ │ ├── 18.js │ │ │ │ ├── 19.js │ │ │ │ └── 20.js │ │ │ ├── context_properties │ │ │ └── files │ │ │ │ ├── 1.js │ │ │ │ └── 2.js │ │ │ ├── languageOptions │ │ │ └── files │ │ │ │ ├── index.cjs │ │ │ │ ├── index.js │ │ │ │ └── index.mjs │ │ │ ├── lint_fix_error │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── lint_visit_error │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── load_paths │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── nested_config │ │ │ └── files │ │ │ │ ├── index.ts │ │ │ │ └── .oxlintrc.json │ │ │ ├── overrides │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── basic_no_errors │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── built_in_errors │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── built_in_no_errors │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── lint_after_hook_error │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── lint_createOnce_error │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── lint_create_error │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── message_id_error │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── options_invalid │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── sourceCode_late_access │ │ │ └── files │ │ │ │ ├── 2.js │ │ │ │ └── 1.js │ │ │ ├── basic_warn_severity │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── definePlugin_and_defineRule │ │ │ ├── files │ │ │ │ ├── 1.js │ │ │ │ └── 2.js │ │ │ └── options.json │ │ │ ├── fixes │ │ │ └── options.json │ │ │ ├── lint_before_hook_error │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── nested_config_duplicate │ │ │ └── files │ │ │ │ └── index.ts │ │ │ ├── overrides_missing_rule │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── settings │ │ │ └── files │ │ │ │ ├── test.js │ │ │ │ └── nested │ │ │ │ └── index.js │ │ │ ├── import_error │ │ │ └── plugin.ts │ │ │ ├── plugin_name_alias_invalid │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── plugin_name_alias_reserved │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── parent │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── basic_multiple_rules │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── context_wrapping │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── diagnostic_loc │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── missing_plugin │ │ │ └── .oxlintrc.json │ │ │ ├── plugin_name_missing │ │ │ └── .oxlintrc.json │ │ │ ├── plugin_name_missing2 │ │ │ ├── .oxlintrc.json │ │ │ └── node_modules │ │ │ │ └── no_name │ │ │ │ └── package.json │ │ │ ├── plugin_name_reserved │ │ │ └── .oxlintrc.json │ │ │ ├── message_id_plugin │ │ │ └── files │ │ │ │ └── index.js │ │ │ ├── plugin_name │ │ │ ├── files │ │ │ │ └── index.js │ │ │ └── node_modules │ │ │ │ └── no_name │ │ │ │ └── package.json │ │ │ └── utf16_offsets │ │ │ └── files │ │ │ └── index.js │ ├── .gitignore │ ├── build.rs │ └── src-js │ │ └── plugins │ │ └── typescript.cjs └── oxfmt │ ├── test │ └── fixtures │ │ ├── symlink_dirs │ │ ├── bar.js │ │ ├── foo │ │ │ └── file.js │ │ └── root.js │ │ ├── editorconfig │ │ ├── empty │ │ │ ├── .editorconfig │ │ │ └── test.js │ │ ├── no_root_section │ │ │ ├── test.js │ │ │ ├── test.ts │ │ │ └── .editorconfig │ │ ├── with_oxfmtrc │ │ │ ├── test.js │ │ │ ├── .editorconfig │ │ │ └── .oxfmtrc.json │ │ ├── basic │ │ │ ├── test.js │ │ │ └── .editorconfig │ │ ├── partial_override │ │ │ ├── .editorconfig │ │ │ ├── .oxfmtrc.json │ │ │ └── test.js │ │ └── per_file_override │ │ │ ├── test.js │ │ │ ├── test.ts │ │ │ └── nested │ │ │ └── deep │ │ │ ├── test.js │ │ │ └── test.json │ │ ├── exclude_nested │ │ ├── ok.js │ │ └── foo │ │ │ ├── ok.js │ │ │ └── bar │ │ │ ├── ok.js │ │ │ └── error.js │ │ ├── external_formatter │ │ └── foo.json │ │ ├── ignore_patterns │ │ ├── custom.ignore │ │ ├── gitignore.txt │ │ ├── good.ts │ │ ├── .prettierignore │ │ ├── formatted │ │ │ └── good.js │ │ ├── not-formatted │ │ │ ├── bad.js │ │ │ └── bad.ts │ │ └── ignored │ │ │ ├── should-be-ignored.js │ │ │ └── should-be-ignored.ts │ │ ├── config_file │ │ ├── nested │ │ │ ├── deep │ │ │ │ └── test.js │ │ │ └── .oxfmtrc.jsonc │ │ ├── fmt.json │ │ ├── .oxfmtrc.json │ │ ├── .oxfmtrc.jsonc │ │ └── fmt.jsonc │ │ ├── extensions │ │ ├── test.cjs │ │ ├── test.js │ │ ├── test.pac │ │ ├── test.es6 │ │ ├── test.mjs │ │ ├── test.ts │ │ ├── test.jsm │ │ ├── test.jsx │ │ ├── test.cts │ │ ├── test.mts │ │ ├── test.tsx │ │ └── Jakefile │ │ ├── write_mode │ │ ├── already_formatted.js │ │ ├── unformatted.js │ │ └── complex.js │ │ ├── config_ignore_patterns │ │ ├── not-formatted │ │ │ ├── err.js │ │ │ └── bad.js │ │ ├── fmtrc.jsonc │ │ └── .oxfmtrc.json │ │ ├── ignore_and_override │ │ ├── should_format │ │ │ └── ok.js │ │ ├── should_ignore │ │ │ └── err.js │ │ ├── ignore1 │ │ └── ignore2 │ │ ├── node_modules_dirs │ │ ├── root.js │ │ ├── regular_dir │ │ │ ├── test.js │ │ │ └── node_modules │ │ │ │ └── test.js │ │ └── node_modules │ │ │ └── test.js │ │ ├── toml │ │ └── use-tab.json │ │ ├── vcs_dirs │ │ ├── .hg │ │ │ └── test.js │ │ ├── .jj │ │ │ └── test.js │ │ ├── .sl │ │ │ └── test.js │ │ ├── root.js │ │ ├── .svn │ │ │ └── test.js │ │ └── regular_dir │ │ │ ├── .jj │ │ │ └── test.js │ │ │ └── test.js │ │ └── embedded_languages │ │ ├── off_embedded.json │ │ └── on_embedded.json │ ├── .gitignore │ └── build.rs ├── crates ├── oxc_linter │ ├── fixtures │ │ ├── import │ │ │ ├── foo.cjs │ │ │ ├── foo.js │ │ │ ├── no-amd.js │ │ │ ├── CaseyKasem.js │ │ │ ├── @my-alias │ │ │ │ └── fn.js │ │ │ ├── bar.json │ │ │ ├── export-star-3 │ │ │ │ ├── c.ts │ │ │ │ └── b.ts │ │ │ ├── test.giffy │ │ │ ├── ignore.invalid.extension │ │ │ ├── internal-modules │ │ │ │ ├── test.js │ │ │ │ ├── plugins │ │ │ │ │ ├── plugin.js │ │ │ │ │ └── plugin2 │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── internal.js │ │ │ │ │ │ └── app │ │ │ │ │ │ └── index.js │ │ │ │ ├── api │ │ │ │ │ └── service │ │ │ │ │ │ └── index.js │ │ │ │ ├── package.json │ │ │ │ └── typescript │ │ │ │ │ ├── plugins.ts │ │ │ │ │ └── plugin2 │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── app │ │ │ │ │ └── index.ts │ │ │ │ │ └── internal.ts │ │ │ ├── node_modules │ │ │ │ ├── chai │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── exceljs │ │ │ │ │ ├── excel.js │ │ │ │ │ └── package.json │ │ │ │ ├── @org │ │ │ │ │ ├── package │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── internal.js │ │ │ │ │ │ └── package.json │ │ │ │ │ └── not-a-dependency │ │ │ │ │ │ ├── foo.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ ├── esm-package │ │ │ │ │ ├── index.js │ │ │ │ │ └── esm-module │ │ │ │ │ │ └── index.js │ │ │ │ ├── left-pad │ │ │ │ │ ├── index.js │ │ │ │ │ ├── not-a-dependency │ │ │ │ │ └── package.json │ │ │ │ ├── react │ │ │ │ │ ├── index.js │ │ │ │ │ ├── not-a-dependency │ │ │ │ │ └── package.json │ │ │ │ ├── @generated │ │ │ │ │ ├── bar │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ │ └── foo │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ ├── not-a-dependency │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── a │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── esm-package-not-in-pkg-json │ │ │ │ │ ├── index.js │ │ │ │ │ └── esm-module │ │ │ │ │ │ └── index.js │ │ │ │ ├── acorn │ │ │ │ │ ├── acorn.d.ts │ │ │ │ │ ├── acorn.d.mts │ │ │ │ │ └── acorn.mjs │ │ │ │ ├── es6-module │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── jquery │ │ │ │ │ ├── dist │ │ │ │ │ │ └── jquery.js │ │ │ │ │ └── package.json │ │ │ │ ├── jsx-module │ │ │ │ │ ├── foo.jsx │ │ │ │ │ └── package.json │ │ │ │ ├── rxjs │ │ │ │ │ ├── index.js │ │ │ │ │ └── operators │ │ │ │ │ │ └── index.js │ │ │ │ └── eslint-import-resolver-foo │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── restricted-paths │ │ │ │ ├── client │ │ │ │ │ ├── a.js │ │ │ │ │ └── one │ │ │ │ │ │ └── a.js │ │ │ │ └── server │ │ │ │ │ ├── b.js │ │ │ │ │ ├── c.js │ │ │ │ │ ├── c.ts │ │ │ │ │ ├── one │ │ │ │ │ ├── a.js │ │ │ │ │ └── b.js │ │ │ │ │ ├── three │ │ │ │ │ └── a.js │ │ │ │ │ ├── two │ │ │ │ │ └── a.js │ │ │ │ │ └── two-new │ │ │ │ │ └── a.js │ │ │ ├── bar.coffee │ │ │ ├── bar.jsx │ │ │ ├── bar │ │ │ │ └── index.js │ │ │ ├── deep │ │ │ │ ├── d.js │ │ │ │ ├── a.js │ │ │ │ ├── c.js │ │ │ │ ├── cache-2a.js │ │ │ │ ├── cache-1.js │ │ │ │ ├── cache-2b.js │ │ │ │ ├── default.js │ │ │ │ └── b.js │ │ │ ├── just-json-files │ │ │ │ └── invalid.json │ │ │ ├── no-unused-modules │ │ │ │ ├── empty_file.js │ │ │ │ ├── node_modules.js │ │ │ │ ├── bin.js │ │ │ │ ├── file-b.js │ │ │ │ ├── file-f.js │ │ │ │ ├── file-g.js │ │ │ │ ├── filte-r.js │ │ │ │ ├── file-ignored-b.js │ │ │ │ ├── prefix-child.js │ │ │ │ ├── file-ignored-a.js │ │ │ │ ├── jsx │ │ │ │ │ ├── file-jsx-b.jsx │ │ │ │ │ └── file-jsx-a.jsx │ │ │ │ ├── main │ │ │ │ │ └── index.js │ │ │ │ ├── browser.js │ │ │ │ ├── file-p.js │ │ │ │ ├── file-q.js │ │ │ │ ├── file-s.js │ │ │ │ ├── typescript │ │ │ │ │ ├── file-ts-b.ts │ │ │ │ │ ├── file-ts-c.ts │ │ │ │ │ ├── file-ts-d.ts │ │ │ │ │ ├── file-ts-e.ts │ │ │ │ │ ├── file-ts-g.ts │ │ │ │ │ ├── file-ts-b-unused.ts │ │ │ │ │ ├── file-ts-d-unused.ts │ │ │ │ │ ├── file-ts-e-unused.ts │ │ │ │ │ ├── file-ts-b-used-as-type.ts │ │ │ │ │ ├── file-ts-c-unused.ts │ │ │ │ │ ├── file-ts-d-used-as-type.ts │ │ │ │ │ ├── file-ts-e-used-as-type.ts │ │ │ │ │ ├── file-ts-f.ts │ │ │ │ │ ├── file-ts-c-used-as-type.ts │ │ │ │ │ ├── file-ts-g-used-as-type.ts │ │ │ │ │ └── file-ts-f-import-type.ts │ │ │ │ ├── file-d.js │ │ │ │ ├── file-e.js │ │ │ │ ├── file-j.js │ │ │ │ ├── file-k.js │ │ │ │ ├── binObject │ │ │ │ │ └── index.js │ │ │ │ ├── destructuring-a.js │ │ │ │ ├── file-ignored-d.js │ │ │ │ ├── file-ignored-e.js │ │ │ │ ├── prefix-parent-bom.js │ │ │ │ ├── privatePkg │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── browserObject │ │ │ │ │ └── index.js │ │ │ │ ├── file-a.js │ │ │ │ ├── import-export-1.js │ │ │ │ ├── renameDefault │ │ │ │ │ ├── Component.js │ │ │ │ │ ├── usage.js │ │ │ │ │ └── components.js │ │ │ │ ├── flow │ │ │ │ │ ├── flow-3.js │ │ │ │ │ └── flow-0.js │ │ │ │ ├── renameDefault-2 │ │ │ │ │ ├── ComponentA.js │ │ │ │ │ ├── ComponentB.js │ │ │ │ │ └── usage.js │ │ │ │ ├── file-destructured-2.js │ │ │ │ └── prefix-parent.js │ │ │ ├── deep-es7 │ │ │ │ ├── d.js │ │ │ │ ├── a.js │ │ │ │ ├── c.js │ │ │ │ └── b.js │ │ │ ├── empty-folder │ │ │ │ └── anchor.txt │ │ │ ├── order-redirect │ │ │ │ └── other-module │ │ │ │ │ └── file.js │ │ │ ├── data.json │ │ │ ├── file.with.dot.js │ │ │ ├── mutator.js │ │ │ ├── order-redirect-scoped │ │ │ │ └── other-module │ │ │ │ │ └── file.js │ │ │ ├── test.coffee │ │ │ ├── color.js │ │ │ ├── commonjs-namespace │ │ │ │ ├── b.js │ │ │ │ └── a.js │ │ │ ├── constants │ │ │ │ └── index.js │ │ │ ├── export-star-2 │ │ │ │ ├── upstream.js │ │ │ │ └── middle.js │ │ │ ├── export-star │ │ │ │ ├── extfield.js │ │ │ │ └── extfield2.js │ │ │ ├── foo-bar-resolver-invalid.js │ │ │ ├── index.js │ │ │ ├── issue-195 │ │ │ │ ├── Users.js │ │ │ │ ├── Bookings.js │ │ │ │ └── Endpoints.js │ │ │ ├── jsx │ │ │ │ ├── re-export.js │ │ │ │ ├── AnotherComponent.jsx │ │ │ │ ├── named.jsx │ │ │ │ └── bar │ │ │ │ │ └── index.js │ │ │ ├── src-root │ │ │ │ └── src-bar.js │ │ │ ├── symlinked-module │ │ │ │ └── index.js │ │ │ ├── webpack.empty.config.js │ │ │ ├── cycles │ │ │ │ ├── depth-zero.js │ │ │ │ ├── typescript │ │ │ │ │ ├── ts-value.ts │ │ │ │ │ └── ts-types-depth-two.ts │ │ │ │ ├── es6 │ │ │ │ │ ├── depth-one-reexport.js │ │ │ │ │ ├── depth-one.js │ │ │ │ │ ├── depth-two.js │ │ │ │ │ ├── depth-three-star.js │ │ │ │ │ └── depth-one-dynamic.js │ │ │ │ ├── flow-types-depth-two.js │ │ │ │ ├── external │ │ │ │ │ └── depth-one.js │ │ │ │ ├── ignore │ │ │ │ │ ├── index.js │ │ │ │ │ └── .eslintrc │ │ │ │ ├── intermediate-ignore.js │ │ │ │ ├── external-depth-two.js │ │ │ │ ├── flow-types-only-importing-type.js │ │ │ │ └── flow-types-some-type-imports.js │ │ │ ├── default-export-from.js │ │ │ ├── empty-named-blocks.js │ │ │ ├── issue210.js │ │ │ ├── jsx.js │ │ │ ├── package │ │ │ │ └── index.js │ │ │ ├── re-export-common-star.js │ │ │ ├── re-export-node_modules.js │ │ │ ├── sibling-with-names.js │ │ │ ├── export-props.js │ │ │ ├── no-self-import.js │ │ │ ├── package-named │ │ │ │ └── index.js │ │ │ ├── package-scoped │ │ │ │ └── index.js │ │ │ ├── re-export-common.js │ │ │ ├── test-module │ │ │ │ └── index.js │ │ │ ├── trampoline.js │ │ │ ├── typescript-d-ts │ │ │ │ └── file2.ts │ │ │ ├── typescript-no-compiler-options │ │ │ │ ├── tsconfig.json │ │ │ │ └── index.d.ts │ │ │ ├── default-class.js │ │ │ ├── export-star-4 │ │ │ │ └── module │ │ │ │ │ ├── index.ts │ │ │ │ │ └── feature.jsx │ │ │ ├── named-export-collision │ │ │ │ ├── a.js │ │ │ │ └── b.js │ │ │ ├── redux.js │ │ │ ├── typescript-default.ts │ │ │ ├── typescript-export-default │ │ │ │ └── index.ts │ │ │ ├── alternate-root │ │ │ │ └── in-alternate-root.js │ │ │ ├── bundled-dependencies │ │ │ │ ├── as-object │ │ │ │ │ └── node_modules │ │ │ │ │ │ └── @generated │ │ │ │ │ │ ├── bar │ │ │ │ │ │ └── index.js │ │ │ │ │ │ └── foo │ │ │ │ │ │ └── index.js │ │ │ │ ├── race-condition │ │ │ │ │ └── node_modules │ │ │ │ │ │ └── @generated │ │ │ │ │ │ ├── bar │ │ │ │ │ │ └── index.js │ │ │ │ │ │ └── foo │ │ │ │ │ │ └── index.js │ │ │ │ └── as-array-bundle-deps │ │ │ │ │ └── node_modules │ │ │ │ │ └── @generated │ │ │ │ │ ├── bar │ │ │ │ │ └── index.js │ │ │ │ │ └── foo │ │ │ │ │ └── index.js │ │ │ ├── default-export.js │ │ │ ├── load-error-resolver.js │ │ │ ├── malformed.js │ │ │ ├── missing-entrypoint │ │ │ │ └── package.json │ │ │ ├── no-self-import-folder │ │ │ │ └── index.js │ │ │ ├── typescript-export-assign-function.ts │ │ │ ├── typescript-export-enum.ts │ │ │ ├── with-flow-typed │ │ │ │ └── package.json │ │ │ ├── with-syntax-error │ │ │ │ └── package.json │ │ │ ├── @importType │ │ │ │ └── index.js │ │ │ ├── bar.js │ │ │ ├── importType │ │ │ │ └── index.js │ │ │ ├── default-export-from-ignored.js │ │ │ ├── empty │ │ │ │ └── package.json │ │ │ ├── exports-calc-keys.js │ │ │ ├── nested-common.js │ │ │ ├── unused-modules-reexport-crash │ │ │ │ └── src │ │ │ │ │ ├── magic │ │ │ │ │ └── index.js │ │ │ │ │ └── index.tsx │ │ │ ├── default-export-from-named.js │ │ │ ├── default-export-namespace-string.js │ │ │ ├── issue210.config.js │ │ │ ├── named-and-default-export.js │ │ │ ├── named-default-export.js │ │ │ ├── oxc │ │ │ │ └── indirect-export.js │ │ │ ├── deep-deprecated.js │ │ │ ├── default-export-default-property.js │ │ │ ├── issue-370-commonjs-namespace │ │ │ │ ├── foo.js │ │ │ │ └── bar.js │ │ │ ├── named-trampoline.js │ │ │ ├── qc.js │ │ │ ├── vue │ │ │ │ └── main.vue │ │ │ ├── narcissist.js │ │ │ ├── default-export-string.js │ │ │ ├── typescript-export-assign-default.d.ts │ │ │ ├── typescript-extended-config │ │ │ │ └── index.d.ts │ │ │ ├── common-module.js │ │ │ ├── common.js │ │ │ ├── broken-trampoline.js │ │ │ ├── exports-missing.js │ │ │ ├── typescript-export-assign-default-reexport.ts │ │ │ └── with-typescript-dev-dependencies │ │ │ │ └── package.json │ │ └── extends_config │ │ │ ├── console.js │ │ │ ├── overrides │ │ │ ├── test.ts │ │ │ └── test.tsx │ │ │ ├── invalid_config.json │ │ │ ├── plugins │ │ │ ├── jest.json │ │ │ ├── react.json │ │ │ └── child_no_plugins.json │ │ │ ├── extends_rules_config.json │ │ │ └── extends_invalid_config.json │ └── src │ │ └── rules │ │ └── jest │ │ ├── no_standalone_expect │ │ └── tests │ │ │ └── mod.rs │ │ └── prefer_lowercase_title │ │ └── tests │ │ └── mod.rs ├── oxc_compat │ └── README.md ├── oxc_parser │ └── src │ │ └── ts │ │ └── mod.rs ├── oxc_transformer │ └── src │ │ ├── utils │ │ └── mod.rs │ │ └── proposals │ │ └── mod.rs ├── oxc_formatter │ ├── src │ │ ├── ast_nodes │ │ │ ├── impls │ │ │ │ └── mod.rs │ │ │ └── generated │ │ │ │ └── mod.rs │ │ └── formatter │ │ │ ├── token │ │ │ └── mod.rs │ │ │ └── text_range.rs │ └── tests │ │ ├── mod.rs │ │ └── fixtures │ │ ├── js │ │ ├── array-assignment │ │ │ └── rest-only.js │ │ ├── array-pattern │ │ │ └── rest-only.js │ │ ├── assignments │ │ │ ├── parenthesis.js │ │ │ └── issue-16127.js │ │ ├── comments │ │ │ ├── directive.js │ │ │ └── logical.js │ │ ├── new-expression │ │ │ └── parenthesis.js │ │ ├── semicolons │ │ │ └── empty-line.js │ │ ├── awaits │ │ │ └── nested.js │ │ ├── calls │ │ │ └── blank-line.js │ │ ├── jsx │ │ │ └── new-expression.jsx │ │ └── template-literals │ │ │ └── parenthesis.js │ │ └── ts │ │ ├── mapped-type │ │ └── basic.ts │ │ ├── comments │ │ └── as.ts │ │ └── union │ │ └── parenthesis.ts ├── oxc_semantic │ └── tests │ │ ├── integration │ │ └── cfg_fixtures │ │ │ ├── string.js │ │ │ ├── template_string.js │ │ │ ├── unary_operator.js │ │ │ ├── class.js │ │ │ ├── template_literal.js │ │ │ ├── infix_operators.js │ │ │ ├── argument_map.js │ │ │ ├── break_from_a_label_in_global_scope.js │ │ │ ├── expression_spread.js │ │ │ ├── arrow_expressions.js │ │ │ ├── object_in_computer_member_expression.js │ │ │ ├── simple_spread.js │ │ │ ├── cond_expr_in_arrow_fn.js │ │ │ ├── indexing_into_class_expression.js │ │ │ ├── new_class_then_call_fn.js │ │ │ ├── spread_in_a_spread.js │ │ │ ├── conditional_expression.js │ │ │ ├── index_into_object_with_symbol_as_arg.js │ │ │ ├── new_and_meta.js │ │ │ └── nested_computed_member_expression.js │ │ └── fixtures │ │ ├── typescript-eslint │ │ ├── jsx │ │ │ ├── fragment.tsx │ │ │ ├── component.tsx │ │ │ ├── generic-type-param.tsx │ │ │ ├── attribute-spread.tsx │ │ │ ├── children.tsx │ │ │ ├── fragment-children.tsx │ │ │ └── text.tsx │ │ ├── functions │ │ │ ├── arrow │ │ │ │ ├── no-body.ts │ │ │ │ ├── default-params │ │ │ │ │ └── writable-ref.ts │ │ │ │ └── type-parameters │ │ │ │ │ └── param-reference.ts │ │ │ └── function-expression │ │ │ │ └── anonymous.ts │ │ ├── implicit │ │ │ └── implicit1.ts │ │ ├── type-declaration │ │ │ ├── type1.ts │ │ │ ├── import-type.ts │ │ │ ├── tuple.ts │ │ │ ├── type2.ts │ │ │ ├── interface2.ts │ │ │ ├── qualified-name.ts │ │ │ ├── tuple-rest.ts │ │ │ ├── interface1.ts │ │ │ ├── import-type-with-qualifier.ts │ │ │ ├── function │ │ │ │ └── function1.ts │ │ │ ├── index-access1.ts │ │ │ ├── tuple-labelled-rest.ts │ │ │ └── type-parameters │ │ │ │ └── type-decl │ │ │ │ └── body-reference.ts │ │ ├── class │ │ │ ├── declaration │ │ │ │ ├── new.ts │ │ │ │ ├── extends.ts │ │ │ │ ├── static-block.ts │ │ │ │ ├── generic-ref-extends.ts │ │ │ │ ├── generic.ts │ │ │ │ ├── implements.ts │ │ │ │ └── generic-ref-implements.ts │ │ │ └── expression │ │ │ │ ├── new.ts │ │ │ │ └── extends.ts │ │ ├── call-expression │ │ │ └── type-parameters1.ts │ │ ├── export │ │ │ ├── equals4-type.ts │ │ │ ├── equals2.ts │ │ │ ├── default3.ts │ │ │ ├── named-dual.ts │ │ │ ├── named1.ts │ │ │ ├── equals3-type.ts │ │ │ ├── named-type1.ts │ │ │ ├── equals1.ts │ │ │ ├── default1.ts │ │ │ ├── default4.ts │ │ │ ├── named-source1.ts │ │ │ ├── named2-type.ts │ │ │ └── named2.ts │ │ ├── ts-enum │ │ │ ├── literal-member.ts │ │ │ ├── member-ref.ts │ │ │ ├── self-ref.ts │ │ │ ├── external-ref.ts │ │ │ ├── literal-member-ref.ts │ │ │ └── scope.ts │ │ ├── type-annotation │ │ │ ├── variable-let.ts │ │ │ ├── variable-var.ts │ │ │ ├── parameter.ts │ │ │ ├── variable-const.ts │ │ │ ├── parameter-rest.ts │ │ │ ├── parameter-default.ts │ │ │ └── variable-array-destructure.ts │ │ ├── block │ │ │ ├── inherited-scope.ts │ │ │ └── scope.ts │ │ ├── new-expression │ │ │ └── type-parameters1.ts │ │ ├── type-assertion │ │ │ ├── as.ts │ │ │ ├── angle-bracket.ts │ │ │ └── satisfies.ts │ │ ├── decorators │ │ │ └── class.ts │ │ ├── destructuring │ │ │ └── array.ts │ │ ├── catch │ │ │ └── inherited-scope.ts │ │ └── ts-module │ │ │ └── self-ref.ts │ │ └── oxc │ │ ├── jsx │ │ ├── member-expression.jsx │ │ └── element-name.jsx │ │ ├── ts │ │ └── exports │ │ │ └── default │ │ │ └── type-alias.ts │ │ └── js │ │ └── assignments │ │ └── array.js ├── oxc_napi │ └── build.rs ├── oxc_language_server │ └── fixtures │ │ ├── formatter │ │ ├── ignore-file │ │ │ ├── .prettierignore │ │ │ ├── .oxfmtrc.json │ │ │ └── ignored.ts │ │ ├── root_config │ │ │ └── .oxfmtrc.json │ │ ├── custom_config_path │ │ │ └── format.json │ │ └── ignore-pattern │ │ │ └── .oxfmtrc.json │ │ └── linter │ │ ├── watchers │ │ ├── default │ │ │ └── .oxlintrc.json │ │ └── linter_extends │ │ │ ├── lint.json │ │ │ └── .oxlintrc.json │ │ ├── init_nested_configs │ │ ├── .oxlintrc.json │ │ └── deep1 │ │ │ ├── .oxlintrc.json │ │ │ └── deep2 │ │ │ └── .oxlintrc.json │ │ ├── invalid_syntax │ │ └── debugger.ts │ │ ├── ignore_patterns │ │ ├── ignored-file.ts │ │ └── another_config │ │ │ └── not-ignored-file.ts │ │ ├── js_plugins │ │ └── index.js │ │ ├── frameworks │ │ └── nextjs │ │ │ └── [[..rest]] │ │ │ └── debugger.ts │ │ ├── issue_14565 │ │ └── foo-bar.astro │ │ ├── no_errors │ │ ├── hello_world.js │ │ └── .oxlintrc.json │ │ ├── deny_no_console │ │ ├── hello_world.js │ │ └── .oxlintrc.json │ │ ├── multiple_suggestions │ │ └── forward_ref.ts │ │ ├── cross_module │ │ └── debugger.ts │ │ └── regexp_feature │ │ └── index.ts ├── oxc_ast │ └── src │ │ └── ast_impl │ │ └── mod.rs ├── oxc_isolated_declarations │ └── tests │ │ └── fixtures │ │ ├── empty-export2.ts │ │ └── empty-var-issue-11371.ts ├── oxc_traverse │ └── scripts │ │ └── package.json └── oxc_regular_expression │ └── src │ └── ast_impl │ └── mod.rs ├── tasks ├── coverage │ ├── misc │ │ ├── fail │ │ │ ├── oxc-10639.js │ │ │ ├── oxc-10977.ts │ │ │ ├── oxc-13617-1.ts │ │ │ ├── oxc-9525-1.js │ │ │ ├── oxc-10638.js │ │ │ ├── oxc-12816.ts │ │ │ ├── oxc-13617-2.ts │ │ │ ├── oxc-232.js │ │ │ ├── oxc-9525-2.js │ │ │ ├── oxc-11453.js │ │ │ ├── oxc-11592-3.ts │ │ │ ├── oxc-5355.jsx │ │ │ ├── oxc-11484.ts │ │ │ ├── oxc-11487.cjs │ │ │ ├── oxc-11487.mjs │ │ │ ├── oxc-11592-1.ts │ │ │ ├── oxc-11592-2.ts │ │ │ ├── oxc-11789-1.ts │ │ │ ├── oxc-12612-2.ts │ │ │ ├── oxc-13617-4.ts │ │ │ ├── oxc-9525-3.js │ │ │ ├── oxc-11789-2.ts │ │ │ ├── oxc-12612-1.ts │ │ │ ├── oxc-14944.ts │ │ │ ├── oxc-9497.js │ │ │ ├── escape-00.js │ │ │ ├── import-from-str.js │ │ │ ├── jsx-in-js.js │ │ │ ├── jsx-like-in-js.js │ │ │ ├── oxc-12612-3.ts │ │ │ ├── oxc-13617-3.ts │ │ │ ├── oxc-2144.js │ │ │ ├── oxc-4212-1.ts │ │ │ ├── oxc-5955-1.ts │ │ │ ├── imbalanced-import-decl.js │ │ │ ├── import-type-without-from.ts │ │ │ ├── import-without-from.js │ │ │ ├── oxc-11713-3.ts │ │ │ ├── oxc-12546-2.ts │ │ │ ├── oxc-12612-4.ts │ │ │ ├── import-defer-without-from.js │ │ │ ├── import-source-without-from.js │ │ │ ├── missing-conditional-alternative.js │ │ │ ├── oxc-11485.js │ │ │ ├── oxc-11713-2.ts │ │ │ ├── oxc-11713-26.ts │ │ │ ├── minus-yield-100.js │ │ │ ├── oxc-10159.js │ │ │ ├── oxc-11538.js │ │ │ ├── oxc-11713-10.ts │ │ │ ├── oxc-11713-11.ts │ │ │ ├── oxc-11713-12.ts │ │ │ ├── oxc-11713-21.ts │ │ │ ├── oxc-11713-22.ts │ │ │ ├── oxc-11713-24.ts │ │ │ ├── oxc-11713-27.ts │ │ │ ├── oxc-11713-9.ts │ │ │ ├── oxc-4111-1.js │ │ │ ├── oxc-4449-5.ts │ │ │ ├── switch-invalid-clause.js │ │ │ ├── imbalanced-array-expr.js │ │ │ ├── imbalanced-call-expr.js │ │ │ ├── imbalanced-export-expr.js │ │ │ ├── imbalanced-new-expr.js │ │ │ ├── imbalanced-object-expr.js │ │ │ ├── imbalanced-parenthesized-expr.js │ │ │ ├── import-source-non-from.js │ │ │ ├── missing-conditional-alternative-type.ts │ │ │ ├── oxc-11713-1.ts │ │ │ ├── oxc-11713-15.ts │ │ │ ├── oxc-11713-16.ts │ │ │ ├── oxc-11713-17.ts │ │ │ ├── oxc-11713-18.ts │ │ │ ├── oxc-11713-23.ts │ │ │ ├── oxc-11713-25.ts │ │ │ ├── oxc-11713-4.ts │ │ │ ├── oxc-11713-5.ts │ │ │ ├── oxc-11713-6.ts │ │ │ ├── oxc-11713-7.ts │ │ │ ├── oxc-11713-8.ts │ │ │ ├── oxc-1942-2.ts │ │ │ ├── oxc-5036.js │ │ │ ├── oxc-5955-2.ts │ │ │ ├── oxc-5955-3.ts │ │ │ ├── imbalanced-enum-expr.ts │ │ │ ├── imbalanced-tuple-type.ts │ │ │ ├── oxc-11713-13.ts │ │ │ ├── oxc-11713-19.ts │ │ │ ├── oxc-4449-2.ts │ │ │ ├── oxc-4449-3.ts │ │ │ ├── imbalanced-import-decl-attr.js │ │ │ ├── oxc-11713-14.ts │ │ │ ├── oxc-11713-20.ts │ │ │ ├── imbalanced-index-signature-decl.ts │ │ │ ├── oxc-1942-1.ts │ │ │ ├── oxc-4449-1.ts │ │ │ ├── oxc-7582.js │ │ │ ├── oxc-11472.js │ │ │ ├── oxc-11485.ts │ │ │ ├── oxc-4449-4.ts │ │ │ ├── oxc-4449-6.ts │ │ │ ├── oxc-169.js │ │ │ ├── oxc-11532.js │ │ │ └── oxc-12546-1.ts │ │ └── pass │ │ │ ├── oxc-3399.js │ │ │ ├── oxc-11505.js │ │ │ ├── oxc-8193.ts │ │ │ ├── oxc-4054.js │ │ │ ├── oxc-1288.ts │ │ │ ├── babel-16776-s.js │ │ │ ├── import-from-from.js │ │ │ ├── swc-7187.ts │ │ │ ├── minus-yield-100.js │ │ │ ├── oxc-11658.js │ │ │ ├── oxc-2394.ts │ │ │ ├── oxc-9215.ts │ │ │ ├── oxc-9541.ts │ │ │ ├── babel-16776-m.js │ │ │ ├── declare-let-private.ts │ │ │ ├── oxc-10503.ts │ │ │ ├── oxc-2592.ts │ │ │ ├── oxc-2087.ts │ │ │ ├── oxc-11659.d.ts │ │ │ ├── oxc-3262.js │ │ │ ├── oxc-3910.ts │ │ │ ├── oxc-10159.js │ │ │ ├── oxc-12679.js │ │ │ ├── oxc-2562.ts │ │ │ └── oxc-3443.tsx │ └── src │ │ └── runtime │ │ ├── .gitignore │ │ └── package.json ├── lint_rules │ └── .gitignore ├── transform_conformance │ ├── tests │ │ ├── regexp │ │ │ └── test │ │ │ │ └── fixtures │ │ │ │ ├── igm │ │ │ │ ├── input.js │ │ │ │ └── output.js │ │ │ │ ├── transform-dotall-regex │ │ │ │ ├── input.js │ │ │ │ └── output.js │ │ │ │ ├── transform-sticky-regex │ │ │ │ ├── input.js │ │ │ │ └── output.js │ │ │ │ ├── transform-unicode-regex │ │ │ │ ├── input.js │ │ │ │ └── output.js │ │ │ │ └── transform-unicode-sets-regex │ │ │ │ └── input.js │ │ ├── plugin-tagged-template-transform │ │ │ └── test │ │ │ │ └── fixtures │ │ │ │ ├── basic │ │ │ │ └── input.js │ │ │ │ ├── uppercase │ │ │ │ └── input.js │ │ │ │ ├── mixed-case │ │ │ │ └── input.js │ │ │ │ ├── invalid-escape │ │ │ │ └── input.js │ │ │ │ ├── no-script-tag │ │ │ │ ├── input.js │ │ │ │ └── output.js │ │ │ │ ├── multiple │ │ │ │ └── input.js │ │ │ │ └── opening-and-closing │ │ │ │ └── input.js │ │ ├── babel-plugin-transform-typescript │ │ │ └── test │ │ │ │ └── fixtures │ │ │ │ ├── ts-declaration-empty-output │ │ │ │ └── output.js │ │ │ │ └── elimination-declare │ │ │ │ └── output.js │ │ ├── babel-plugin-transform-class-properties │ │ │ └── test │ │ │ │ └── fixtures │ │ │ │ └── typescript │ │ │ │ └── abstract-prop │ │ │ │ └── output.js │ │ └── babel-plugin-transform-react-jsx │ │ │ └── test │ │ │ └── fixtures │ │ │ ├── misc │ │ │ ├── import_meta_pragma │ │ │ │ └── input.jsx │ │ │ └── this_expr_pragma │ │ │ │ ├── input.jsx │ │ │ │ └── output.js │ │ │ ├── spread-children-classic │ │ │ └── input.jsx │ │ │ ├── text │ │ │ └── unicode │ │ │ │ └── input.jsx │ │ │ └── spread-children-automatic │ │ │ └── input.jsx │ └── .gitignore └── e2e │ └── tsconfig.json ├── npm ├── runtime │ └── src │ │ └── helpers │ │ └── esm │ │ ├── package.json │ │ ├── identity.js │ │ ├── temporalUndefined.js │ │ └── AwaitValue.js ├── oxfmt │ └── bin │ │ └── oxfmt ├── oxlint │ └── bin │ │ └── oxlint └── oxc-types │ └── README.md ├── rust-toolchain.toml └── .github └── FUNDING.yml /.node-version: -------------------------------------------------------------------------------- 1 | 24.10.0 2 | -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- 1 | @AGENTS.md 2 | -------------------------------------------------------------------------------- /.serena/.gitignore: -------------------------------------------------------------------------------- 1 | /cache 2 | -------------------------------------------------------------------------------- /editors/vscode/LICENSE: -------------------------------------------------------------------------------- 1 | ../../LICENSE -------------------------------------------------------------------------------- /napi/minify/test/colorless-console.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/eslintrc_off/test.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/linter/no_extension: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/foo.cjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-amd.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-10639.js: -------------------------------------------------------------------------------- 1 | <<Ç -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/symlink_dirs/bar.js: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /crates/oxc_compat/README.md: -------------------------------------------------------------------------------- 1 | # Oxc Compat 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/CaseyKasem.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/lint_on_run/onType.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-10977.ts: -------------------------------------------------------------------------------- 1 | class{h:<=Ö -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-13617-1.ts: -------------------------------------------------------------------------------- 1 | foo<>() -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-9525-1.js: -------------------------------------------------------------------------------- 1 | x?.; 2 | -------------------------------------------------------------------------------- /apps/oxlint/conformance/.gitignore: -------------------------------------------------------------------------------- 1 | submodules 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/fix_argument/fix.js: -------------------------------------------------------------------------------- 1 | debugger 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/linter/.customignore: -------------------------------------------------------------------------------- 1 | nan.js 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/linter/debugger.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/linter/nan.js: -------------------------------------------------------------------------------- 1 | 123 == NaN; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsconfig/tsconfig.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/@my-alias/fn.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bar.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-star-3/c.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/test.giffy: -------------------------------------------------------------------------------- 1 | boo! 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-10638.js: -------------------------------------------------------------------------------- 1 | for( 2 | in 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-12816.ts: -------------------------------------------------------------------------------- 1 | {if(\ ()<1){}} -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-13617-2.ts: -------------------------------------------------------------------------------- 1 | new Foo<>() -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-232.js: -------------------------------------------------------------------------------- 1 | x = (/* a */) 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-9525-2.js: -------------------------------------------------------------------------------- 1 | [x?.]; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/empty/.editorconfig: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/flow/index.mjs: -------------------------------------------------------------------------------- 1 | import './flow.js' 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/issue_7566/.oxlintignore: -------------------------------------------------------------------------------- 1 | tests/** 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/no_undef/test.js: -------------------------------------------------------------------------------- 1 | console.log(foo) 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/overrides/lib/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/overrides/src/oxlint.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/createOnce/files/1.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/createOnce/files/2.js: -------------------------------------------------------------------------------- 1 | let y; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/ignore.invalid.extension: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/test.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11453.js: -------------------------------------------------------------------------------- 1 | export import 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11592-3.ts: -------------------------------------------------------------------------------- 1 | namespace a; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-5355.jsx: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-3399.js: -------------------------------------------------------------------------------- 1 | (/\./.exec()) 2 | -------------------------------------------------------------------------------- /apps/oxfmt/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /dist/ 3 | *.node 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/exclude_nested/ok.js: -------------------------------------------------------------------------------- 1 | const a = 1; 2 | -------------------------------------------------------------------------------- /apps/oxlint/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /dist/ 3 | *.node 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/eslintrc_env/test.js: -------------------------------------------------------------------------------- 1 | console.log('') 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/issue_7566/tests/main.js: -------------------------------------------------------------------------------- 1 | 123 == NaN; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/nested_config/debugger.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/no_console_off/test.js: -------------------------------------------------------------------------------- 1 | console.log() 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/overrides/lib/tests/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/overrides/src/tests/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/definePlugin/files/1.js: -------------------------------------------------------------------------------- 1 | let a, b; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/definePlugin/files/2.js: -------------------------------------------------------------------------------- 1 | let c, d; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/defineRule/files/1.js: -------------------------------------------------------------------------------- 1 | let a, b; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/defineRule/files/2.js: -------------------------------------------------------------------------------- 1 | let c, d; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/globals/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/options/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/sourceCode/files/2.js: -------------------------------------------------------------------------------- 1 | let qux; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/chai/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/exceljs/excel.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/client/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/server/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/server/c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/server/c.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/nested_config/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11484.ts: -------------------------------------------------------------------------------- 1 | import { type as as } 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11487.cjs: -------------------------------------------------------------------------------- 1 | async await => {} 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11487.mjs: -------------------------------------------------------------------------------- 1 | async await => {} 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11592-1.ts: -------------------------------------------------------------------------------- 1 | namespace "a" {} 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11592-2.ts: -------------------------------------------------------------------------------- 1 | namespace "a"; 2 | 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11789-1.ts: -------------------------------------------------------------------------------- 1 | interface i<>implements -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-12612-2.ts: -------------------------------------------------------------------------------- 1 | (foo()) = 123; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-13617-4.ts: -------------------------------------------------------------------------------- 1 | const foo: Foo<> = 1 -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-9525-3.js: -------------------------------------------------------------------------------- 1 | () => { 2 | x?. 3 | } -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-11505.js: -------------------------------------------------------------------------------- 1 | import type from 'module' -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-8193.ts: -------------------------------------------------------------------------------- 1 | const 2 | enum A {} 3 | -------------------------------------------------------------------------------- /tasks/coverage/src/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | v8_test262.status 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/exclude_nested/foo/ok.js: -------------------------------------------------------------------------------- 1 | const a = 1; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/external_formatter/foo.json: -------------------------------------------------------------------------------- 1 | {"x":1} 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/custom.ignore: -------------------------------------------------------------------------------- 1 | ignored/ 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/gitignore.txt: -------------------------------------------------------------------------------- 1 | ignored/ 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/good.ts: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/auto_config_detection/debugger.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/ignore_extension/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/ignore_extension/main.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/with_oxlintrc/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/with_oxlintrc/main.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/dot_folder/.a_dot_folder/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-base-to-string.ts: -------------------------------------------------------------------------------- 1 | ({}).toString(); -------------------------------------------------------------------------------- /apps/oxlint/fixtures/vue/empty.vue: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/01.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/02.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/03.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/04.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/05.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/06.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/07.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/08.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/09.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/10.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/11.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/12.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/13.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/14.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/15.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/16.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/17.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/18.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/19.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_many_files/files/20.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/context_properties/files/1.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/context_properties/files/2.js: -------------------------------------------------------------------------------- 1 | let y; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/globals/files/nested/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/languageOptions/files/index.cjs: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/languageOptions/files/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/languageOptions/files/index.mjs: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/lint_fix_error/files/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/lint_visit_error/files/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/load_paths/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/nested_config/files/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/options/files/nested/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/overrides/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bar.coffee: -------------------------------------------------------------------------------- 1 | console.log 'bar' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bar.jsx: -------------------------------------------------------------------------------- 1 | export default null 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bar/index.js: -------------------------------------------------------------------------------- 1 | export default 4 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep/d.js: -------------------------------------------------------------------------------- 1 | export const e = "e" 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/plugins/plugin.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/just-json-files/invalid.json: -------------------------------------------------------------------------------- 1 | , 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/empty_file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/node_modules.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@org/package/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/esm-package/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/left-pad/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/react/index.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/client/one/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/server/one/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/server/one/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/server/three/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/server/two/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_parser/src/ts/mod.rs: -------------------------------------------------------------------------------- 1 | mod statement; 2 | mod types; 3 | -------------------------------------------------------------------------------- /crates/oxc_transformer/src/utils/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod ast_builder; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/changing_enable/debugger.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/debugger/debugger.js: -------------------------------------------------------------------------------- 1 | /* 😊 */debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/debugger_empty_config/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.cjs: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.cts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.jsx: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.mjs: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.mts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.tsx: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/nested_config/folder/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11789-2.ts: -------------------------------------------------------------------------------- 1 | interface i<>implements K {} -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-12612-1.ts: -------------------------------------------------------------------------------- 1 | (foo() as bar) = 123; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-14944.ts: -------------------------------------------------------------------------------- 1 | const x = function foo(); 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-9497.js: -------------------------------------------------------------------------------- 1 | let repro = {}; 2 | repro.f?. -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-4054.js: -------------------------------------------------------------------------------- 1 | (idCounter++).toString(32) 2 | -------------------------------------------------------------------------------- /apps/oxfmt/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | napi_build::setup(); 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_file/nested/deep/test.js: -------------------------------------------------------------------------------- 1 | const a = 1 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/exclude_nested/foo/bar/ok.js: -------------------------------------------------------------------------------- 1 | const a = 1; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.cjs: -------------------------------------------------------------------------------- 1 | module.exports = "cjs"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.js: -------------------------------------------------------------------------------- 1 | const standard = "js"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.pac: -------------------------------------------------------------------------------- 1 | const standard = "pac"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/write_mode/already_formatted.js: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | -------------------------------------------------------------------------------- /apps/oxlint/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | napi_build::setup(); 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/auto_config_parse_error/debugger.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/ignore_directory/main.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/with_oxlintrc/test/main.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/extends_config/console.js: -------------------------------------------------------------------------------- 1 | console.log("test"); 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_whitelist/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/issue_7566/tests/function/main.js: -------------------------------------------------------------------------------- 1 | 123 == NaN; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/nested_config/console.ts: -------------------------------------------------------------------------------- 1 | console.log("test"); 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_no_errors/files/index.js: -------------------------------------------------------------------------------- 1 | let _x = 1; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/built_in_errors/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/built_in_no_errors/files/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/lint_after_hook_error/files/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/lint_createOnce_error/files/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/lint_create_error/files/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/message_id_error/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/options_invalid/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/sourceCode_late_access/files/2.js: -------------------------------------------------------------------------------- 1 | let qux; 2 | -------------------------------------------------------------------------------- /crates/oxc_formatter/src/ast_nodes/impls/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod ast_nodes; 2 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/mod.rs: -------------------------------------------------------------------------------- 1 | mod fixtures; 2 | mod ir_transform; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep-es7/d.js: -------------------------------------------------------------------------------- 1 | export const e = "e" 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/empty-folder/anchor.txt: -------------------------------------------------------------------------------- 1 | no js here! 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/api/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/typescript/plugins.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@generated/bar/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@generated/foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@org/package/internal.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/left-pad/not-a-dependency: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/not-a-dependency/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/react/not-a-dependency: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/order-redirect/other-module/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/restricted-paths/server/two-new/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/string.js: -------------------------------------------------------------------------------- 1 | "utf8" 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/debugger_error/debugger.js: -------------------------------------------------------------------------------- 1 | /* 😊 */debugger; 2 | -------------------------------------------------------------------------------- /napi/minify/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | napi_build::setup(); 3 | } 4 | -------------------------------------------------------------------------------- /napi/parser/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | napi_build::setup(); 3 | } 4 | -------------------------------------------------------------------------------- /npm/runtime/src/helpers/esm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/escape-00.js: -------------------------------------------------------------------------------- 1 | export const escape00 = "\00"; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/import-from-str.js: -------------------------------------------------------------------------------- 1 | import from 'module'; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/jsx-in-js.js: -------------------------------------------------------------------------------- 1 | export const foo = ; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/jsx-like-in-js.js: -------------------------------------------------------------------------------- 1 | export const foo = = 1} -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-2144.js: -------------------------------------------------------------------------------- 1 | class {} 2 | export class {} 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-4212-1.ts: -------------------------------------------------------------------------------- 1 | class a { const enum b(); } 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-5955-1.ts: -------------------------------------------------------------------------------- 1 | const x?: number = 1; 2 | 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-1288.ts: -------------------------------------------------------------------------------- 1 | import type from from "foo"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_file/fmt.json: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_ignore_patterns/not-formatted/err.js: -------------------------------------------------------------------------------- 1 | class 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.es6: -------------------------------------------------------------------------------- 1 | const es6 = "ecmascript6"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.mjs: -------------------------------------------------------------------------------- 1 | export const module = "mjs"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.ts: -------------------------------------------------------------------------------- 1 | const typed: string = "ts"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_and_override/should_format/ok.js: -------------------------------------------------------------------------------- 1 | const a=1 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_and_override/should_ignore/err.js: -------------------------------------------------------------------------------- 1 | class { 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/.prettierignore: -------------------------------------------------------------------------------- 1 | not-formatted/ 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/formatted/good.js: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/extends_config/overrides/test.ts: -------------------------------------------------------------------------------- 1 | const x: any = 3; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_mixed/should_be_ignored.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/restrict-plus-operands.ts: -------------------------------------------------------------------------------- 1 | let foo = 1n + 1; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint_config_error/index.ts: -------------------------------------------------------------------------------- 1 | export const one = 1; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_warn_severity/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/definePlugin_and_defineRule/files/1.js: -------------------------------------------------------------------------------- 1 | let a, b; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/definePlugin_and_defineRule/files/2.js: -------------------------------------------------------------------------------- 1 | let c, d; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/fixes/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "fix": true 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/lint_before_hook_error/files/index.js: -------------------------------------------------------------------------------- 1 | let x; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/nested_config_duplicate/files/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/overrides_missing_rule/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/settings/files/test.js: -------------------------------------------------------------------------------- 1 | console.log("test file"); 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/sourceCode_late_access/files/1.js: -------------------------------------------------------------------------------- 1 | let foo, bar; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/console.js: -------------------------------------------------------------------------------- 1 | console.log("test"); 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep-es7/a.js: -------------------------------------------------------------------------------- 1 | export * as b from './b' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep-es7/c.js: -------------------------------------------------------------------------------- 1 | export * as d from './d' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/file.with.dot.js: -------------------------------------------------------------------------------- 1 | export default null 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/plugins/plugin2/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/plugins/plugin2/internal.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/typescript/plugin2/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/mutator.js: -------------------------------------------------------------------------------- 1 | export const mutant = 'logan' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@org/not-a-dependency/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@org/not-a-dependency/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/esm-package/esm-module/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/order-redirect-scoped/other-module/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/test.coffee: -------------------------------------------------------------------------------- 1 | exports.a = (foo) -> "bar" 2 | -------------------------------------------------------------------------------- /crates/oxc_napi/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | napi_build::setup(); 3 | } 4 | -------------------------------------------------------------------------------- /napi/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | *.node 3 | tsconfig.vitest-temp.json 4 | -------------------------------------------------------------------------------- /napi/minify/browser.js: -------------------------------------------------------------------------------- 1 | export * from '@oxc-minify/binding-wasm32-wasi' 2 | -------------------------------------------------------------------------------- /napi/playground/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | napi_build::setup(); 3 | } 4 | -------------------------------------------------------------------------------- /napi/transform/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | napi_build::setup(); 3 | } 4 | -------------------------------------------------------------------------------- /npm/oxfmt/bin/oxfmt: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | import "../dist/cli.js"; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-import-decl.js: -------------------------------------------------------------------------------- 1 | import { from "foo"; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/import-type-without-from.ts: -------------------------------------------------------------------------------- 1 | import type 'module'; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/import-without-from.js: -------------------------------------------------------------------------------- 1 | import unknown 'module'; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-3.ts: -------------------------------------------------------------------------------- 1 | function foo(private parameter) {} 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-12546-2.ts: -------------------------------------------------------------------------------- 1 | class Props extends /MenuProps { 2 | } -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-12612-4.ts: -------------------------------------------------------------------------------- 1 | (foo() as number as any) = 123; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/babel-16776-s.js: -------------------------------------------------------------------------------- 1 | await /x.y/g; 2 | 3 | var x, g; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/import-from-from.js: -------------------------------------------------------------------------------- 1 | import from from 'module'; 2 | -------------------------------------------------------------------------------- /tasks/coverage/src/runtime/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_file/.oxfmtrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/node_modules_dirs/root.js: -------------------------------------------------------------------------------- 1 | const foo = 1; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/symlink_dirs/foo/file.js: -------------------------------------------------------------------------------- 1 | const message = 2 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/ignore_directory/tests/main.spec.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_whitelist/index.whitelist.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/nested_config/package1-empty-config/debugger.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/nested_config/package2-no-config/debugger.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/overrides/test.js: -------------------------------------------------------------------------------- 1 | var msg = "hello"; 2 | console.log(msg); 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/overrides/test.ts: -------------------------------------------------------------------------------- 1 | var msg = "hello"; 2 | console.log(msg); 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/await-thenable.ts: -------------------------------------------------------------------------------- 1 | await 12; 2 | 3 | export {}; 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-implied-eval.ts: -------------------------------------------------------------------------------- 1 | setTimeout('alert("Hi!");', 100); -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/non-tsgolint.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | 3 | export {}; 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint_type_error/index.ts: -------------------------------------------------------------------------------- 1 | const foo: number = "42"; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/defineRule/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "eslint": true 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/import_error/plugin.ts: -------------------------------------------------------------------------------- 1 | throw new Error("whoops!"); 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/plugin_name_alias_invalid/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/plugin_name_alias_reserved/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/formatter/ignore-file/.prettierignore: -------------------------------------------------------------------------------- 1 | *.ts 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/watchers/default/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/watchers/linter_extends/lint.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/overrides/test.ts: -------------------------------------------------------------------------------- 1 | const x: any = 3; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/color.js: -------------------------------------------------------------------------------- 1 | export const example = 'example'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/commonjs-namespace/b.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/constants/index.js: -------------------------------------------------------------------------------- 1 | export const FOO = 'FOO' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-star-2/upstream.js: -------------------------------------------------------------------------------- 1 | export const a = 1; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-star-3/b.ts: -------------------------------------------------------------------------------- 1 | export * as b from './c'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-star/extfield.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-star/extfield2.js: -------------------------------------------------------------------------------- 1 | export default NaN; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/foo-bar-resolver-invalid.js: -------------------------------------------------------------------------------- 1 | exports = {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/index.js: -------------------------------------------------------------------------------- 1 | // Used in `no-self-import` tests 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/plugins/plugin2/app/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/typescript/plugin2/app/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/internal-modules/typescript/plugin2/internal.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/issue-195/Users.js: -------------------------------------------------------------------------------- 1 | export default "Users" 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/jsx/re-export.js: -------------------------------------------------------------------------------- 1 | export * from './named.jsx' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/a/index.js: -------------------------------------------------------------------------------- 1 | exports.foo = 'bar' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/esm-package-not-in-pkg-json/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/src-root/src-bar.js: -------------------------------------------------------------------------------- 1 | export const bar = 'BAR' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/symlinked-module/index.js: -------------------------------------------------------------------------------- 1 | export default {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/webpack.empty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment.tsx: -------------------------------------------------------------------------------- 1 | <>; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/template_string.js: -------------------------------------------------------------------------------- 1 | `UTF-8` 2 | -------------------------------------------------------------------------------- /editors/vscode/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | See https://oxc.rs/docs/contribute/vscode.html 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/changing_extended_config/debugger.js: -------------------------------------------------------------------------------- 1 | /* 😊 */debugger; 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/debugger_empty_config/debugger.js: -------------------------------------------------------------------------------- 1 | /* 😊 */debugger; 2 | -------------------------------------------------------------------------------- /napi/parser/src-js/browser.js: -------------------------------------------------------------------------------- 1 | export * from '@oxc-parser/binding-wasm32-wasi' 2 | -------------------------------------------------------------------------------- /napi/playground/browser.js: -------------------------------------------------------------------------------- 1 | export * from '@oxc-playground/binding-wasm32-wasi' 2 | -------------------------------------------------------------------------------- /napi/transform/browser.js: -------------------------------------------------------------------------------- 1 | export * from '@oxc-transform/binding-wasm32-wasi' 2 | -------------------------------------------------------------------------------- /npm/oxlint/bin/oxlint: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | import "../dist/cli.js"; 4 | -------------------------------------------------------------------------------- /rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "1.92.0" 3 | profile = "default" 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/import-defer-without-from.js: -------------------------------------------------------------------------------- 1 | import defer 'module'; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/import-source-without-from.js: -------------------------------------------------------------------------------- 1 | import source 'module'; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/missing-conditional-alternative.js: -------------------------------------------------------------------------------- 1 | const foo = 1 ? 2 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11485.js: -------------------------------------------------------------------------------- 1 | class C { 2 | method(@foo x) {} 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-2.ts: -------------------------------------------------------------------------------- 1 | type Foo = { 2 | static bar; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-26.ts: -------------------------------------------------------------------------------- 1 | function foo(readonly parameter) {} 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/swc-7187.ts: -------------------------------------------------------------------------------- 1 | assertType<(key: K) => K>(foo); 2 | 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_file/.oxfmtrc.jsonc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.jsm: -------------------------------------------------------------------------------- 1 | const jsModule = "javascript module"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.jsx: -------------------------------------------------------------------------------- 1 | const Component = () =>
JSX
; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/toml/use-tab.json: -------------------------------------------------------------------------------- 1 | { "useTabs": true, "printWidth": 40 } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/write_mode/unformatted.js: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_pattern_non_glob_syntax/ignored_dir/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_empty_nested/ignored-file.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_mixed/nested/should_be_ignored.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_mixed/nested/should_not_be_ignored.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_relative/nested/should_be_ignored.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_relative/should_not_be_ignored.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_symlink/testdir/ignored_dir/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/issue_10054/b.ts: -------------------------------------------------------------------------------- 1 | import "./a"; 2 | 3 | export const b = "b"; 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/issue_10394/foo.test.ts: -------------------------------------------------------------------------------- 1 | describe("", () => { 2 | // 3 | }); 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/issue_11054/index.js: -------------------------------------------------------------------------------- 1 | import { createElement } from "preact"; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/overrides/other.jsx: -------------------------------------------------------------------------------- 1 | var msg = "hello"; 2 | console.log(msg); 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/only-throw-error.ts: -------------------------------------------------------------------------------- 1 | throw 'error'; 2 | 3 | export {}; 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/prefer-promise-reject-errors.ts: -------------------------------------------------------------------------------- 1 | Promise.reject('error'); -------------------------------------------------------------------------------- /apps/oxlint/fixtures/walk_dir/foo.js: -------------------------------------------------------------------------------- 1 | function foo() { 2 | return 'foo'; 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/definePlugin/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "eslint": true 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/parent/files/index.js: -------------------------------------------------------------------------------- 1 | const obj = { a: [b, c], ...d }; 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/sourceCode/files/1.js: -------------------------------------------------------------------------------- 1 | let foo, bar; 2 | 3 | // x 4 | // y 5 | -------------------------------------------------------------------------------- /crates/oxc_ast/src/ast_impl/mod.rs: -------------------------------------------------------------------------------- 1 | mod js; 2 | mod jsx; 3 | mod literal; 4 | mod ts; 5 | -------------------------------------------------------------------------------- /crates/oxc_formatter/src/formatter/token/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod number; 2 | pub mod string; 3 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/init_nested_configs/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/invalid_syntax/debugger.ts: -------------------------------------------------------------------------------- 1 | debugger } 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/invalid_config.json: -------------------------------------------------------------------------------- 1 | { 2 | invalid 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/depth-zero.js: -------------------------------------------------------------------------------- 1 | // export function foo() {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/default-export-from.js: -------------------------------------------------------------------------------- 1 | export default from './bar' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/empty-named-blocks.js: -------------------------------------------------------------------------------- 1 | import {} from './bar.js'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/issue-195/Bookings.js: -------------------------------------------------------------------------------- 1 | export default "Bookings" 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/issue210.js: -------------------------------------------------------------------------------- 1 | export { test } from './issue210.js' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/jsx.js: -------------------------------------------------------------------------------- 1 | export const jsx =
2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/jsx/AnotherComponent.jsx: -------------------------------------------------------------------------------- 1 | export * from './named' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/bin.js: -------------------------------------------------------------------------------- 1 | export const bin = 'bin' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-b.js: -------------------------------------------------------------------------------- 1 | export const b = 2 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-f.js: -------------------------------------------------------------------------------- 1 | export default () => 1 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-g.js: -------------------------------------------------------------------------------- 1 | export const g = 2 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/filte-r.js: -------------------------------------------------------------------------------- 1 | export * from './cjs' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/package/index.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/re-export-common-star.js: -------------------------------------------------------------------------------- 1 | export * from './common' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/re-export-node_modules.js: -------------------------------------------------------------------------------- 1 | export * from 'eslint' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/sibling-with-names.js: -------------------------------------------------------------------------------- 1 | export const foo = 'foo' 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.astro: -------------------------------------------------------------------------------- 1 | --- 2 | debugger; 3 | --- 4 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/formatting/formatting.ts: -------------------------------------------------------------------------------- 1 | class X { foo() { return 42; } } 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/minus-yield-100.js: -------------------------------------------------------------------------------- 1 | export function* foo() { -yield 100 } 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-10159.js: -------------------------------------------------------------------------------- 1 | function a() { class b { }; function b() { } } 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11538.js: -------------------------------------------------------------------------------- 1 | const y = `foo ${x function() {} function () {}}`; -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-10.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | async property; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-11.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | const method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-12.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | const property; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-21.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | export method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-22.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | export property; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-24.ts: -------------------------------------------------------------------------------- 1 | class Foo { 2 | declare method() {} 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-27.ts: -------------------------------------------------------------------------------- 1 | class Foo { method(readonly parameter) {} } 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-9.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | async method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-4111-1.js: -------------------------------------------------------------------------------- 1 | funtransientction as longciiConÞr>ol(cde) { 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-4449-5.ts: -------------------------------------------------------------------------------- 1 | enum E { `baz` = 2 } // Enum member expected. 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/switch-invalid-clause.js: -------------------------------------------------------------------------------- 1 | switch (foo) { 2 | caze 1: 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/minus-yield-100.js: -------------------------------------------------------------------------------- 1 | export function* foo() { -(yield 100) } 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-11658.js: -------------------------------------------------------------------------------- 1 | using(); 2 | using(foo); 3 | using[a] = b; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-2394.ts: -------------------------------------------------------------------------------- 1 | type A = import("foo", {with: {type: "json"}}) 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-9215.ts: -------------------------------------------------------------------------------- 1 | a ? b ? (c = 0) : d => 1 : (e = 2) : f => 3; 2 | -------------------------------------------------------------------------------- /tasks/lint_rules/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | package-lock.json 3 | pnpm-lock.yaml 4 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/igm/input.js: -------------------------------------------------------------------------------- 1 | a1 = /a.b/igm; 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/igm/output.js: -------------------------------------------------------------------------------- 1 | a1 = /a.b/igm; 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [Boshen, Dunqing, camc314, leaysgur] 2 | open_collective: oxc 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_file/nested/.oxfmtrc.jsonc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true, 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/empty/test.js: -------------------------------------------------------------------------------- 1 | if (true) { console.log("hello"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.cts: -------------------------------------------------------------------------------- 1 | module.exports = { typed: "cts" as string }; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.mts: -------------------------------------------------------------------------------- 1 | export const typedModule: string = "mts"; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_and_override/ignore1: -------------------------------------------------------------------------------- 1 | should_ignore 2 | should_format/* 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/not-formatted/bad.js: -------------------------------------------------------------------------------- 1 | class Bar { } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/not-formatted/bad.ts: -------------------------------------------------------------------------------- 1 | class Qux { } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/symlink_dirs/root.js: -------------------------------------------------------------------------------- 1 | const introduce = "I am root.js" 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/extends_config/overrides_same_directory/config/test.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_relative/nested/should_not_be_ignored.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/issue_10054/a.ts: -------------------------------------------------------------------------------- 1 | import { b } from "./b"; 2 | 3 | console.log(b); 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/nested_config/package1-empty-config/console.ts: -------------------------------------------------------------------------------- 1 | console.log("test"); 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/nested_config/package2-no-config/console.ts: -------------------------------------------------------------------------------- 1 | console.log("test"); 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/no_empty_allow_empty_catch/test.js: -------------------------------------------------------------------------------- 1 | try { console.log() } catch {} 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/no_empty_disallow_empty_catch/test.js: -------------------------------------------------------------------------------- 1 | try { console.log() } catch {} 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-redundant-type-constituents.ts: -------------------------------------------------------------------------------- 1 | type T1 = string | unknown; -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint_type_error/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const foo = "42"; 3 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/basic_multiple_rules/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | 3 | foo; 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/context_wrapping/files/index.js: -------------------------------------------------------------------------------- 1 | console.log("Hello, world!"); 2 | -------------------------------------------------------------------------------- /crates/oxc_formatter/src/ast_nodes/generated/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod ast_nodes; 2 | mod format; 3 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/array-assignment/rest-only.js: -------------------------------------------------------------------------------- 1 | [...rest] = arr; 2 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/array-pattern/rest-only.js: -------------------------------------------------------------------------------- 1 | const [...rest] = arr; 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/ignore_patterns/ignored-file.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | 3 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/init_nested_configs/deep1/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/js_plugins/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | 3 | let x; 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/typescript/ts-value.ts: -------------------------------------------------------------------------------- 1 | export const foo = 'foo'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep/a.js: -------------------------------------------------------------------------------- 1 | import * as b from './b' 2 | export { b } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep/c.js: -------------------------------------------------------------------------------- 1 | import * as d from './d' 2 | export { d } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-props.js: -------------------------------------------------------------------------------- 1 | exports.x = 'y' 2 | exports.y = 'z' 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-self-import.js: -------------------------------------------------------------------------------- 1 | // Used in `no-self-import` tests 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-ignored-b.js: -------------------------------------------------------------------------------- 1 | export const b = 2 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/prefix-child.js: -------------------------------------------------------------------------------- 1 | export const foo = 1; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/a/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "a" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/package-named/index.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/package-scoped/index.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/re-export-common.js: -------------------------------------------------------------------------------- 1 | export { a as foo } from './common' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/test-module/index.js: -------------------------------------------------------------------------------- 1 | export function someThing() {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/trampoline.js: -------------------------------------------------------------------------------- 1 | export default from './default-export' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-d-ts/file2.ts: -------------------------------------------------------------------------------- 1 | export * from './file1.ts' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-no-compiler-options/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | } 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.ts: -------------------------------------------------------------------------------- 1 | a => a; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.ts: -------------------------------------------------------------------------------- 1 | const x = y; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/unary_operator.js: -------------------------------------------------------------------------------- 1 | ~a 2 | ++a 3 | a++ 4 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/changing_fix_kind/for_direction.ts: -------------------------------------------------------------------------------- 1 | for(var i = 0; i < 10; i--){} 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.vue: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/formatting_with_config/formatter.json: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false 3 | } 4 | -------------------------------------------------------------------------------- /npm/oxc-types/README.md: -------------------------------------------------------------------------------- 1 | # Oxc Types 2 | 3 | Typescript definitions for Oxc AST nodes. 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-array-expr.js: -------------------------------------------------------------------------------- 1 | const foo = [0, 1 2 | const bar = 2 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-call-expr.js: -------------------------------------------------------------------------------- 1 | const foo = bar(1 2 | const bar = 2; 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-export-expr.js: -------------------------------------------------------------------------------- 1 | export { foo 2 | 3 | const foo = "" 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-new-expr.js: -------------------------------------------------------------------------------- 1 | const foo = new Foo(1 2 | const bar = 2; 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-object-expr.js: -------------------------------------------------------------------------------- 1 | const foo = { a: 1 2 | const bar = 2; 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-parenthesized-expr.js: -------------------------------------------------------------------------------- 1 | const foo = (0, eval('1 + 2'); 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/import-source-non-from.js: -------------------------------------------------------------------------------- 1 | import source foo bar from 'module'; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/missing-conditional-alternative-type.ts: -------------------------------------------------------------------------------- 1 | type A = 1 extends 2 ? 3 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-1.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | abstract method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-15.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | declare method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-16.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | declare property; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-17.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | default method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-18.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | default property; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-23.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | readonly method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-25.ts: -------------------------------------------------------------------------------- 1 | class Foo { 2 | readonly method() {} 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-4.ts: -------------------------------------------------------------------------------- 1 | class Foo { 2 | declare get getter() {} 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-5.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | abstract method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-6.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | abstract property; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-7.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | accessor method(); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-8.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | accessor property; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-1942-2.ts: -------------------------------------------------------------------------------- 1 | class Foo { 2 | set x: (v: number) => {} 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-5036.js: -------------------------------------------------------------------------------- 1 | Test: { 2 | Test: console.log('Test'); 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-5955-2.ts: -------------------------------------------------------------------------------- 1 | 2 | interface B { 3 | e()?: number; 4 | } 5 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-5955-3.ts: -------------------------------------------------------------------------------- 1 | class A { 2 | [key: string]?: number; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-9541.ts: -------------------------------------------------------------------------------- 1 | Type as any; 2 | Type satisfies any; 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/no_root_section/test.js: -------------------------------------------------------------------------------- 1 | if (true) { console.log("js"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/no_root_section/test.ts: -------------------------------------------------------------------------------- 1 | if (true) { console.log("ts"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/with_oxfmtrc/test.js: -------------------------------------------------------------------------------- 1 | if (true) { console.log("hello"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/test.tsx: -------------------------------------------------------------------------------- 1 | const Component: React.FC = () =>
TSX
; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/ignored/should-be-ignored.js: -------------------------------------------------------------------------------- 1 | class Baz { } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_patterns/ignored/should-be-ignored.ts: -------------------------------------------------------------------------------- 1 | class Baz2 { } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/node_modules_dirs/regular_dir/test.js: -------------------------------------------------------------------------------- 1 | const bar = 2; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_pattern_non_glob_syntax/with_nested/ignored_dir/index.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_symlink/testdir/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | ../configuration/.oxlintrc.json -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-array-delete.ts: -------------------------------------------------------------------------------- 1 | declare const arr: number[]; 2 | delete arr[0]; -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/diagnostic_loc/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | debugger; 3 | debugger; 4 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/assignments/parenthesis.js: -------------------------------------------------------------------------------- 1 | object[key = "a" + "b"]; 2 | -------------------------------------------------------------------------------- /crates/oxc_isolated_declarations/tests/fixtures/empty-export2.ts: -------------------------------------------------------------------------------- 1 | import * as a from "mod"; 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/frameworks/nextjs/[[..rest]]/debugger.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/init_nested_configs/deep1/deep2/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/issue_14565/foo-bar.astro: -------------------------------------------------------------------------------- 1 | --- 2 | debugger 3 | --- 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/plugins/jest.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["jest"] 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/commonjs-namespace/a.js: -------------------------------------------------------------------------------- 1 | export { default as b } from './b' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep/cache-2a.js: -------------------------------------------------------------------------------- 1 | import * as c from './c' 2 | export { c } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/default-class.js: -------------------------------------------------------------------------------- 1 | export default class EDClass { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-star-4/module/index.ts: -------------------------------------------------------------------------------- 1 | export * from './feature'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/named-export-collision/a.js: -------------------------------------------------------------------------------- 1 | export const FOO = 'a-foobar'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/named-export-collision/b.js: -------------------------------------------------------------------------------- 1 | export const FOO = 'b-foobar'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-ignored-a.js: -------------------------------------------------------------------------------- 1 | export default () => 1 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/jsx/file-jsx-b.jsx: -------------------------------------------------------------------------------- 1 | export const b = 2; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/main/index.js: -------------------------------------------------------------------------------- 1 | export const main = 'main' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/acorn/acorn.d.ts: -------------------------------------------------------------------------------- 1 | export function parse(): void; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/chai/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chai" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/es6-module/index.js: -------------------------------------------------------------------------------- 1 | export const foo = 'bar' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/esm-package-not-in-pkg-json/esm-module/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/jquery/dist/jquery.js: -------------------------------------------------------------------------------- 1 | module.exports = 'jQuery' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/jsx-module/foo.jsx: -------------------------------------------------------------------------------- 1 | export const foo = "bar"; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/rxjs/index.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/redux.js: -------------------------------------------------------------------------------- 1 | // redux idiom 2 | export default connect()(App) 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-default.ts: -------------------------------------------------------------------------------- 1 | export default function foobar() {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-export-default/index.ts: -------------------------------------------------------------------------------- 1 | export default () => {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/src/rules/jest/no_standalone_expect/tests/mod.rs: -------------------------------------------------------------------------------- 1 | mod jest; 2 | mod vitest; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type1.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/class.js: -------------------------------------------------------------------------------- 1 | class A { foo() { this.slice() } } 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/template_literal.js: -------------------------------------------------------------------------------- 1 | `hii${apple()}byee`(); 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/file_extensions/debugger.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/formatting_with_config/formatting.ts: -------------------------------------------------------------------------------- 1 | class X { foo() { return 42; } } 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-enum-expr.ts: -------------------------------------------------------------------------------- 1 | enum Foo { 2 | A 3 | 4 | const bar = 1; 5 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-tuple-type.ts: -------------------------------------------------------------------------------- 1 | type A = [number 2 | 3 | const bar = 1; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-13.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | const [index: string]: number 3 | } -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/babel-16776-m.js: -------------------------------------------------------------------------------- 1 | await /x.y/g; 2 | 3 | export { } 4 | 5 | var x, g; 6 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_file/fmt.jsonc: -------------------------------------------------------------------------------- 1 | { 2 | // Supports JSONC! 3 | "semi": true, 4 | } 5 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_ignore_patterns/not-formatted/bad.js: -------------------------------------------------------------------------------- 1 | class Bar {} 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/basic/test.js: -------------------------------------------------------------------------------- 1 | if (condition) { console.log("hello world"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/partial_override/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | indent_style = tab 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/partial_override/.oxfmtrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 8 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/partial_override/test.js: -------------------------------------------------------------------------------- 1 | if (true) { console.log("hello"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/per_file_override/test.js: -------------------------------------------------------------------------------- 1 | if (true) { console.log("js"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/per_file_override/test.ts: -------------------------------------------------------------------------------- 1 | if (true) { console.log("ts"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/node_modules_dirs/node_modules/test.js: -------------------------------------------------------------------------------- 1 | const ignored = 3; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/vcs_dirs/.hg/test.js: -------------------------------------------------------------------------------- 1 | // This file should be ignored 2 | const x = 1; 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/vcs_dirs/.jj/test.js: -------------------------------------------------------------------------------- 1 | // This file should be ignored 2 | const x = 1; 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/vcs_dirs/.sl/test.js: -------------------------------------------------------------------------------- 1 | // This file should be ignored 2 | const x = 1; 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/vcs_dirs/root.js: -------------------------------------------------------------------------------- 1 | // This file should NOT be ignored 2 | const y = 2; 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/fix_argument/fix.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/flow/flow.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | import { type Node, type ElementRef } from 'react'; 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_file_current_dir/a/bar.js: -------------------------------------------------------------------------------- 1 | debugger 2 | console.log("Don't lint me!!") 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_file_current_dir/foo.js: -------------------------------------------------------------------------------- 1 | debugger 2 | console.log("Don't lint me!!") 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_empty_nested/another_config/not-ignored-file.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_mixed/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": ["*.ts"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/linter/js_as_jsx.js: -------------------------------------------------------------------------------- 1 | debugger; 2 |
// Should `.js` file pass as `.jsx`. 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/config-test.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["./extended-config.json"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/definePlugin_and_defineRule/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "eslint": true 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/missing_plugin/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsPlugins": ["./plugin.js"] 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/formatter/ignore-file/.oxfmtrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/formatter/root_config/.oxfmtrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/no_errors/hello_world.js: -------------------------------------------------------------------------------- 1 | console.log("Hello, world!"); 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/plugins/react.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["react"] 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/alternate-root/in-alternate-root.js: -------------------------------------------------------------------------------- 1 | export const DEEP = 'RISING' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bundled-dependencies/as-object/node_modules/@generated/bar/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bundled-dependencies/as-object/node_modules/@generated/foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep-es7/b.js: -------------------------------------------------------------------------------- 1 | export * as c from './c' 2 | export default 'b' 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep/cache-1.js: -------------------------------------------------------------------------------- 1 | import * as b from './cache-2' 2 | export { b } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep/cache-2b.js: -------------------------------------------------------------------------------- 1 | import * as c from './c' 2 | // export { c } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep/default.js: -------------------------------------------------------------------------------- 1 | import * as b from './b' 2 | export default b 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/default-export.js: -------------------------------------------------------------------------------- 1 | export default function foo() { return 'bar' } 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-star-2/middle.js: -------------------------------------------------------------------------------- 1 | export * as myName from './upstream'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/load-error-resolver.js: -------------------------------------------------------------------------------- 1 | throw new SyntaxError('TEST SYNTAX ERROR') 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/malformed.js: -------------------------------------------------------------------------------- 1 | return foo from fnuction () { 2 | 3 | export {} 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/missing-entrypoint/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "bin": "./cli.js" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-self-import-folder/index.js: -------------------------------------------------------------------------------- 1 | // Used in `no-self-import` tests 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/browser.js: -------------------------------------------------------------------------------- 1 | export const browser = 'browser' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-p.js: -------------------------------------------------------------------------------- 1 | import { h3 as h0 } from './file-h' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-q.js: -------------------------------------------------------------------------------- 1 | export class q { 2 | q0() {} 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-s.js: -------------------------------------------------------------------------------- 1 | export { default } from './file-o' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-b.ts: -------------------------------------------------------------------------------- 1 | export const b = 2; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-c.ts: -------------------------------------------------------------------------------- 1 | export interface c {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-d.ts: -------------------------------------------------------------------------------- 1 | export type d = {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-e.ts: -------------------------------------------------------------------------------- 1 | export enum e { f }; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-g.ts: -------------------------------------------------------------------------------- 1 | export interface g {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/jquery/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/react/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-export-assign-function.ts: -------------------------------------------------------------------------------- 1 | export = function foo() {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-export-enum.ts: -------------------------------------------------------------------------------- 1 | export enum Foo { 2 | BAR = 0, 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/with-flow-typed/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": {} 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/with-syntax-error/package.json: -------------------------------------------------------------------------------- 1 | {{ "name": "with-syntax-error" } 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/infix_operators.js: -------------------------------------------------------------------------------- 1 | a instanceof b 2 | a && b 3 | -------------------------------------------------------------------------------- /crates/oxc_transformer/src/proposals/mod.rs: -------------------------------------------------------------------------------- 1 | mod options; 2 | 3 | pub use options::ProposalOptions; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-19.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | default [index: string]: number 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-4449-2.ts: -------------------------------------------------------------------------------- 1 | enum B { [1] } // An enum member cannot have a numeric name. 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-4449-3.ts: -------------------------------------------------------------------------------- 1 | enum C { 1 } // An enum member cannot have a numeric name. 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/declare-let-private.ts: -------------------------------------------------------------------------------- 1 | declare let private: number; 2 | 3 | export {}; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-10503.ts: -------------------------------------------------------------------------------- 1 | using 2 | foo = bar(); 3 | 4 | await using 5 | foo = bar(); 6 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-2592.ts: -------------------------------------------------------------------------------- 1 | export type Foo = ( 2 | // comment 3 | "bar" 4 | ) 5 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/transform-dotall-regex/input.js: -------------------------------------------------------------------------------- 1 | a1 = /a.b/s 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/transform-sticky-regex/input.js: -------------------------------------------------------------------------------- 1 | x1 = /./y 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/transform-unicode-regex/input.js: -------------------------------------------------------------------------------- 1 | x2 = /./u 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_ignore_patterns/fmtrc.jsonc: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": ["*.js"], 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/exclude_nested/foo/bar/error.js: -------------------------------------------------------------------------------- 1 | // This file should be excluded 2 | class { 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/vcs_dirs/.svn/test.js: -------------------------------------------------------------------------------- 1 | // This file should be ignored 2 | const x = 1; 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/eslintrc_vitest_replace/foo.test.js: -------------------------------------------------------------------------------- 1 | test.skip('foo', () => { 2 | // ... 3 | }) 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-duplicate-type-constituents.ts: -------------------------------------------------------------------------------- 1 | type T1 = 'A' | 'A'; 2 | 3 | export {}; 4 | -------------------------------------------------------------------------------- /apps/oxlint/src-js/plugins/typescript.cjs: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = require("typescript"); 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/plugin_name_missing/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsPlugins": ["./plugin.ts"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/plugin_name_missing2/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsPlugins": ["no_name"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/plugin_name_reserved/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsPlugins": ["./plugin.ts"] 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_formatter/src/formatter/text_range.rs: -------------------------------------------------------------------------------- 1 | use oxc_span::Span; 2 | 3 | pub type TextRange = Span; 4 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/formatter/custom_config_path/format.json: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/deny_no_console/hello_world.js: -------------------------------------------------------------------------------- 1 | console.log("Hello, world!"); 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/@importType/index.js: -------------------------------------------------------------------------------- 1 | /* for importType test, just needs to exist */ 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bar.js: -------------------------------------------------------------------------------- 1 | export default 'bar' 2 | export function foo() { return 'foo' } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bundled-dependencies/race-condition/node_modules/@generated/bar/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bundled-dependencies/race-condition/node_modules/@generated/foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/es6/depth-one-reexport.js: -------------------------------------------------------------------------------- 1 | export { foo } from "../depth-zero"; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/flow-types-depth-two.js: -------------------------------------------------------------------------------- 1 | import { foo } from './es6/depth-one' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/importType/index.js: -------------------------------------------------------------------------------- 1 | /* for importType test, just needs to exist */ 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-d.js: -------------------------------------------------------------------------------- 1 | export function d() { 2 | return 4 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-e.js: -------------------------------------------------------------------------------- 1 | const e0 = 5 2 | 3 | export { e0 as e } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-j.js: -------------------------------------------------------------------------------- 1 | export function j() { 2 | return 4 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-k.js: -------------------------------------------------------------------------------- 1 | const k0 = 5 2 | 3 | export { k0 as k } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-b-unused.ts: -------------------------------------------------------------------------------- 1 | export const b = 2; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-d-unused.ts: -------------------------------------------------------------------------------- 1 | export type d = {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-e-unused.ts: -------------------------------------------------------------------------------- 1 | export enum e { f }; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/acorn/acorn.d.mts: -------------------------------------------------------------------------------- 1 | export declare function parse(): void; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/left-pad/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "left-pad" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/rxjs/operators/index.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/oxc/jsx/member-expression.jsx: -------------------------------------------------------------------------------- 1 | let A = {}; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/new.ts: -------------------------------------------------------------------------------- 1 | class A {} 2 | new A(); 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/argument_map.js: -------------------------------------------------------------------------------- 1 | function fn() { arguments['map'] } 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/break_from_a_label_in_global_scope.js: -------------------------------------------------------------------------------- 1 | A: break A; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/expression_spread.js: -------------------------------------------------------------------------------- 1 | const g = { a: 1, 'x': 5, ...y } 2 | -------------------------------------------------------------------------------- /napi/minify/test/worker.mjs: -------------------------------------------------------------------------------- 1 | import { minifySync } from "../index.js"; 2 | minifySync("test.js", ""); 3 | -------------------------------------------------------------------------------- /napi/parser/test/worker.js: -------------------------------------------------------------------------------- 1 | import { parseSync } from "../src-js/index.js"; 2 | parseSync("test.js", ""); 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-import-decl-attr.js: -------------------------------------------------------------------------------- 1 | import { } from "foo" with { "type": "json"; 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-14.ts: -------------------------------------------------------------------------------- 1 | const foo: { 2 | const [index: string] : string 3 | } = {}; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11713-20.ts: -------------------------------------------------------------------------------- 1 | const foo: { 2 | default [index: string] : string 3 | } = {}; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-2087.ts: -------------------------------------------------------------------------------- 1 | interface Helpers { 2 | inspect(): `~~~~\n${string}\n~~~~`; 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/extensions/Jakefile: -------------------------------------------------------------------------------- 1 | desc("Jake build task"); 2 | task("default", function () {}); 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/eslintrc_off/eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-empty": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_relative/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": ["nested/*.ts"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/linter/eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-debugger": "error" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/test.min.js: -------------------------------------------------------------------------------- 1 | // This should be ignored because the filename ends in .min. 2 | debugger 3 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/nested_config/files/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["../.oxlintrc.json"] 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/comments/directive.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // comment 4 | (() => {}); -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/comments/logical.js: -------------------------------------------------------------------------------- 1 | code || !escapeless && (true /* 1 */ || false /* 2 */) -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/ts/mapped-type/basic.ts: -------------------------------------------------------------------------------- 1 | export type Bar = {[P in keyof T]: string} 2 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/ignore_patterns/another_config/not-ignored-file.ts: -------------------------------------------------------------------------------- 1 | debugger; 2 | 3 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/multiple_suggestions/forward_ref.ts: -------------------------------------------------------------------------------- 1 | forwardRef((props) => {}); 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bundled-dependencies/as-array-bundle-deps/node_modules/@generated/bar/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/bundled-dependencies/as-array-bundle-deps/node_modules/@generated/foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/es6/depth-one.js: -------------------------------------------------------------------------------- 1 | import foo from "../depth-zero" 2 | export { foo } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep/b.js: -------------------------------------------------------------------------------- 1 | import * as c from './c' 2 | export { c } 3 | export default 'b' 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/default-export-from-ignored.js: -------------------------------------------------------------------------------- 1 | export { foo as default } from './common.js' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/empty/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo", 3 | "version": "1.0.0" 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/exports-calc-keys.js: -------------------------------------------------------------------------------- 1 | exports['x'] = 'y' 2 | exports['foo' + 'bar'] = 'baz' 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/jsx/named.jsx: -------------------------------------------------------------------------------- 1 | export const jsxFoo = 'foo' 2 | export const jsxBar = 'bar' 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/nested-common.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | 3 | exports.x = 'foo' 4 | 5 | }()) 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/binObject/index.js: -------------------------------------------------------------------------------- 1 | export const binObject = 'binObject' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-b-used-as-type.ts: -------------------------------------------------------------------------------- 1 | export const b = 2; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-c-unused.ts: -------------------------------------------------------------------------------- 1 | export interface c {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-d-used-as-type.ts: -------------------------------------------------------------------------------- 1 | export type d = {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-e-used-as-type.ts: -------------------------------------------------------------------------------- 1 | export enum e { f }; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-f.ts: -------------------------------------------------------------------------------- 1 | import {g} from './file-ts-g'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@org/package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@org/package" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/es6-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "es6-module" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/jsx-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jsx-module" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/magic/index.js: -------------------------------------------------------------------------------- 1 | export * from './test' 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.ts: -------------------------------------------------------------------------------- 1 | const A = class {}; 2 | new A(); 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component.tsx: -------------------------------------------------------------------------------- 1 | function Foo() {} 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type.ts: -------------------------------------------------------------------------------- 1 | type T = import(''); 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | type A = [T]; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type2.ts: -------------------------------------------------------------------------------- 1 | type A = 1; 2 | type B = A; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/arrow_expressions.js: -------------------------------------------------------------------------------- 1 | (a) => b 2 | const c = (x) => x + y 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/object_in_computer_member_expression.js: -------------------------------------------------------------------------------- 1 | foo[{}].call(bar) 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/simple_spread.js: -------------------------------------------------------------------------------- 1 | function fn(x) { return [1, 2, ...x] } 2 | -------------------------------------------------------------------------------- /editors/vscode/.vscodeignore: -------------------------------------------------------------------------------- 1 | ** 2 | !icon.png 3 | !LICENSE 4 | !out/main.js 5 | !package.json 6 | !README.md 7 | -------------------------------------------------------------------------------- /napi/transform/test/worker.mjs: -------------------------------------------------------------------------------- 1 | import { transformSync } from "../index.js"; 2 | transformSync("test.js", ""); 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/imbalanced-index-signature-decl.ts: -------------------------------------------------------------------------------- 1 | type Foo = { 2 | [key: string: number; 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-1942-1.ts: -------------------------------------------------------------------------------- 1 | class Foo { 2 | get x: () => { 3 | return 5; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-4449-1.ts: -------------------------------------------------------------------------------- 1 | enum A { [foo] } // Computed property names are not allowed in enums 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-7582.js: -------------------------------------------------------------------------------- 1 | class C { 2 | x = 1; 3 | method() { 4 | obj.#x; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-11659.d.ts: -------------------------------------------------------------------------------- 1 | export class C { 2 | inject(): this; 3 | is(): this; 4 | } 5 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-3262.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | @Bar({ x: Map['String'] }) 3 | quaz() {} 4 | } 5 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/config_ignore_patterns/.oxfmtrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": ["not-formatted/"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/with_oxfmtrc/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | indent_style = tab 3 | indent_size = 8 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/embedded_languages/off_embedded.json: -------------------------------------------------------------------------------- 1 | { 2 | "embeddedLanguageFormatting": "off" 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/embedded_languages/on_embedded.json: -------------------------------------------------------------------------------- 1 | { 2 | "embeddedLanguageFormatting": "auto" 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/ignore_and_override/ignore2: -------------------------------------------------------------------------------- 1 | should_ignore 2 | should_format/* 3 | !should_format/ok.js 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/node_modules_dirs/regular_dir/node_modules/test.js: -------------------------------------------------------------------------------- 1 | const also_ignored = 4; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/vcs_dirs/regular_dir/.jj/test.js: -------------------------------------------------------------------------------- 1 | // This file should be ignored 2 | const x = 1; 3 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/vcs_dirs/regular_dir/test.js: -------------------------------------------------------------------------------- 1 | // This file should NOT be ignored 2 | const x = 1; 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/eslintrc_env/eslintrc_no_env.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-undef": "warn" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/extends_config/extends_rules_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["./rules_config.json"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/import-cycle/a.ts: -------------------------------------------------------------------------------- 1 | import { B } from "./b"; 2 | 3 | export class A { 4 | value: B; 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/import-cycle/b.ts: -------------------------------------------------------------------------------- 1 | import { A } from "./a"; 2 | 3 | export class B { 4 | value: A; 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/no_console_off/eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-console": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-unnecessary-template-expression.ts: -------------------------------------------------------------------------------- 1 | const str1 = `Hello world`; 2 | 3 | export {}; -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-unsafe-call.ts: -------------------------------------------------------------------------------- 1 | declare const anyValue: any; 2 | anyValue(); 3 | 4 | export {}; 5 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/two_rules_with_same_rule_name/test.js: -------------------------------------------------------------------------------- 1 | console.log(bar ? baz : qux === quxx ? bing : bam); 2 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/message_id_plugin/files/index.js: -------------------------------------------------------------------------------- 1 | var reportUsingNode = 1; 2 | var reportUsingRange = 1; 3 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/plugin_name/files/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @param foo 3 | */ 4 | function f(foo, bar) {} 5 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/es6/depth-two.js: -------------------------------------------------------------------------------- 1 | import { foo } from "./depth-one" 2 | export { foo } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/external/depth-one.js: -------------------------------------------------------------------------------- 1 | import foo from "../depth-zero" 2 | export { foo } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/ignore/index.js: -------------------------------------------------------------------------------- 1 | import { foo } from "../depth-zero"; 2 | export { foo }; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/intermediate-ignore.js: -------------------------------------------------------------------------------- 1 | import foo from "./ignore"; 2 | export { foo }; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/default-export-from-named.js: -------------------------------------------------------------------------------- 1 | export { d as default } from './named-exports.js' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/default-export-namespace-string.js: -------------------------------------------------------------------------------- 1 | export * as "default" from "./named-exports"; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/issue210.config.js: -------------------------------------------------------------------------------- 1 | exports.parserOptions = { 2 | sourceType: 'module', 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/named-and-default-export.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | 3 | export const foo = 10 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/named-default-export.js: -------------------------------------------------------------------------------- 1 | const foo = 'foo' 2 | 3 | export { foo as default } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/destructuring-a.js: -------------------------------------------------------------------------------- 1 | import {a, b} from "./destructuring-b"; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-ignored-d.js: -------------------------------------------------------------------------------- 1 | export function d() { 2 | return 4 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-ignored-e.js: -------------------------------------------------------------------------------- 1 | const e0 = 5 2 | 3 | export { e0 as e } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/prefix-parent-bom.js: -------------------------------------------------------------------------------- 1 | import {foo} from './prefix-child.js'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/privatePkg/index.js: -------------------------------------------------------------------------------- 1 | export const privatePkg = 'privatePkg' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-c-used-as-type.ts: -------------------------------------------------------------------------------- 1 | export interface c {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-g-used-as-type.ts: -------------------------------------------------------------------------------- 1 | export interface g {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@generated/bar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@generated/bar" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@generated/foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@generated/foo" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/eslint-import-resolver-foo/index.js: -------------------------------------------------------------------------------- 1 | ../../foo-bar-resolver-v2.js 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/oxc/indirect-export.js: -------------------------------------------------------------------------------- 1 | import { a } from '../named-exports' 2 | export { a } 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/oxc/ts/exports/default/type-alias.ts: -------------------------------------------------------------------------------- 1 | type A = string; 2 | export default A; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters1.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | foo(); 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals4-type.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | 3 | export = {} as T; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/generic-type-param.tsx: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | 3 | />; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member.ts: -------------------------------------------------------------------------------- 1 | enum Foo { 2 | 'a' = 1, 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-let.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | let x: T; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-var.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | var x: T; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface2.ts: -------------------------------------------------------------------------------- 1 | interface A {} 2 | type B = A; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/cond_expr_in_arrow_fn.js: -------------------------------------------------------------------------------- 1 | const myFun = () => a() ? b() : c(); 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/changing_extended_config/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["./folder/custom.json"] 3 | } 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11472.js: -------------------------------------------------------------------------------- 1 | @dec1 export @dec2 class C {} 2 | 3 | @dec1 export default @dec2 class {} 4 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/plugin-tagged-template-transform/test/fixtures/basic/input.js: -------------------------------------------------------------------------------- 1 | foo`` 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/plugin-tagged-template-transform/test/fixtures/uppercase/input.js: -------------------------------------------------------------------------------- 1 | foo`` 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/transform-sticky-regex/output.js: -------------------------------------------------------------------------------- 1 | x1 = new RegExp(".", "y"); 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/no_root_section/.editorconfig: -------------------------------------------------------------------------------- 1 | [*.js] 2 | indent_style = tab 3 | indent_size = 4 4 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/per_file_override/nested/deep/test.js: -------------------------------------------------------------------------------- 1 | if (true) { console.log("nested js"); } 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/with_oxfmtrc/.oxfmtrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": false, 3 | "tabWidth": 2 4 | } 5 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/write_mode/complex.js: -------------------------------------------------------------------------------- 1 | const obj = { 2 | foo: "bar", 3 | baz: 123 4 | }; 5 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/typescript_eslint/test.ts: -------------------------------------------------------------------------------- 1 | namespace X { 2 | } 3 | 4 | 9007199254740993 // no-loss-of-precision 5 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/extends_rules_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["./rules_config.json"] 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/es6/depth-three-star.js: -------------------------------------------------------------------------------- 1 | import * as two from "./depth-two" 2 | export { two } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/ignore/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-cycle": 0 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/deep-deprecated.js: -------------------------------------------------------------------------------- 1 | import * as deepDep from './deprecated' 2 | export { deepDep } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/default-export-default-property.js: -------------------------------------------------------------------------------- 1 | 2 | export default { 3 | default: 'baz' 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/foo.js: -------------------------------------------------------------------------------- 1 | // foo.js 2 | module.exports = { foo: 'foo' } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/named-trampoline.js: -------------------------------------------------------------------------------- 1 | export bar from './bar' 2 | export foo from './default-export' 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/browserObject/index.js: -------------------------------------------------------------------------------- 1 | export const browserObject = 'browserObject' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-a.js: -------------------------------------------------------------------------------- 1 | import { o2 } from './file-o' 2 | export default () => 1 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/import-export-1.js: -------------------------------------------------------------------------------- 1 | export const a = 5; 2 | export const b = 'b'; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/renameDefault/Component.js: -------------------------------------------------------------------------------- 1 | export default function Component() {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/renameDefault/usage.js: -------------------------------------------------------------------------------- 1 | import { Component } from './components' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/not-a-dependency/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "not-a-dependency" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/qc.js: -------------------------------------------------------------------------------- 1 | export const ActionTypes = { 2 | A: null, 3 | B: null, 4 | C: null 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/vue/main.vue: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.ts: -------------------------------------------------------------------------------- 1 | const a = 1; 2 | 3 | { 4 | a; 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends.ts: -------------------------------------------------------------------------------- 1 | class A {} 2 | class B extends A {} 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-block.ts: -------------------------------------------------------------------------------- 1 | class A { 2 | static {} 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals2.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | export = 1; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.tsx: -------------------------------------------------------------------------------- 1 | const x = {}; 2 | 3 | ; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.tsx: -------------------------------------------------------------------------------- 1 | const child = 1; 2 | 3 | {child}; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.tsx: -------------------------------------------------------------------------------- 1 | const child = 1; 2 | 3 | <>{child}; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters1.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | new Foo(); 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/member-ref.ts: -------------------------------------------------------------------------------- 1 | enum Foo { 2 | a = 1, 3 | b = a, 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/self-ref.ts: -------------------------------------------------------------------------------- 1 | enum Foo { 2 | a = 1, 3 | b = Foo.a, 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | function foo(a: T) {} 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-const.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | const x: T = 1; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/as.ts: -------------------------------------------------------------------------------- 1 | const x = 1; 2 | type T = 1; 3 | 4 | x as T; 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/qualified-name.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | type A = T.B; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-rest.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | type A = [...T]; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/indexing_into_class_expression.js: -------------------------------------------------------------------------------- 1 | (class { })[1]; 2 | (class { }).a; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/new_class_then_call_fn.js: -------------------------------------------------------------------------------- 1 | let y = new RegExp("a", "g").exec(foo); 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/spread_in_a_spread.js: -------------------------------------------------------------------------------- 1 | function fn(x) { return [1, 2, ...[3, ...x]] } 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/debugger_error/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-debugger": "error" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/nested_config/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-debugger": "warn" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /npm/runtime/src/helpers/esm/identity.js: -------------------------------------------------------------------------------- 1 | function _identity(t) { 2 | return t; 3 | } 4 | export { _identity as default }; -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11485.ts: -------------------------------------------------------------------------------- 1 | var obj = { 2 | method(@foo x) {}, 3 | }; 4 | 5 | function method(@foo x) {} 6 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-4449-4.ts: -------------------------------------------------------------------------------- 1 | enum D { [`test${foo}`] } // Computed property names are not allowed in enums. 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-4449-6.ts: -------------------------------------------------------------------------------- 1 | enum F { ['baz' + 'baz'] // Computed property names are not allowed in enums. 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-3910.ts: -------------------------------------------------------------------------------- 1 | class Foo { private _(__: (accessor: ServicesAccessor) => unknown): void { } } 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-typescript/test/fixtures/ts-declaration-empty-output/output.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/plugin-tagged-template-transform/test/fixtures/mixed-case/input.js: -------------------------------------------------------------------------------- 1 | foo`` 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/transform-dotall-regex/output.js: -------------------------------------------------------------------------------- 1 | a1 = new RegExp("a.b", "s"); 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/transform-unicode-regex/output.js: -------------------------------------------------------------------------------- 1 | x2 = new RegExp(".", "u"); 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/auto_config_detection/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-debugger": "error" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/auto_config_parse_error/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules" { 3 | "no-debugger": "error" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/extends_config/overrides/test.tsx: -------------------------------------------------------------------------------- 1 | function component(): any { 2 | return click here; 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/output_formatter_diagnostic/test.js: -------------------------------------------------------------------------------- 1 | function foo(a, b) { 2 | return a; 3 | } 4 | 5 | debugger; 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-mixed-enums.ts: -------------------------------------------------------------------------------- 1 | enum Status { 2 | Open = 1, 3 | Closed = 'closed', 4 | } 5 | 6 | export {} -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-unsafe-member-access.ts: -------------------------------------------------------------------------------- 1 | declare const anyValue: any; 2 | anyValue.foo; 3 | 4 | export {}; 5 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/strict-boolean-expressions.ts: -------------------------------------------------------------------------------- 1 | const str = 'hello'; 2 | if (str) { 3 | } 4 | 5 | export {} 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint_tsconfig_extends_config_err/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.json" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/new-expression/parenthesis.js: -------------------------------------------------------------------------------- 1 | new (this.b().#c)() 2 | 3 | new (this.b().c)() 4 | 5 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/cross_module/debugger.ts: -------------------------------------------------------------------------------- 1 | // Debugger should be shown as a warning 2 | debugger; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/extends_invalid_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["./invalid_config.json"] 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/issue-195/Endpoints.js: -------------------------------------------------------------------------------- 1 | export Bookings from './Bookings'; 2 | export Users from './Users'; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/issue-370-commonjs-namespace/bar.js: -------------------------------------------------------------------------------- 1 | // bar.js 2 | export { default as foo } from './foo' 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/jsx/bar/index.js: -------------------------------------------------------------------------------- 1 | export * from "./baz.jsx"; 2 | export { Qux1, Qux2 } from "./qux.jsx"; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/narcissist.js: -------------------------------------------------------------------------------- 1 | export const me = 'awesome' 2 | export { me as soGreat } from './narcissist' 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/flow/flow-3.js: -------------------------------------------------------------------------------- 1 | import type { FooType, FooInterface } from './flow-4'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/renameDefault-2/ComponentA.js: -------------------------------------------------------------------------------- 1 | export default function ComponentA() {} 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/renameDefault-2/ComponentB.js: -------------------------------------------------------------------------------- 1 | export default function ComponentB() {} 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/oxc/jsx/element-name.jsx: -------------------------------------------------------------------------------- 1 | let Component = () =>
; 2 | 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-extends.ts: -------------------------------------------------------------------------------- 1 | class Foo extends Bar {} 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default3.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | export default 1; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.ts: -------------------------------------------------------------------------------- 1 | const T = 1; 2 | type T = 1; 3 | export { T }; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | export const x = 1; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.ts: -------------------------------------------------------------------------------- 1 | const foo = function () {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.tsx: -------------------------------------------------------------------------------- 1 | const Foo = 1; // should be unreferenced 2 | <>Foo; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/external-ref.ts: -------------------------------------------------------------------------------- 1 | enum Foo { 2 | a = 1, 3 | } 4 | 5 | Foo.a; 6 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface1.ts: -------------------------------------------------------------------------------- 1 | interface A { 2 | a: string; 3 | } 4 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/fixall_code_action_ignore_only_disable_fix/file2.js: -------------------------------------------------------------------------------- 1 | const a = 0; 2 | a = 1; 3 | 4 | console.log(a); 5 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/lint_on_run/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "unicorn/no-empty-file": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/nested_config/folder/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-debugger": "error" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /npm/runtime/src/helpers/esm/temporalUndefined.js: -------------------------------------------------------------------------------- 1 | function _temporalUndefined() {} 2 | export { _temporalUndefined as default }; -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-169.js: -------------------------------------------------------------------------------- 1 | 1<(V=82< 2 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-10159.js: -------------------------------------------------------------------------------- 1 | function a() { var b; function b() { } } 2 | function z() { function b() { } var b; } 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-12679.js: -------------------------------------------------------------------------------- 1 | label: while (true) { 2 | (() => { 3 | label: while (false) {} 4 | })(); 5 | } 6 | -------------------------------------------------------------------------------- /tasks/transform_conformance/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore the fixtures directory that generated by the run execution tests 2 | /fixtures -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-typescript/test/fixtures/elimination-declare/output.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/plugin-tagged-template-transform/test/fixtures/invalid-escape/input.js: -------------------------------------------------------------------------------- 1 | foo`\u` 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/plugin-tagged-template-transform/test/fixtures/no-script-tag/input.js: -------------------------------------------------------------------------------- 1 | foo`hello world` 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/plugin-tagged-template-transform/test/fixtures/no-script-tag/output.js: -------------------------------------------------------------------------------- 1 | foo`hello world`; 2 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/basic/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | indent_style = tab 3 | indent_size = 4 4 | max_line_length = 40 5 | -------------------------------------------------------------------------------- /apps/oxfmt/test/fixtures/editorconfig/per_file_override/nested/deep/test.json: -------------------------------------------------------------------------------- 1 | {"a":1,"b":2,"c":3,"d":4,"e":5,"f":6,"g":7,"h":8} 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-unsafe-unary-minus.ts: -------------------------------------------------------------------------------- 1 | declare const value: any; 2 | const result1 = -value; 3 | 4 | export {}; 5 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint_config_error/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | } 5 | } -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/plugin_name/node_modules/no_name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "main": "index.js" 4 | } 5 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/utf16_offsets/files/index.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | // £ 3 | debugger; 4 | // 🤨 5 | { 6 | debugger; 7 | } 8 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/semicolons/empty-line.js: -------------------------------------------------------------------------------- 1 | const a = 1 2 | 3 | ;(function() { 4 | const b = 2; 5 | })() 6 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/regexp_feature/index.ts: -------------------------------------------------------------------------------- 1 | let regex = /([^\/]+)/g; 2 | let regex2 = /[^\u0000-\u00FF]/g; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/overrides/test.tsx: -------------------------------------------------------------------------------- 1 | function component(): any { 2 | return click here; 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/external-depth-two.js: -------------------------------------------------------------------------------- 1 | import { foo } from "cycles/external/depth-one" 2 | export { foo } 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/default-export-string.js: -------------------------------------------------------------------------------- 1 | function foo() { return 'bar' } 2 | 3 | export { foo as "default" } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/file-destructured-2.js: -------------------------------------------------------------------------------- 1 | import { destructured } from './file-destructured-1'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/flow/flow-0.js: -------------------------------------------------------------------------------- 1 | import { type FooType, type FooInterface } from './flow-2'; 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/@org/not-a-dependency/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@org/not-a-dependency" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/exceljs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "exceljs", 3 | "main": "./excel.js" 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-export-assign-default.d.ts: -------------------------------------------------------------------------------- 1 | export = foobar; 2 | 3 | declare const foobar: number; 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-extended-config/index.d.ts: -------------------------------------------------------------------------------- 1 | export = FooBar; 2 | 3 | declare namespace FooBar {} 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.ts: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | 3 | type Unresolved = A; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements.ts: -------------------------------------------------------------------------------- 1 | interface A {} 2 | class B implements A {} 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.ts: -------------------------------------------------------------------------------- 1 | class A {} 2 | const B = class extends A {}; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class.ts: -------------------------------------------------------------------------------- 1 | function decorator() {} 2 | @decorator 3 | class Foo {} 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.ts: -------------------------------------------------------------------------------- 1 | const [a, b, c, d = 1, [e], [f] = g, ...rest] = []; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals3-type.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | bar: 1; 3 | } 4 | export = Foo; 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-type1.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | export type X = 1; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.ts: -------------------------------------------------------------------------------- 1 | let foo = (a, b = 0) => {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member-ref.ts: -------------------------------------------------------------------------------- 1 | enum Foo { 2 | 'a' = 1, 3 | b = a, 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.ts: -------------------------------------------------------------------------------- 1 | enum Foo { 2 | a, 3 | } 4 | 5 | const unresolved = a; 6 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-rest.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | function foo(...a: T[]) {} 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/angle-bracket.ts: -------------------------------------------------------------------------------- 1 | const x = 1; 2 | type T = 1; 3 | 4 | x; 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-qualifier.ts: -------------------------------------------------------------------------------- 1 | type T = import('').default; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/conditional_expression.js: -------------------------------------------------------------------------------- 1 | let result = a() ? b() : c(); 2 | let i = result; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/index_into_object_with_symbol_as_arg.js: -------------------------------------------------------------------------------- 1 | Reflect.apply({}[Symbol()], baz, []) 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/new_and_meta.js: -------------------------------------------------------------------------------- 1 | new URL("../public/favicon.ico", import.meta.url).toString() 2 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/fixall_code_action_ignore_only_disable_fix/expected.txt: -------------------------------------------------------------------------------- 1 | const a = 0; 2 | a = 1; 3 | 4 | console.log(a); 5 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-2562.ts: -------------------------------------------------------------------------------- 1 | @http.controller('hooks').middleware(HooksMiddleware) 2 | export class HooksController {} 3 | -------------------------------------------------------------------------------- /tasks/coverage/misc/pass/oxc-3443.tsx: -------------------------------------------------------------------------------- 1 | const A = () => {}; 2 | const B = () => {}; 3 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-class-properties/test/fixtures/typescript/abstract-prop/output.js: -------------------------------------------------------------------------------- 1 | class A {} -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-react-jsx/test/fixtures/misc/import_meta_pragma/input.jsx: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-react-jsx/test/fixtures/misc/this_expr_pragma/input.jsx: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-react-jsx/test/fixtures/spread-children-classic/input.jsx: -------------------------------------------------------------------------------- 1 | <>{...foo} 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-react-jsx/test/fixtures/text/unicode/input.jsx: -------------------------------------------------------------------------------- 1 |

2 | 🏝️ 3 |

4 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/regexp/test/fixtures/transform-unicode-sets-regex/input.js: -------------------------------------------------------------------------------- 1 | g1 = /[\p{White_Space}&&\p{ASCII}]/v 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/ignore_extension/eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": [ 3 | "*.js" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/with_oxlintrc/test/eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": [ 3 | "*.js" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/cross_module_extended_config/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "./config/.oxlintrc.json" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_pattern_non_glob_syntax/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": [ 3 | "ignored_dir" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/ignore_patterns_mixed/nested/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": ["*.ts", "!should_not_be_ignored.ts"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-misused-spread.ts: -------------------------------------------------------------------------------- 1 | declare const promise: Promise; 2 | const spreadPromise = { ...promise }; 3 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/require-array-sort-compare.ts: -------------------------------------------------------------------------------- 1 | const numbers = [3, 1, 4, 1, 5]; 2 | numbers.sort(); 3 | 4 | export {}; 5 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/settings/files/nested/index.js: -------------------------------------------------------------------------------- 1 | "nested source file that should be linted with nested config's settings"; 2 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/awaits/nested.js: -------------------------------------------------------------------------------- 1 | vite = await ( 2 | await import('vite') 3 | ).createServer({ 4 | appType 5 | }) -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/calls/blank-line.js: -------------------------------------------------------------------------------- 1 | gen 2 | 3 | ("a"); 4 | 5 | gen 6 | 7 | ( 8 | 9 | "b"); -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/jsx/new-expression.jsx: -------------------------------------------------------------------------------- 1 | return new ImageResponse( 2 | ( 3 |
4 |
5 | ), 6 | ) -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/template-literals/parenthesis.js: -------------------------------------------------------------------------------- 1 | const A = `${{ a: 1, b: 2 }} ${[1, 2, 3]} ${(x) => x * x}`; 2 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/ts/comments/as.ts: -------------------------------------------------------------------------------- 1 | (activeService as unknown as QuickInputController) /* TS fail */ 2 | .pick(); 3 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/no_errors/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "categories": { 3 | "correctness": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/common-module.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | a: 1, 3 | b: 2, 4 | c: function() { return 3 } 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/common.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | a: 1, 3 | b: 2 4 | } 5 | 6 | var c = 3 7 | 8 | exports.d = c 9 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/export-star-4/module/feature.jsx: -------------------------------------------------------------------------------- 1 | export function func() { 2 | console.log('Hello world'); 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/prefix-parent.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import {foo} from './prefix-child.js'; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/privatePkg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "./index.js", 3 | "private": true 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/renameDefault-2/usage.js: -------------------------------------------------------------------------------- 1 | import { ComponentA, ComponentB } from './components' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/renameDefault/components.js: -------------------------------------------------------------------------------- 1 | export { default as Component } from './Component' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/acorn/acorn.mjs: -------------------------------------------------------------------------------- 1 | function parse() { 2 | return void 0 3 | } 4 | 5 | export { parse } 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/unused-modules-reexport-crash/src/index.tsx: -------------------------------------------------------------------------------- 1 | import App from './App'; 2 | 3 | export const x = App 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/oxc/js/assignments/array.js: -------------------------------------------------------------------------------- 1 | let read = {}, write = {}; 2 | 3 | [write = read, [write = read]] = ref; -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.ts: -------------------------------------------------------------------------------- 1 | { 2 | let i = 20; 3 | let j = 1; 4 | i; 5 | } 6 | 7 | j; 8 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.ts: -------------------------------------------------------------------------------- 1 | const a = 1; 2 | try { 3 | } catch (e) { 4 | a; 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-implements.ts: -------------------------------------------------------------------------------- 1 | class Foo
implements Bar {} 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | const x = 1; 4 | export = x; 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/param-reference.ts: -------------------------------------------------------------------------------- 1 | const foo = (a: T) => {}; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.ts: -------------------------------------------------------------------------------- 1 | module Foo { 2 | export const x = 1; 3 | Foo.x; 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-default.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | function foo(a: T = 1) {} 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-array-destructure.ts: -------------------------------------------------------------------------------- 1 | type T = []; 2 | const [x]: T = []; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/satisfies.ts: -------------------------------------------------------------------------------- 1 | const x = 1; 2 | type T = 1; 3 | 4 | x satisfies T; 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function1.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | type A = (arg: T) => T; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access1.ts: -------------------------------------------------------------------------------- 1 | type T = { a: string }; 2 | type A = T['a']; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled-rest.ts: -------------------------------------------------------------------------------- 1 | type T = 1; 2 | type A = [...a: T[]]; 3 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/body-reference.ts: -------------------------------------------------------------------------------- 1 | type Foo = T; 2 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/integration/cfg_fixtures/nested_computed_member_expression.js: -------------------------------------------------------------------------------- 1 | function fn(x) { return a.b.g.h.i[c.d[e.f]] } 2 | -------------------------------------------------------------------------------- /crates/oxc_traverse/scripts/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "oxc_ast_scripts", 3 | "version": "0.0.0", 4 | "type": "module" 5 | } 6 | -------------------------------------------------------------------------------- /editors/vscode/fixtures/changing_extended_config/folder/custom.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-debugger": "warn" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /npm/runtime/src/helpers/esm/AwaitValue.js: -------------------------------------------------------------------------------- 1 | function _AwaitValue(t) { 2 | this.wrapped = t; 3 | } 4 | export { _AwaitValue as default }; -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-11532.js: -------------------------------------------------------------------------------- 1 | import source { x } from 'x'; 2 | import defer { x2 } from "x"; 3 | import defer x3 from "x"; 4 | -------------------------------------------------------------------------------- /tasks/coverage/misc/fail/oxc-12546-1.ts: -------------------------------------------------------------------------------- 1 | interface Props extends /MenuProps { 2 | collapse?: boolean; 3 | menus: MenuRecordRaw[]; 4 | } -------------------------------------------------------------------------------- /tasks/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "experimentalDecorators": true, 4 | "module": "esnext" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-react-jsx/test/fixtures/misc/this_expr_pragma/output.js: -------------------------------------------------------------------------------- 1 | this.a("test", null); 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/babel-plugin-transform-react-jsx/test/fixtures/spread-children-automatic/input.jsx: -------------------------------------------------------------------------------- 1 | <>{...foo} 2 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/plugin-tagged-template-transform/test/fixtures/multiple/input.js: -------------------------------------------------------------------------------- 1 | foo`` 2 | bar`` 3 | -------------------------------------------------------------------------------- /tasks/transform_conformance/tests/plugin-tagged-template-transform/test/fixtures/opening-and-closing/input.js: -------------------------------------------------------------------------------- 1 | foo`` 2 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/config_ignore_patterns/ignore_directory/eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": [ 3 | "tests/**" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/cross_module_nested_config/dep-a.ts: -------------------------------------------------------------------------------- 1 | // should report cycle detected 2 | import { b } from './dep-b.ts'; 3 | 4 | b(); 5 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/extends_config/relative_paths/extends_extends_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["../extends_rules_config.json"] 3 | } 4 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/nested_config/package3-deep-config/src/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-console": "error" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-unsafe-assignment.ts: -------------------------------------------------------------------------------- 1 | declare const anyValue: any; 2 | const str: string = anyValue; 3 | 4 | export {}; 5 | -------------------------------------------------------------------------------- /apps/oxlint/fixtures/tsgolint/no-unsafe-type-assertion.ts: -------------------------------------------------------------------------------- 1 | declare const value: unknown; 2 | const str = value as any; 3 | 4 | export {}; 5 | -------------------------------------------------------------------------------- /apps/oxlint/test/fixtures/plugin_name_missing2/node_modules/no_name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "main": "index.js" 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/js/assignments/issue-16127.js: -------------------------------------------------------------------------------- 1 | const { assignmentPattern: { nestedAssignmentPattern = {} } = {} } = call(); -------------------------------------------------------------------------------- /crates/oxc_formatter/tests/fixtures/ts/union/parenthesis.ts: -------------------------------------------------------------------------------- 1 | type T1 = | (B extends any ? number : string); 2 | type T2 = | (() => void); 3 | -------------------------------------------------------------------------------- /crates/oxc_isolated_declarations/tests/fixtures/empty-var-issue-11371.ts: -------------------------------------------------------------------------------- 1 | import { foo } from 'module'; 2 | 3 | const a = foo, b = foo; 4 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/formatter/ignore-file/ignored.ts: -------------------------------------------------------------------------------- 1 | // semicolon is on character 8-9, which will be removed 2 | debugger; 3 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/formatter/ignore-pattern/.oxfmtrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "ignorePatterns": ["*.ts"] 4 | } 5 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/deny_no_console/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-console": "error" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_language_server/fixtures/linter/watchers/linter_extends/.oxlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "./lint.json" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/extends_config/plugins/child_no_plugins.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "parent.json" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/broken-trampoline.js: -------------------------------------------------------------------------------- 1 | export default from './named-exports' 2 | 3 | export baz from './named-exports' 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/es6/depth-one-dynamic.js: -------------------------------------------------------------------------------- 1 | export const bar = () => import("../depth-zero").then(({foo}) => foo); 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/flow-types-only-importing-type.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import type { FooType } from './depth-zero'; 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/flow-types-some-type-imports.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | import { foo, type BarType } from './depth-zero' 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/cycles/typescript/ts-types-depth-two.ts: -------------------------------------------------------------------------------- 1 | // @ts-ignore 2 | import type { foo } from '../es6/depth-one'; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/exports-missing.js: -------------------------------------------------------------------------------- 1 | export { foo as bar } from './does-not-exist' 2 | export * from './does-not-exist' 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/jsx/file-jsx-a.jsx: -------------------------------------------------------------------------------- 1 | import {b} from './file-jsx-b'; 2 | 3 | export const a = b + 1; 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/no-unused-modules/typescript/file-ts-f-import-type.ts: -------------------------------------------------------------------------------- 1 | import type {g} from './file-ts-g-used-as-type' 2 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/node_modules/eslint-import-resolver-foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "eslint-import-resolver-foo" 3 | } 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-export-assign-default-reexport.ts: -------------------------------------------------------------------------------- 1 | import { getFoo } from './typescript'; 2 | export = getFoo; 3 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/typescript-no-compiler-options/index.d.ts: -------------------------------------------------------------------------------- 1 | export as namespace Foo 2 | 3 | export function bar(): void 4 | -------------------------------------------------------------------------------- /crates/oxc_linter/fixtures/import/with-typescript-dev-dependencies/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "a": "*" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /crates/oxc_linter/src/rules/jest/prefer_lowercase_title/tests/mod.rs: -------------------------------------------------------------------------------- 1 | mod jest; 2 | mod vitest; 3 | 4 | use super::PreferLowercaseTitle; 5 | -------------------------------------------------------------------------------- /crates/oxc_regular_expression/src/ast_impl/mod.rs: -------------------------------------------------------------------------------- 1 | mod allocator; 2 | mod display; 3 | mod span; 4 | pub mod support; 5 | pub mod visit; 6 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default1.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | export default function f() {} 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default4.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | export default function () {} 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source1.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | export { x } from 'foo'; 4 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2-type.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | type A = 1; 4 | export { A }; 5 | -------------------------------------------------------------------------------- /crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.ts: -------------------------------------------------------------------------------- 1 | //// @sourceType = module 2 | 3 | const a = 1; 4 | export { a }; 5 | --------------------------------------------------------------------------------