-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.ts
More file actions
29 lines (27 loc) · 825 Bytes
/
eslint.config.ts
File metadata and controls
29 lines (27 loc) · 825 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
import { globalIgnores } from "eslint/config";
import tseslint from "typescript-eslint";
import pluginOxlint from "eslint-plugin-oxlint";
import eslintConfigPrettier from "eslint-config-prettier/flat";
const config: any = tseslint.config(
globalIgnores([
"**/dist/**",
"**/node_modules/**",
"./changeset/**",
"pnpm-lock.yaml",
"*.md",
]),
tseslint.configs.recommended,
eslintConfigPrettier,
...pluginOxlint.configs["flat/recommended"],
{
files: ["**/*.{js,ts,tsx,mjs,cjs}"],
rules: {
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 0 }],
"no-trailing-spaces": "error",
},
},
);
export default config;