Skip to content

Commit a6a1d8e

Browse files
authored
[update] update eslint config, package (#48)
1 parent 8088c52 commit a6a1d8e

File tree

4 files changed

+840
-720
lines changed

4 files changed

+840
-720
lines changed

eslint.config.mjs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
// @ts-check
2-
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
32
import { FlatCompat } from '@eslint/eslintrc';
43
import eslint from '@eslint/js';
54
import eslintConfigPrettier from 'eslint-config-prettier';
6-
import reactPlugin from 'eslint-plugin-react';
5+
import react from 'eslint-plugin-react';
76
import simpleImportSortPlugin from 'eslint-plugin-simple-import-sort';
87
import globals from 'globals';
98
import tsEslint from 'typescript-eslint';
109
import { fileURLToPath } from 'url';
1110

11+
/**
12+
* @see{@link https://github.com/typescript-eslint/typescript-eslint/blob/main/eslint.config.mjs}
13+
*/
14+
1215
const tsconfigRootDir = fileURLToPath(new URL('.', import.meta.url)),
1316
flatCompat = new FlatCompat();
1417

@@ -17,7 +20,7 @@ export default tsEslint.config(
1720
{
1821
plugins: {
1922
'@typescript-eslint': tsEslint.plugin,
20-
react: fixupPluginRules(reactPlugin),
23+
react,
2124
'simple-import-sort': simpleImportSortPlugin,
2225
},
2326
},
@@ -29,7 +32,7 @@ export default tsEslint.config(
2932
// extends ...
3033
eslint.configs.recommended,
3134
...tsEslint.configs.recommended,
32-
...fixupConfigRules(flatCompat.extends('plugin:@next/next/core-web-vitals')),
35+
...flatCompat.extends('plugin:@next/next/core-web-vitals'),
3336

3437
// base config
3538
{

package.json

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,81 @@
11
{
22
"name": "@idea2app/next-bootstrap-ts",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "React project scaffold based on TypeScript, Next.js, Bootstrap & Workbox.",
55
"private": true,
66
"engines": {
77
"node": ">=22"
88
},
99
"dependencies": {
1010
"@editorjs/code": "^2.9.3",
11-
"@editorjs/editorjs": "^2.30.7",
11+
"@editorjs/editorjs": "^2.30.8",
1212
"@editorjs/header": "^2.8.8",
13-
"@editorjs/image": "^2.10.1",
13+
"@editorjs/image": "^2.10.2",
1414
"@editorjs/link": "^2.6.2",
15-
"@editorjs/list": "^2.0.2",
15+
"@editorjs/list": "^2.0.4",
1616
"@editorjs/paragraph": "^2.11.7",
1717
"@editorjs/quote": "~2.7.6",
1818
"@mdx-js/loader": "^3.1.0",
1919
"@mdx-js/react": "^3.1.0",
20-
"@next/mdx": "^15.1.5",
21-
"@sentry/nextjs": "^8.50.0",
20+
"@next/mdx": "^15.1.7",
21+
"@sentry/nextjs": "^9.1.0",
2222
"copy-webpack-plugin": "^12.0.2",
2323
"core-js": "^3.40.0",
24-
"editorjs-html": "^3.4.3",
24+
"editorjs-html": "^4.0.5",
2525
"idea-react": "^2.0.0-rc.8",
2626
"koajax": "^3.1.1",
27-
"less": "^4.2.1",
27+
"less": "^4.2.2",
2828
"less-loader": "^12.2.0",
2929
"lodash": "^4.17.21",
30-
"mobx": "^6.13.5",
30+
"mobx": "^6.13.6",
3131
"mobx-github": "^0.3.5",
3232
"mobx-i18n": "^0.6.0",
3333
"mobx-react": "^9.2.0",
34-
"mobx-restful": "^2.0.0",
34+
"mobx-restful": "^2.1.0",
3535
"mobx-restful-table": "^2.0.1",
36-
"next": "^15.1.5",
36+
"next": "^15.1.7",
3737
"next-pwa": "~5.6.0",
3838
"next-ssr-middleware": "^0.8.9",
3939
"next-with-less": "^3.0.1",
4040
"prismjs": "^1.29.0",
4141
"react": "^18.3.1",
42-
"react-bootstrap": "^2.10.7",
42+
"react-bootstrap": "^2.10.9",
4343
"react-bootstrap-editor": "^2.0.4",
4444
"react-dom": "^18.3.1",
4545
"react-editor-js": "^2.1.0",
4646
"remark-frontmatter": "^5.0.0",
47-
"remark-gfm": "^4.0.0",
47+
"remark-gfm": "^4.0.1",
4848
"remark-mdx-frontmatter": "^5.0.0",
49-
"undici": "^7.2.3",
50-
"web-utility": "^4.4.2",
51-
"webpack": "^5.97.1"
49+
"undici": "^7.3.0",
50+
"web-utility": "^4.4.3",
51+
"webpack": "^5.98.0"
5252
},
5353
"devDependencies": {
5454
"@babel/plugin-proposal-decorators": "^7.25.9",
55-
"@babel/plugin-transform-typescript": "^7.26.5",
55+
"@babel/plugin-transform-typescript": "^7.26.8",
5656
"@babel/preset-react": "^7.26.3",
57-
"@eslint/compat": "^1.2.5",
58-
"@eslint/eslintrc": "^3.2.0",
59-
"@eslint/js": "^9.18.0",
57+
"@eslint/compat": "^1.2.7",
58+
"@eslint/eslintrc": "^3.3.0",
59+
"@eslint/js": "^9.21.0",
6060
"@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
6161
"@types/eslint-config-prettier": "^6.11.3",
6262
"@types/eslint__eslintrc": "^2.1.2",
63-
"@types/eslint__js": "^8.42.3",
64-
"@types/lodash": "^4.17.14",
63+
"@types/lodash": "^4.17.15",
6564
"@types/next-pwa": "^5.6.9",
66-
"@types/node": "^22.10.7",
65+
"@types/node": "^22.13.5",
6766
"@types/react": "^18.3.18",
68-
"eslint": "^9.18.0",
69-
"eslint-config-next": "^15.1.5",
70-
"eslint-config-prettier": "^9.1.0",
67+
"eslint": "^9.21.0",
68+
"eslint-config-next": "^15.1.7",
69+
"eslint-config-prettier": "^10.0.1",
7170
"eslint-plugin-react": "^7.37.4",
7271
"eslint-plugin-simple-import-sort": "^12.1.1",
73-
"globals": "^15.14.0",
72+
"globals": "^16.0.0",
7473
"husky": "^9.1.7",
75-
"lint-staged": "^15.4.1",
76-
"prettier": "^3.4.2",
74+
"lint-staged": "^15.4.3",
75+
"prettier": "^3.5.2",
7776
"prettier-plugin-css-order": "^2.1.2",
7877
"typescript": "~5.7.3",
79-
"typescript-eslint": "^8.20.0"
78+
"typescript-eslint": "^8.24.1"
8079
},
8180
"resolutions": {
8281
"next": "$next"
@@ -92,7 +91,7 @@
9291
},
9392
"lint-staged": {
9493
"*.{html,md,less,json,yml,js,mjs,ts,tsx}": "prettier --write",
95-
"*.{js,mjs,ts,tsx}": "eslint --fix"
94+
"*.{css,js,mjs,ts,tsx}": "eslint --fix"
9695
},
9796
"scripts": {
9897
"prepare": "husky",
@@ -101,6 +100,8 @@
101100
"export": "next build && next export",
102101
"start": "next start",
103102
"lint": "next lint && tsc --noEmit",
103+
"lint:all": "eslint --fix .",
104+
"lint:inspect": "eslint --inspect-config",
104105
"test": "lint-staged && npm run lint",
105106
"pack-image": "docker build -t idea2app/next-bootstrap-ts:latest .",
106107
"container": "docker rm -f next-bootstrap-ts && docker run --name next-bootstrap-ts -p 3000:3000 -d idea2app/next-bootstrap-ts:latest"

0 commit comments

Comments
 (0)