Skip to content

Commit bf4cf1d

Browse files
dependabot[bot]flopez7portuu3
authored
chore(deps-dev): bump eslint from 8.57.1 to 9.38.0 (#3622)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Francisco López <[email protected]> Co-authored-by: portuu3 <[email protected]>
1 parent 708036f commit bf4cf1d

File tree

218 files changed

+1271
-1146
lines changed

Some content is hidden

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

218 files changed

+1271
-1146
lines changed

packages/apps/dashboard/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@typescript-eslint/eslint-plugin": "^7.2.0",
5353
"@typescript-eslint/parser": "^7.2.0",
5454
"@vitejs/plugin-react": "^4.2.1",
55-
"eslint": "^9.27.0",
55+
"eslint": "^9.39.1",
5656
"eslint-plugin-import": "^2.31.0",
5757
"eslint-plugin-prettier": "^5.4.0",
5858
"eslint-plugin-react": "^7.37.5",

packages/apps/dashboard/server/.eslintrc.js

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// @ts-check
2+
import eslint from '@eslint/js';
3+
import globals from 'globals';
4+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
5+
import jestPlugin from 'eslint-plugin-jest';
6+
import tseslint from 'typescript-eslint';
7+
8+
export default tseslint.config(
9+
{
10+
ignores: ['dist', 'node_modules'],
11+
},
12+
eslint.configs.recommended,
13+
tseslint.configs.recommended,
14+
eslintPluginPrettierRecommended,
15+
{
16+
files: ['**/*.ts', '**/*.js'],
17+
languageOptions: {
18+
globals: {
19+
...globals.node,
20+
...globals.es2022,
21+
},
22+
ecmaVersion: 2022,
23+
sourceType: 'module',
24+
parserOptions: {
25+
projectService: true,
26+
tsconfigRootDir: import.meta.dirname,
27+
},
28+
},
29+
plugins: {
30+
jest: jestPlugin,
31+
},
32+
rules: {
33+
'@typescript-eslint/interface-name-prefix': 'off',
34+
'@typescript-eslint/explicit-function-return-type': 'off',
35+
'@typescript-eslint/explicit-module-boundary-types': 'off',
36+
'@typescript-eslint/no-explicit-any': 'off',
37+
'@typescript-eslint/no-empty-function': 'off',
38+
'@typescript-eslint/no-non-null-assertion': 'off',
39+
"@/quotes": [
40+
"error",
41+
"single",
42+
{ "avoidEscape": true, "allowTemplateLiterals": true }
43+
],
44+
},
45+
},
46+
{
47+
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'],
48+
languageOptions: {
49+
globals: {
50+
...globals.jest,
51+
},
52+
},
53+
plugins: {
54+
jest: jestPlugin,
55+
},
56+
},
57+
);

packages/apps/dashboard/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@types/node": "22.10.5",
4949
"@typescript-eslint/eslint-plugin": "^5.0.0",
5050
"@typescript-eslint/parser": "^5.0.0",
51-
"eslint": "^8.0.1",
51+
"eslint": "^9.39.1",
5252
"eslint-config-prettier": "^9.1.0",
5353
"eslint-plugin-prettier": "^5.2.1",
5454
"jest": "29.5.0",

packages/apps/faucet/client/.eslintrc.json

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import eslint from '@eslint/js';
2+
import globals from 'globals';
3+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4+
import jestPlugin from 'eslint-plugin-jest';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
{
9+
ignores: ['dist', 'node_modules', 'vite.config.ts'],
10+
},
11+
eslint.configs.recommended,
12+
tseslint.configs.recommended,
13+
eslintPluginPrettierRecommended,
14+
{
15+
files: ['**/*.ts', '**/*.js'],
16+
languageOptions: {
17+
globals: {
18+
...globals.node,
19+
...globals.es2022,
20+
},
21+
ecmaVersion: 2022,
22+
sourceType: 'module',
23+
parserOptions: {
24+
projectService: true,
25+
tsconfigRootDir: import.meta.dirname,
26+
},
27+
},
28+
plugins: {
29+
jest: jestPlugin,
30+
},
31+
rules: {
32+
'@typescript-eslint/interface-name-prefix': 'off',
33+
'@typescript-eslint/explicit-function-return-type': 'off',
34+
'@typescript-eslint/explicit-module-boundary-types': 'off',
35+
'@typescript-eslint/no-explicit-any': 'off',
36+
'@/quotes': [
37+
'error',
38+
'single',
39+
{ 'avoidEscape': true, 'allowTemplateLiterals': true }
40+
],
41+
},
42+
},
43+
{
44+
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'],
45+
languageOptions: {
46+
globals: {
47+
...globals.jest,
48+
},
49+
},
50+
plugins: {
51+
jest: jestPlugin,
52+
},
53+
}
54+
);

packages/apps/faucet/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@types/react": "^18.3.12",
3333
"@types/react-dom": "^18.3.1",
3434
"dotenv": "^17.2.2",
35-
"eslint": "^8.55.0",
35+
"eslint": "^9.39.1",
3636
"eslint-config-react-app": "^7.0.1",
3737
"eslint-import-resolver-typescript": "^3.7.0",
3838
"eslint-plugin-import": "^2.29.0",

packages/apps/faucet/client/src/components/Layout/Layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { FC, PropsWithChildren } from 'react';
44
import { Footer } from '../Footer';
55
import { Header } from '../Header';
66

7-
export const Layout: FC<PropsWithChildren<{}>> = ({ children }) => (
7+
type LayoutProps = PropsWithChildren<Record<string, never>>;
8+
9+
export const Layout: FC<LayoutProps> = ({ children }) => (
810
<Box
911
sx={{
1012
marginTop: '88px',

packages/apps/faucet/client/src/components/PageWrapper/PageWrapper.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Box from '@mui/material/Box';
22
import { FC, PropsWithChildren } from 'react';
33

4-
export const PageWrapper: FC<PropsWithChildren<{}>> = ({ children }) => (
4+
type PageWrapperProps = PropsWithChildren<Record<string, never>>;
5+
6+
export const PageWrapper: FC<PageWrapperProps> = ({ children }) => (
57
<Box sx={{ px: { xs: 0, md: 3, lg: 5, xl: 7 } }}>
68
<Box
79
sx={{

0 commit comments

Comments
 (0)