Skip to content

Commit cc8c9f0

Browse files
committed
[Fix]: ESlint 2
1 parent aea44d5 commit cc8c9f0

6 files changed

Lines changed: 681 additions & 700 deletions

File tree

frontend/eslint.config.js

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
import js from '@eslint/js'
2-
import globals from 'globals'
3-
import reactHooks from 'eslint-plugin-react-hooks'
4-
import reactRefresh from 'eslint-plugin-react-refresh'
5-
import tseslint from 'typescript-eslint'
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import tseslint from "typescript-eslint";
66

77
export default tseslint.config(
8-
{ ignores: ['dist'] },
9-
{
10-
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11-
files: ['**/*.{ts,tsx}'],
12-
languageOptions: {
13-
ecmaVersion: 2020,
14-
globals: globals.browser,
15-
},
16-
plugins: {
17-
'react-hooks': reactHooks,
18-
'react-refresh': reactRefresh,
19-
},
20-
rules: {
21-
...reactHooks.configs.recommended.rules,
22-
'react-refresh/only-export-components': [
23-
'warn',
24-
{ allowConstantExport: true },
25-
],
26-
},
27-
},
28-
)
8+
{ ignores: ["dist"] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ["**/*.{ts,tsx}"],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
"react-hooks": reactHooks,
18+
"react-refresh": reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
23+
},
24+
}
25+
);

frontend/postcss.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

frontend/tailwind.config.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
/** @type {import('tailwindcss').Config} */
22
export default {
3-
darkMode: ["class"],
4-
content: ["./src/**/*.{html,jsx,tsx,vue,js,ts}"],
5-
theme: {
6-
extend: {
7-
borderRadius: {
8-
lg: 'var(--radius)',
9-
md: 'calc(var(--radius) - 2px)',
10-
sm: 'calc(var(--radius) - 4px)'
11-
},
12-
colors: {}
13-
}
14-
},
15-
plugins: [require("tailwindcss-animate")],
16-
}
17-
3+
darkMode: ["class"],
4+
content: ["./src/**/*.{html,jsx,tsx,vue,js,ts}"],
5+
theme: {
6+
extend: {
7+
borderRadius: {
8+
lg: "var(--radius)",
9+
md: "calc(var(--radius) - 2px)",
10+
sm: "calc(var(--radius) - 4px)",
11+
},
12+
colors: {},
13+
},
14+
},
15+
plugins: [require("tailwindcss-animate")],
16+
};

0 commit comments

Comments
 (0)