Skip to content

Commit

Permalink
Update ESLint dependencies and configurations; lint code.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Dec 29, 2024
1 parent 8b03576 commit 4976d95
Show file tree
Hide file tree
Showing 6 changed files with 618 additions and 857 deletions.
40 changes: 40 additions & 0 deletions components/log-viewer-webui/client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import CommonConfig from "eslint-config-yscope/CommonConfig.mjs";
import ReactConfigArray from "eslint-config-yscope/ReactConfigArray.mjs";
import StylisticConfigArray from "eslint-config-yscope/StylisticConfigArray.mjs";
import TsConfigArray, {createTsConfigOverride} from "eslint-config-yscope/TsConfigArray.mjs";


const EslintConfig = [
{
ignores: [
"dist/",
"node_modules/",
],
},
CommonConfig,
...TsConfigArray.map(
(config) => ({
files: [
"**/*.ts",
"**/*.tsx",
],
...config,
})
),
createTsConfigOverride(
[
"src/**/*.ts",
"src/**/*.tsx",
],
"tsconfig.app.json"
),
createTsConfigOverride(
["vite.config.ts"],
"tsconfig.node.json"
),
...StylisticConfigArray,
...ReactConfigArray,
];


export default EslintConfig;
Loading

0 comments on commit 4976d95

Please sign in to comment.