Skip to content

Commit f5d5753

Browse files
dependabot[bot]igboyes
authored andcommitted
chore(deps-dev): bump the eslint group with 7 updates
1 parent d48e49f commit f5d5753

File tree

507 files changed

+709
-1000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

507 files changed

+709
-1000
lines changed

.eslintrc.json

Lines changed: 0 additions & 83 deletions
This file was deleted.

.storybook/preview.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2-
import React from "react";
32
import { fn } from "storybook/test";
43
import { ThemeProvider } from "styled-components";
54
import { Router } from "wouter";

eslint.config.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
import js from "@eslint/js";
2+
import vitest from "@vitest/eslint-plugin";
3+
import prettier from "eslint-config-prettier";
4+
import react from "eslint-plugin-react";
5+
import reactHooks from "eslint-plugin-react-hooks";
6+
import storybook from "eslint-plugin-storybook";
7+
import globals from "globals";
8+
import tseslint from "typescript-eslint";
9+
10+
export default tseslint.config(
11+
{
12+
ignores: ["**/tests/setup.tsx", "dist/**"],
13+
},
14+
js.configs.recommended,
15+
...tseslint.configs.recommended,
16+
react.configs.flat.recommended,
17+
react.configs.flat["jsx-runtime"],
18+
{
19+
files: ["**/*.{js,jsx,ts,tsx}"],
20+
plugins: {
21+
"react-hooks": reactHooks,
22+
"@vitest": vitest,
23+
},
24+
languageOptions: {
25+
ecmaVersion: "latest",
26+
sourceType: "module",
27+
globals: {
28+
...globals.browser,
29+
},
30+
},
31+
settings: {
32+
react: {
33+
version: "detect",
34+
},
35+
},
36+
rules: {
37+
...reactHooks.configs.recommended.rules,
38+
curly: ["warn", "all"],
39+
"func-style": [
40+
"warn",
41+
"declaration",
42+
{
43+
allowArrowFunctions: false,
44+
},
45+
],
46+
"no-else-return": "warn",
47+
"no-prototype-builtins": "warn",
48+
"prefer-arrow-callback": "warn",
49+
"prefer-const": "warn",
50+
"react/display-name": "warn",
51+
"react/no-unescaped-entities": "warn",
52+
"@typescript-eslint/no-empty-function": "warn",
53+
"@typescript-eslint/no-explicit-any": "warn",
54+
},
55+
},
56+
...storybook.configs["flat/recommended"],
57+
prettier,
58+
{
59+
files: ["**/*.tsx"],
60+
rules: {
61+
"react/prop-types": "off",
62+
},
63+
},
64+
{
65+
files: ["**/*.test.{ts,tsx,js,jsx}"],
66+
rules: {
67+
"no-global-assign": "off",
68+
},
69+
},
70+
{
71+
files: ["**/nonce.js"],
72+
rules: {
73+
"no-undef": "off",
74+
},
75+
},
76+
);

0 commit comments

Comments
 (0)