-
-
Notifications
You must be signed in to change notification settings - Fork 228
/
Copy patheslint.config.js
40 lines (39 loc) · 954 Bytes
/
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
import eslint from "@eslint/js";
import json from "@eslint/json";
import eslintConfigPrettier from "eslint-config-prettier/flat";
import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
import tseslint from "typescript-eslint";
/** @type {import("typescript-eslint").ConfigArray} */
export default [
{
ignores: ["**/build/"],
},
{
ignores: ["package-lock.json"],
files: ["**/*.json"],
language: "json/json",
...json.configs.recommended,
},
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
eslintPluginPrettier,
{
rules: {
"prettier/prettier": [
"error",
{
trailingComma: "es5",
},
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
caughtErrors: "none",
},
],
"no-irregular-whitespace": "off",
},
},
];