Hao Cheng
49b6be607e
fix(linter): fix handling of repeated eslint-disable comments ( #1200 )
...
This PR fixes how the linter handles repeated `eslint-disable` comments.
As shown by examples below, in ESLint, repeated `eslint-disable`
comments are allowed and all errors below the first `eslint-disable`
comment are ignored.
The first new test case in ESLint Playground:
https://eslint.org/play/#eyJ0ZXh0IjoiICAgICAgICAvKiBlc2xpbnQtZGlzYWJsZSAqL1xuICAgICAgICAgICAgZGVidWdnZXI7XG4gICAgICAgIC8qIGVzbGludC1kaXNhYmxlICovXG4gICAgICAgICAgICBkZWJ1Z2dlcjsiLCJvcHRpb25zIjp7ImVudiI6e30sInJ1bGVzIjp7Im5vLWRlYnVnZ2VyIjpbImVycm9yIl19LCJwYXJzZXJPcHRpb25zIjp7ImVjbWFGZWF0dXJlcyI6e30sImVjbWFWZXJzaW9uIjoibGF0ZXN0Iiwic291cmNlVHlwZSI6Im1vZHVsZSJ9fX0=
The second new test case in ESLint Playground:
https://eslint.org/play/#eyJ0ZXh0IjoiICAgICAgICAvKiBlc2xpbnQtZGlzYWJsZSBuby1kZWJ1Z2dlciAqL1xuICAgICAgICAgICAgZGVidWdnZXI7XG4gICAgICAgIC8qIGVzbGludC1kaXNhYmxlIG5vLWRlYnVnZ2VyICovXG4gICAgICAgICAgICBkZWJ1Z2dlcjsiLCJvcHRpb25zIjp7ImVudiI6e30sInJ1bGVzIjp7Im5vLWRlYnVnZ2VyIjpbImVycm9yIl19LCJwYXJzZXJPcHRpb25zIjp7ImVjbWFGZWF0dXJlcyI6e30sImVjbWFWZXJzaW9uIjoibGF0ZXN0Iiwic291cmNlVHlwZSI6Im1vZHVsZSJ9fX0=
2023-11-09 09:34:50 +08:00
Dunqing
ae71b36f9b
fix(tasks): avoid overriding existing babel options ( #1193 )
2023-11-08 17:04:59 +08:00
Boshen
48de83b20c
Release oxc_resolver v0.5.2
2023-11-08 17:03:17 +08:00
Dunqing
d8864c15b0
fix(tasks/transform_conformance): only the filtered test cases should be included when passing a filter ( #1197 )
2023-11-08 17:03:01 +08:00
Boshen
63c242f765
feat(resolver): strip trailling commas from tsconfig.json ( #1198 )
...
closes #1195
2023-11-08 08:57:06 +00:00
Dunqing
7d85492a03
feat(transformer/react-jsx): support the sourceType is a script ( #1192 )
2023-11-08 15:15:00 +08:00
Boshen
ed48809b1a
Release @oxidation-compiler/napi v0.2.0
2023-11-08 13:41:40 +08:00
Boshen
c0e9616fe7
Release oxlint v0.0.16, vscode extension v0.0.16
2023-11-08 11:40:46 +08:00
Dunqing
28c0b85646
feat(transformer/react-jsx): support @jsxFrag annotation ( #1189 )
2023-11-08 11:35:40 +08:00
Boshen
26fd0069d8
chore(linter): change categories of some rules and also add some help messages
...
no-new-array -> suspicious
prefer-add-event-listener -> suspicious
prefer-date-now -> pedantic
2023-11-08 11:32:41 +08:00
Cameron
8e8508b5f4
feat(linter) eslint plugin unicorn: prefer regex test ( #1187 )
2023-11-08 10:45:12 +08:00
Wenzhe Wang
1cc449f97e
refactor(linter): reduce the lookup times of Call Expression in Jest rules ( #1184 )
2023-11-08 08:20:57 +08:00
cin
6e76669a3f
feat(lint): remove unnecessary check ( #1185 )
2023-11-08 04:32:18 +08:00
cin
9369424d8e
feat(linter): eslint-plugin-jest: no-hooks ( #1172 )
2023-11-07 21:52:36 +08:00
Dunqing
633c469d2d
feat(transformer/react-jsx): support @jsx annotation ( #1182 )
2023-11-07 20:30:26 +08:00
秦宇航
008b0e650c
feat(linter) eslint-plugin-import: no-amd ( #1171 )
2023-11-07 20:28:39 +08:00
Dunqing
3cb7c0b199
feat(transformer/react-jsx): support pragmaFrag option ( #1181 )
2023-11-07 10:34:15 +00:00
Dunqing
4ed0813f9b
feat(transformer/react-jsx): support pragma option ( #1180 )
2023-11-07 18:26:54 +08:00
Cameron
5636bf9207
feat(linter) eslint plugin unicorn: no useless fallback ( #1176 )
2023-11-07 18:24:12 +08:00
Dunqing
bf23d87848
feat(transformer/react-jsx): support @jsxImportSource annotation ( #1179 )
2023-11-07 17:29:38 +08:00
Dunqing
f0e452a599
feat(transformer): support importSource option in react_jsx ( #1115 )
2023-11-07 16:42:08 +08:00
Cameron
b16c298b35
feat(linter) eslint plugin unicorn: prefer add event listener ( #1175 )
2023-11-07 10:59:09 +08:00
Cameron
8f93891dc7
feat(linter) eslint plugin unicorn: no new buffer ( #1174 )
2023-11-07 10:58:04 +08:00
Yiming Pan
033a112a83
feat(linter): support eslint(default-case-last) ( #1156 )
2023-11-07 10:52:39 +08:00
Wenzhe Wang
6a03775c49
chore(benchmark): reopen jest and jsx-a11y for benchmark ( #1169 )
2023-11-07 10:48:16 +08:00
Cameron
9b66646278
feat(linter) eslint-plugin-unicorn: prefer blob reading methods ( #1168 )
2023-11-06 12:59:28 +00:00
Cameron
5cf8543be1
feat(linter) eslint-plugin-unicorn: prefer code point ( #1167 )
2023-11-06 20:26:56 +08:00
Boshen
ba603cebb9
Release Oxc v0.3.0
2023-11-06 19:11:16 +08:00
Boshen
b4d0518c4e
Release oxc_resolver v0.5.1
2023-11-06 19:01:22 +08:00
IWANABETHATGUY
746f37a389
chore: 🤖 impl fileSystem for Arc<T> ( #1166 )
...
1. Impl `FileSystem` for `Arc<T>` when `T` satisfies `FileSystem`, it is
useful when the user wants to share the filesystem into multiple
threads.
2023-11-06 19:00:05 +08:00
Cameron
de6150a071
feat(linter) eslint-plugin-unicorn no-static-only-class ( #1161 )
2023-11-06 09:22:13 +00:00
Cameron
a5b87c424a
feat(linter): eslint-plugin-unicorn no-object-as-default-parameter ( #1162 )
2023-11-06 09:09:59 +00:00
dependabot[bot]
167dedcca7
chore(deps): bump the dependencies group with 6 updates ( #1165 )
2023-11-06 15:11:02 +08:00
cin
85651af841
feat(linter): jest/prefer-todo rule ( #1065 )
2023-11-06 12:32:06 +08:00
Boshen
a6ef574985
Release oxc_resolver v0.5.0
2023-11-06 11:40:39 +08:00
IWANABETHATGUY
cedd2e904c
chore: 🤖 remove generic in FileSystem trait ( #1163 )
...
generic will make the Trait non-object safe, so use a specific type
instead a generic instead.
```rs
// Examples of non-object safe traits.
trait NotObjectSafe {
const CONST: i32 = 1; // ERROR: cannot have associated const
fn foo() {} // ERROR: associated function without Sized
fn returns(&self) -> Self; // ERROR: Self in return type
fn typed<T>(&self, x: T) {} // ERROR: has generic type parameters
fn nested(self: Rc<Box<Self>>) {} // ERROR: nested receiver not yet supported
}
struct S;
impl NotObjectSafe for S {
fn returns(&self) -> Self { S }
}
let obj: Box<dyn NotObjectSafe> = Box::new(S); // ERROR
```
2023-11-06 11:19:48 +08:00
Boshen
58f8225e08
Release oxc_resolver v0.4.0
2023-11-06 10:50:08 +08:00
Cameron
0635d7b740
feat(linter) eslint plugin unicorn: no new array ( #1160 )
2023-11-06 09:57:48 +08:00
Cameron
013cfe9c44
feat(linter) eslint plugin unicorn: new-for-builtins ( #1159 )
2023-11-06 09:55:28 +08:00
Wenzhe Wang
c7598b22ff
chore(cli): move import_plugin into enable_plugins ( #1158 )
2023-11-06 09:00:36 +08:00
IWANABETHATGUY
7c8342d6be
chore: 🤖 make FileSystem trait object safe ( #1157 )
2023-11-05 23:40:08 +08:00
Wenzhe Wang
3b88f748fd
refactor: change jest rule's category ( #1155 )
2023-11-05 14:00:12 +00:00
Wenzhe Wang
4e9260ec03
feat: basic enable plugin ( #1154 )
2023-11-05 21:46:30 +08:00
Boshen
e2e74caab3
Update README.md
2023-11-05 21:41:28 +08:00
Boshen
9b913301e8
chore(editor/vscode): remove unused dependencies and also webpack.config.js ( #1153 )
2023-11-05 21:09:34 +08:00
Wenzhe Wang
e9b88e0b45
refactor: split parse_jest_fn_call ( #1152 )
2023-11-05 20:47:09 +08:00
Boshen
f7c4abe84c
Release vscode extension v0.0.3
2023-11-05 15:05:32 +08:00
Boshen
5aa7cc1718
publish vscode ( #1144 )
2023-11-05 15:03:22 +08:00
Boshen
bf3d907dc2
Update README.md
2023-11-05 09:03:58 +08:00
Cameron
b81d79b64b
refactor(eqeqeq) rename eq_eq_eq to eqeqeq ( #1151 )
...
From #1146
---------
Co-authored-by: Boshen <boshenc@gmail.com>
2023-11-05 00:25:04 +00:00