-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy patheslint.config.ts
More file actions
39 lines (37 loc) · 1.02 KB
/
eslint.config.ts
File metadata and controls
39 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import js from "@eslint/js";
import prettier from "eslint-config-prettier";
import libram, { verifyConstantsSinceRevision } from "eslint-plugin-libram";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";
await verifyConstantsSinceRevision(28891);
export default defineConfig(
{
ignores: ["dist"],
},
js.configs.recommended,
...tseslint.configs.recommended,
...libram.configs.recommended,
{
files: ["**/*.ts", "**/*.tsx"],
rules: {
"block-scoped-var": "error",
"eol-last": "error",
eqeqeq: "error",
"no-trailing-spaces": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-restricted-syntax": [
"error",
{
selector: "TSEnumDeclaration:not([const=true])",
message: "Don't declare non-const enums",
},
],
},
},
prettier,
);