-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patheslint.config.js
53 lines (51 loc) · 1.29 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
// @ts-check
import eslint from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import eslintPluginImportX from "eslint-plugin-import-x";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
plugins: {
"import-x": eslintPluginImportX,
},
languageOptions: {
parserOptions: {
sourceType: "module",
ecmaVersion: "latest",
project: ["tsconfig.json", "tsconfig.*.json"],
},
globals: {
...globals.node,
},
},
rules: {
"import-x/order": [
"error",
{
alphabetize: { order: "asc" },
"newlines-between": "never",
},
],
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: { arguments: false },
},
],
},
},
{ ignores: ["dist/", ".husky/install.mjs"] },
eslintConfigPrettier,
);