-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy patheslint.config.mjs
More file actions
33 lines (32 loc) · 940 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
33 lines (32 loc) · 940 Bytes
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
// @ts-check
import eslint from "@eslint/js";
import { defineConfig } from "eslint/config";
import prettier from "eslint-config-prettier";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import unusedImports from "eslint-plugin-unused-imports";
import tseslint from "typescript-eslint";
export default defineConfig(
{
ignores: ["dist/**"],
},
eslint.configs.recommended,
tseslint.configs.recommended,
prettier,
{
plugins: {
"unused-imports": unusedImports,
"simple-import-sort": simpleImportSort,
},
rules: {
"no-restricted-imports": [
"error",
{
patterns: [".*"],
},
],
"unused-imports/no-unused-imports": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
}
);