Skip to content

Commit

Permalink
chore: integrate ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Dec 21, 2022
1 parent 8bcd0ab commit aa033e4
Show file tree
Hide file tree
Showing 177 changed files with 5,649 additions and 3,843 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ jobs:

- run: node common/scripts/install-run-rush.js install
- run: node common/scripts/install-run-rush.js build --verbose
- run: node common/scripts/install-run-rush.js lint --verbose
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ jobs:

- run: node common/scripts/install-run-rush.js install
- run: node common/scripts/install-run-rush.js build --verbose
- run: node common/scripts/install-run-rush.js lint --verbose
12 changes: 11 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"zstd"
],
"editor.tabSize": 4,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll": true,
},
"jest.rootPath": "packages/struct",
"jest.showCoverageOnLoad": true,
"markdown.extension.toc.levels": "2..6",
Expand All @@ -70,5 +74,11 @@
],
"typescript.preferences.quoteStyle": "single",
"typescript.format.semicolons": "insert",
"editor.formatOnSave": true
"editor.formatOnSave": true,
"eslint.workingDirectories": [
"libraries/*",
],
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
2 changes: 1 addition & 1 deletion apps/book/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@docusaurus/core": "^2.2.0",
"@docusaurus/preset-classic": "^2.2.0",
"@mdx-js/react": "^2.1.5",
"@mdx-js/react": "^2.2.1",
"@svgr/webpack": "^6.5.1",
"clsx": "^1.1.1",
"file-loader": "^6.2.0",
Expand Down
28 changes: 14 additions & 14 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"lint": "next lint"
},
"dependencies": {
"@fluentui/react": "^8.101.1",
"@fluentui/react-file-type-icons": "^8.8.2",
"@fluentui/react": "^8.103.10",
"@fluentui/react-file-type-icons": "^8.8.4",
"@fluentui/react-hooks": "^8.6.14",
"@fluentui/react-icons": "^2.0.187",
"@fluentui/style-utilities": "^8.8.3",
"@griffel/react": "^1.4.2",
"@fluentui/react-icons": "^2.0.190",
"@fluentui/style-utilities": "^8.8.4",
"@griffel/react": "^1.5.2",
"@yume-chan/adb": "workspace:^0.0.17",
"@yume-chan/adb-backend-direct-sockets": "workspace:^0.0.9",
"@yume-chan/adb-backend-webusb": "workspace:^0.0.17",
Expand All @@ -33,21 +33,21 @@
"@yume-chan/struct": "workspace:^0.0.17",
"mobx": "^6.7.0",
"mobx-react-lite": "^3.4.0",
"next": "13.0.3",
"next": "13.0.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"xterm": "^5.0.0",
"xterm": "^5.1.0",
"xterm-addon-fit": "^0.6.0",
"xterm-addon-search": "^0.10.0",
"xterm-addon-webgl": "^0.13.0"
"xterm-addon-webgl": "^0.14.0"
},
"devDependencies": {
"@mdx-js/loader": "^2.1.5",
"@next/mdx": "^13.0.3",
"@types/react": "18.0.25",
"eslint": "8.27.0",
"eslint-config-next": "13.0.3",
"@mdx-js/loader": "^2.2.1",
"@next/mdx": "^13.0.7",
"@types/react": "18.0.26",
"eslint": "^8.30.0",
"eslint-config-next": "13.0.7",
"source-map-loader": "^4.0.1",
"typescript": "^4.8.4"
"typescript": "^4.9.4"
}
}
15 changes: 13 additions & 2 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,10 @@
"commandKind": "bulk",
"name": "build",
"summary": "Builds all projects",
"ignoreMissingScript": true,
"allowWarningsInSuccessfulBuild": true,
"enableParallelism": true,
"incremental": true,
"allowWarningsInSuccessfulBuild": true
"incremental": true
},
{
"commandKind": "bulk",
Expand All @@ -182,6 +183,16 @@
"enableParallelism": true,
"incremental": true
},
{
"commandKind": "bulk",
"name": "lint",
"summary": "Run ESLint in each projects",
"ignoreMissingScript": true,
"allowWarningsInSuccessfulBuild": true,
"enableParallelism": true,
"incremental": true,
"safeForSimultaneousRushProcesses": true
},
{
"commandKind": "bulk",
"name": "build:watch",
Expand Down
Loading

0 comments on commit aa033e4

Please sign in to comment.