-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
52 lines (50 loc) · 1.21 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
import * as regexpPlugin from "eslint-plugin-regexp";
import eslintPluginJsonc from "eslint-plugin-jsonc";
import eslintPluginYml from "eslint-plugin-yml";
import jsdoc from "eslint-plugin-jsdoc";
import markdown from "eslint-plugin-markdown";
import nodePlugin from "eslint-plugin-n";
import packageJson from "eslint-plugin-package-json/configs/recommended";
import perfectionist from "eslint-plugin-perfectionist";
import typescriptParser from "@typescript-eslint/parser";
export default [
jsdoc.configs["flat/recommended"],
...eslintPluginJsonc.configs["flat/recommended-with-jsonc"],
...markdown.configs.recommended,
nodePlugin.configs["flat/recommended"],
packageJson,
regexpPlugin.configs["flat/recommended"],
...eslintPluginYml.configs["flat/recommended"],
{
files: ["**/*.js"],
plugins: {
jsdoc,
},
rules: {
"jsdoc/require-description": "warn",
},
},
{
files: ["**/*.ts"],
languageOptions: {
parser: typescriptParser,
},
rules: {
"n/no-missing-import": ["error", { allowModules: ["mealie-hellofresh"] }],
},
},
{
plugins: {
perfectionist,
},
rules: {
"perfectionist/sort-objects": [
"error",
{
order: "asc",
type: "natural",
},
],
},
},
];