Skip to content

Commit 08de4bd

Browse files
committed
feat: recommended TS ESLint settings
1 parent aeca2bc commit 08de4bd

19 files changed

Lines changed: 199 additions & 28 deletions

File tree

File renamed without changes.

‎eslint.config.mjs‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from "eslint/config";
2+
import tseslint from "typescript-eslint";
23
import globals from "globals";
34
import pluginCypress from "eslint-plugin-cypress";
45
import js from "@eslint/js";
@@ -7,7 +8,23 @@ import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
78
export default defineConfig([
89
js.configs.recommended,
910
{
10-
ignores: ["**/data/", "**/dist/", "**/.yalc/", "**/.strapi/"],
11+
ignores: [
12+
"**/data/",
13+
"**/dist/",
14+
"**/.yalc/",
15+
"**/.strapi/",
16+
"**/generated/",
17+
],
18+
},
19+
{
20+
extends: [tseslint.configs.recommended],
21+
rules: {
22+
"no-unused-vars": "off",
23+
"@typescript-eslint/no-unused-vars": [
24+
"error",
25+
{ ignoreRestSiblings: true },
26+
],
27+
},
1128
},
1229
{
1330
languageOptions: {
@@ -24,7 +41,6 @@ export default defineConfig([
2441
"prefer-const": "error",
2542
"no-console": ["error", { allow: ["warn", "error"] }],
2643
"no-param-reassign": "error",
27-
"no-throw-literal": ["error", { ignoreRestSiblings: true }],
2844
curly: "error",
2945
},
3046
},

0 commit comments

Comments
 (0)