Skip to content

Commit f2b57d5

Browse files
committed
client eslint 9
1 parent a17966d commit f2b57d5

File tree

7 files changed

+680
-929
lines changed

7 files changed

+680
-929
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -411,3 +411,4 @@ FodyWeavers.xsd
411411

412412
.DS_Store
413413
**/.DS_Store
414+
**/.eslintcache

azure-upload-file-to-storage/app/.eslintrc.cjs

-28
This file was deleted.

azure-upload-file-to-storage/app/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ dist-ssr
2323
*.sln
2424
*.sw?
2525
.env*
26+
27+
.eslintcache
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
7+
/** @type {import('eslint').Linter.Config[]} */
8+
export default [
9+
{files: ["./src/**/*.{ts,tsx}"]},
10+
{languageOptions: { globals: globals.browser }},
11+
pluginJs.configs.recommended,
12+
...tseslint.configs.recommended,
13+
pluginReact.configs.flat.recommended,
14+
{
15+
settings: {
16+
react: {
17+
version: "detect"
18+
}
19+
},
20+
rules: {
21+
"react/react-in-jsx-scope": "off"
22+
}
23+
}
24+
];

0 commit comments

Comments
 (0)