oxc/crates
Hao Cheng fa4e0cae81
fix(linter): fix covered span of eslint-disable-next-line comments (#1128)
This PR fixes the covered span (specifically the stop position) of
`eslint-disable-next-line` comments.

Note that the covered span is not very accurate in the case of
multi-line comments. For example, the start and stop positions of the
`eslint-disable-next-line` comment in the example below are marked in
comments.

```js
            /* eslint-disable-next-line no-debugger --
             * Here's a very long description about why this configuration is necessary
             * along with some additional information
            **/
//           ^start
            debugger;
//                  ^stop
            debugger;
```

The stop position has an offset of one or two depending on the line
ending (\r\n or \n). I am not sure if this would be a problem.
2023-11-02 09:28:39 +08:00
..
oxc feat(playground): add transform and minify (#993) 2023-10-14 19:49:58 +08:00
oxc_allocator chore(clippy): enable undocumented_unsafe_blocks 2023-10-16 15:18:14 +08:00
oxc_ast fix(linter): revert changes to JSX attribute strings (#1101) 2023-10-30 15:26:04 +08:00
oxc_cli feat(cli): print execution time in seconds when greater than 1 second (#1107) 2023-10-30 16:35:40 +08:00
oxc_codegen fix(linter): revert changes to JSX attribute strings (#1101) 2023-10-30 15:26:04 +08:00
oxc_diagnostics fix(linter) Report error instead of panicing if the file fails to open (#1098) 2023-10-30 09:53:28 +08:00
oxc_formatter fix(linter): revert changes to JSX attribute strings (#1101) 2023-10-30 15:26:04 +08:00
oxc_index chore(span,index): update documentation 2023-10-22 11:23:36 +08:00
oxc_linter fix(linter): fix covered span of eslint-disable-next-line comments (#1128) 2023-11-02 09:28:39 +08:00
oxc_linter_plugin chore(deps): bump the dependencies group with 4 updates (#1100) 2023-10-30 15:09:28 +08:00
oxc_macros refactor(clippy): allow clippy::too_many_lines 2023-10-16 15:18:11 +08:00
oxc_minifier chore(minifier): add --whitespace option to example 2023-10-20 11:33:53 +08:00
oxc_napi perf: speed tasks run by using a global allocator 2023-10-11 20:30:30 +08:00
oxc_parser fix(linter): revert changes to JSX attribute strings (#1101) 2023-10-30 15:26:04 +08:00
oxc_query fix(linter): revert changes to JSX attribute strings (#1101) 2023-10-30 15:26:04 +08:00
oxc_resolver chore(deps): bump the dependencies group with 5 updates (#1002) 2023-10-16 15:23:20 +08:00
oxc_semantic feat(transformer): implement some of needs_explicit_esm for typescript (#1047) 2023-10-24 17:30:01 +08:00
oxc_span refactor(transformer): add an empty SPAN utility for creating AST nodes (#1067) 2023-10-26 18:43:53 +08:00
oxc_syntax feat(transformer/jsx): escape xhtml in jsx attributes (#1088) 2023-10-29 15:16:50 +08:00
oxc_transformer fix(linter): revert changes to JSX attribute strings (#1101) 2023-10-30 15:26:04 +08:00
oxc_type_synthesis ci: turn off doc tests because they are slow to compile and run (#961) 2023-10-07 17:01:23 +08:00
oxc_wasm chore(deps): bump the dependencies group with 4 updates (#1100) 2023-10-30 15:09:28 +08:00