-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
69 lines (68 loc) · 1.92 KB
/
eslint.config.mjs
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
65
66
67
68
69
import js from "@eslint/js";
import jsdoc from "eslint-plugin-jsdoc";
import stylistic from "@stylistic/eslint-plugin";
export default [
js.configs.all,
jsdoc.configs["flat/recommended"],
stylistic.configs.customize({
quotes: "double",
semi: true,
}),
{
ignores: ["dist", "public", "examples"],
},
{
languageOptions: {
globals: {
TextDecoder: "readonly",
Iterator: "readonly",
Iterable: "readonly",
IIterableResult: "readonly",
console: "readonly",
lmNS: "readonly",
},
},
plugins: {
"@stylistic": stylistic,
jsdoc,
},
rules: {
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"@stylistic/indent": ["error", 2],
"@stylistic/no-extra-semi": "error",
"@stylistic/operator-linebreak": 0,
"@stylistic/quote-props": ["error", "consistent"],
"capitalized-comments": 0,
"class-methods-use-this": 0,
"func-style": 0,
"id-length": 0,
"jsdoc/check-tag-names": ["error", { "definedTags": ["externs", "define", "nosideeffects"] }],
"jsdoc/no-undefined-types": "error",
"jsdoc/require-jsdoc": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-returns-check": 0,
"jsdoc/require-returns-description": 0,
"max-classes-per-file": 0,
"max-lines": 0,
"max-lines-per-function": ["error", 100],
"max-params": 0,
"max-statements": 0,
"multiline-comment-style": 0,
"no-bitwise": 0,
"no-constant-condition": 0,
"no-inline-comments": 0,
"no-magic-numbers": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-ternary": 0,
"no-use-before-define": 0,
"one-var": 0,
"prefer-destructuring": 0,
"prefer-template": 0,
"sort-keys": 0,
"sort-imports": 0,
"no-console": 0,
},
},
];