oxc/crates/oxc_linter
Edwin Lim 2ec2f7d829
feat(linter/eslint): implement no-alert (#5535)
Contributing to #479 !

Rule Details: [link](https://eslint.org/docs/latest/rules/no-alert)

Am new to the internals of parsers and linters so I kept the
implementation similar to ESLint's source code

Commented out the `globalThis` test cases in the pass array meant for
pre-ES2020 before `globalThis` was introduced, having clarified in the
Discord that it's ok to treat the built-in `globalThis` as always
present.

---------

Co-authored-by: Don Isaac <donald.isaac@gmail.com>
2024-09-06 08:40:20 -04:00
..
examples refactor(linter): improve diagnostic labeling (#3960) 2024-06-29 05:19:22 +00:00
fixtures refactor(linter): replace Windows-style line breaks with Unix-style in test fixture (#4768) 2024-08-08 17:33:04 +00:00
src feat(linter/eslint): implement no-alert (#5535) 2024-09-06 08:40:20 -04:00
tests feat(tasks/website): code generate the linter rules 2024-05-23 15:21:37 +08:00
Cargo.toml refactor(linter): use "parsed pattern" in no_div_regex rule. (#5417) 2024-09-04 14:00:47 +00:00
CHANGELOG.md Release oxlint v0.9.2 (#5401) 2024-09-02 20:30:22 +08:00