main
mjs 27 lines 586 Bytes
Raw
1 import typescriptEslint from "typescript-eslint";
2
3 export default [{
4 files: ["**/*.ts"],
5 }, {
6 plugins: {
7 "@typescript-eslint": typescriptEslint.plugin,
8 },
9
10 languageOptions: {
11 parser: typescriptEslint.parser,
12 ecmaVersion: 2022,
13 sourceType: "module",
14 },
15
16 rules: {
17 "@typescript-eslint/naming-convention": ["warn", {
18 selector: "import",
19 format: ["camelCase", "PascalCase"],
20 }],
21
22 curly: "warn",
23 eqeqeq: "warn",
24 "no-throw-literal": "warn",
25 semi: "warn",
26 },
27 }];