Skip to content

Commit 8753095

Browse files
committed
Address ESLint no-useless-escape
1 parent 7238c79 commit 8753095

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

ui/frontend/eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export default tseslint.config(
6060
...reactHooksPlugin.configs.recommended.rules,
6161

6262
// Disabled to upgrade to eslint 9
63-
'no-useless-escape': 'off',
6463
'no-fallthrough': 'off',
6564
'@typescript-eslint/no-empty-object-type': 'off',
6665
},

ui/frontend/highlighting.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function configureRustErrors({
4747
'rust-errors-help': {
4848
pattern: /help:.*\n/,
4949
inside: {
50-
'feature-gate': /add `#\!\[feature\(.+?\)\]`/,
50+
'feature-gate': /add `#!\[feature\(.+?\)\]`/,
5151
},
5252
},
5353
'backtrace': {
@@ -60,7 +60,7 @@ export function configureRustErrors({
6060
};
6161

6262
Prism.languages.rust_mir = {
63-
'mir-source': /src\/[A-Za-z0-9_.\-]+\.rs:\d+:\d+: \d+:\d+/,
63+
'mir-source': /src\/[A-Za-z0-9_.-]+\.rs:\d+:\d+: \d+:\d+/,
6464
}
6565

6666
Prism.hooks.add('wrap', env => {

ui/frontend/selectors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const hasTestsSelector = createSelector(codeSelector, code => !!code.matc
2323
// https://stackoverflow.com/a/34755045/155423
2424
const HAS_MAIN_FUNCTION_RE = new RegExp(
2525
[
26-
/^([^\n\r\/]*;)?/,
26+
/^([^\n\r/]*;)?/,
2727
/\s*(pub\s+)?\s*(const\s+)?\s*(async\s+)?\s*/,
2828
/fn\s+main\s*\(\s*(\/\*.*\*\/)?\s*\)/,
2929
].map((r) => r.source).join(''),

0 commit comments

Comments
 (0)