Skip to content

Commit d8d9c74

Browse files
apple-yagicamc314camchenry
authored
feat(linter): implement import/newline-after-import rule (#19142)
Implemented the `import/newline-after-import` rule. - [Original code](https://github.com/import-js/eslint-plugin-import/blob/main/src/rules/newline-after-import.js) - [Original tests](https://github.com/import-js/eslint-plugin-import/blob/main/tests/src/rules/newline-after-import.js) - [Original docs](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md) ## Related issues #1117 ## Disclose AI usage This PR was written with assistance from Codex. --------- Co-authored-by: Cameron <cameron.clark@hey.com> Co-authored-by: Cam McHenry <camchenry@users.noreply.github.com>
1 parent bb22240 commit d8d9c74

8 files changed

Lines changed: 1940 additions & 1 deletion

File tree

apps/oxlint/src-js/package/config.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ export interface DummyRuleMap {
541541
"import/max-dependencies"?: DummyRule;
542542
"import/named"?: DummyRule;
543543
"import/namespace"?: DummyRule;
544+
"import/newline-after-import"?: DummyRule;
544545
"import/no-absolute-path"?: DummyRule;
545546
"import/no-amd"?: DummyRule;
546547
"import/no-anonymous-default-export"?: DummyRule;

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/generated/rules_enum.rs

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/rules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub(crate) mod import {
1515
pub mod max_dependencies;
1616
pub mod named;
1717
pub mod namespace;
18+
pub mod newline_after_import;
1819
pub mod no_absolute_path;
1920
pub mod no_amd;
2021
pub mod no_anonymous_default_export;

0 commit comments

Comments
 (0)