-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
64 lines (63 loc) · 1.47 KB
/
eslint.config.js
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import eslint from "@eslint/js";
import configPrettier from "eslint-config-prettier";
import spellcheck from "eslint-plugin-spellcheck";
import tsdoc from "eslint-plugin-tsdoc";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
configPrettier,
...tseslint.configs.recommendedTypeChecked,
{
// FIXME remove *.ts
ignores: ["eslint.config.js", "*.ts"],
plugins: {
spellcheck,
tsdoc,
},
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"tsdoc/syntax": "error",
"no-warning-comments": [
"error",
{
terms: ["fixme"],
location: "anywhere",
},
],
"spellcheck/spell-checker": [
"error",
{
identifiers: false,
skipWords: [
"Markable",
"apis",
"authed",
"bigints",
"customizable",
"docid",
"ebooks",
"epub",
"goog",
"iife",
"incrementing",
"linux",
"macos",
"rmapi",
"subfiles",
"urls",
"webcrypto",
],
skipIfMatch: ["^[0-9a-f]{64}"],
minLength: 4,
},
],
},
},
);