Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit dcfde80

Browse files
committed
feat: add constants
1 parent 2bf6c92 commit dcfde80

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/components/constants.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import type { Linter } from "eslint";
2+
3+
export const DEFAULT_CODE = `
4+
async function invalidInTryCatch1() {
5+
try {
6+
return Promise.resolve('try');
7+
} catch (e) {}
8+
}
9+
`;
10+
11+
export const DEFAULT_RULE_CONFIG: Linter.RulesRecord = {
12+
"@typescript-eslint/return-await": "error",
13+
};
14+
15+
export const ECMA_VERSIONS = [
16+
"es2015",
17+
"es2016",
18+
"es2017",
19+
"es2018",
20+
"es2019",
21+
"es2020",
22+
] as const;
23+
24+
export const ECMA_FEATURES = ["jsx", "globalReturn"] as const;

0 commit comments

Comments
 (0)