Skip to content

Commit

Permalink
chore: 添加基础的eslint配置,以便统一编码规范 (#11493)
Browse files Browse the repository at this point in the history
Closes #11047
  • Loading branch information
ranwawa authored Jan 26, 2025
1 parent 54e1dd2 commit 8fc5d99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended
);
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@babel/parser": "^7.22.7",
"@babel/traverse": "^7.22.8",
"@babel/types": "^7.22.5",
"@eslint/js": "^9.18.0",
"@fortawesome/fontawesome-free": "^6.1.1",
"@rollup/plugin-replace": "^5.0.1",
"@swc/core": "^1.3.107",
Expand All @@ -72,6 +73,7 @@
"amis-publish": "^1.0.5",
"copy-to-clipboard": "3.3.1",
"echarts": "5.4.0",
"eslint": "^9.18.0",
"express": "^4.18.2",
"fis-optimizer-terser": "^1.0.1",
"fis-parser-sass": "^1.2.0",
Expand Down Expand Up @@ -111,6 +113,7 @@
"rollup-pluginutils": "^2.8.2",
"setprototypeof": "^1.2.0",
"ts-jest": "^29.0.2",
"typescript-eslint": "^8.19.1",
"vite": "^4.3.9",
"vite-plugin-monaco-editor": "^1.1.0",
"vite-plugin-svgr": "^2.2.2",
Expand Down

0 comments on commit 8fc5d99

Please sign in to comment.