Skip to content

Commit bf5f0d6

Browse files
committed
add basic eslint. Still need to configure.
1 parent 830aba6 commit bf5f0d6

File tree

15 files changed

+2045
-215
lines changed

15 files changed

+2045
-215
lines changed

frontend/eslint.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
import pluginReact from "eslint-plugin-react";
5+
6+
export default [
7+
8+
{
9+
languageOptions: { globals: globals.browser }
10+
},
11+
pluginJs.configs.recommended,
12+
...tseslint.configs.recommended,
13+
pluginReact.configs.flat.recommended,
14+
{
15+
files: ["src/**/*.js"],
16+
ignores: ["**/*.tsx"],
17+
},
18+
];

0 commit comments

Comments
 (0)