Skip to content

Commit 5d85ab6

Browse files
authored
migrate to eslint 9 (neolution-ch#83)
1 parent f336381 commit 5d85ab6

28 files changed

Lines changed: 2294 additions & 896 deletions

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
runs-on: ubuntu-latest
7979
strategy:
8080
matrix:
81-
node-version: [16.x, 18.x]
81+
node-version: [20.x, 22.x, 24.x, 25.x]
8282
steps:
8383
- uses: actions/checkout@v2
8484

.storybook/main.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

.storybook/preview.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- migrated to eslint 9 flat config
13+
- removed obsolete storybook
14+
1015
## [5.14.0] - 2025-12-15
1116

1217
### Fixed

eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import neolutionEslintConfig from "@neolution-ch/eslint-config-neolution";
2+
import storybook from "eslint-plugin-storybook";
3+
4+
export default [...neolutionEslintConfig.configs.flat["react-library"], ...storybook.configs["flat/recommended"]];

package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"scripts": {
3333
"build": "rollup -c && yarn copy-definitionfile",
3434
"build-storybook": "build-storybook",
35-
"lint": "eslint \"**/*.{ts,tsx}\" --cache --max-warnings 0",
35+
"lint": "eslint --cache",
3636
"prepack": "yarn build",
3737
"prepare-pr": "yarn prettier . --write && yarn lint && yarn build && yarn test\"",
3838
"prettier-check": "prettier --check .",
@@ -59,6 +59,7 @@
5959
"@fortawesome/fontawesome-svg-core": "^6.1.1",
6060
"@fortawesome/free-solid-svg-icons": "^6.1.1",
6161
"@fortawesome/react-fontawesome": "^0.1.18",
62+
"@neolution-ch/eslint-config-neolution": "^2.3.0",
6263
"@release-it/keep-a-changelog": "^3.1.0",
6364
"@rollup/plugin-commonjs": "^24.1.0",
6465
"@rollup/plugin-node-resolve": "^15.0.2",
@@ -84,17 +85,12 @@
8485
"bootstrap": "^4.0.0",
8586
"concurrently": "^8.0.1",
8687
"cross-env": "^7.0.3",
87-
"eslint": "^8.39.0",
88-
"eslint-config-prettier": "^8.8.0",
89-
"eslint-import-resolver-typescript": "^3.5.5",
90-
"eslint-plugin-import": "^2.27.5",
91-
"eslint-plugin-react": "^7.33.2",
92-
"eslint-plugin-react-hooks": "^4.6.0",
93-
"eslint-plugin-storybook": "^0.6.12",
88+
"eslint": "^9.37.0",
89+
"eslint-plugin-storybook": "^0.10.0",
9490
"gh-pages": "^5.0.0",
9591
"jest": "^27.5.1",
9692
"nodemon": "^2.0.22",
97-
"prettier": "^2.8.8",
93+
"prettier": "^3.6.2",
9894
"react": "^17.0.2",
9995
"react-dom": "^17.0.2",
10096
"reactstrap": "^8.10.1",
@@ -118,7 +114,7 @@
118114
"reactstrap": "^8.0.0 || ^9.0.0"
119115
},
120116
"engines": {
121-
"node": ">=14"
117+
"node": ">=20"
122118
},
123119
"publishConfig": {
124120
"access": "public",

rollup.config.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import commonjs from "@rollup/plugin-commonjs";
2-
import nodeResolve from "@rollup/plugin-node-resolve";
2+
import nodeResolvePlugin from "@rollup/plugin-node-resolve";
33
import external from "rollup-plugin-peer-deps-external";
44
import terser from "@rollup/plugin-terser";
55
import typescript from "rollup-plugin-typescript2";
@@ -22,7 +22,7 @@ const plugins = [
2222
commonjs({
2323
include: /\/node_modules\//,
2424
}),
25-
nodeResolve(),
25+
nodeResolvePlugin(),
2626
terser({
2727
output: { comments: false },
2828
compress: {
@@ -41,7 +41,6 @@ export default [
4141
sourcemap: true,
4242
globals: { react: "React" },
4343
exports: "named",
44-
sourcemap: true,
4544
interop: "auto",
4645
},
4746
plugins,
@@ -55,7 +54,6 @@ export default [
5554
sourcemap: true,
5655
globals: { react: "React" },
5756
exports: "named",
58-
sourcemap: true,
5957
},
6058
plugins,
6159
},
@@ -68,7 +66,6 @@ export default [
6866
sourcemap: true,
6967
globals: { react: "React" },
7068
exports: "named",
71-
sourcemap: true,
7269
},
7370
plugins,
7471
},

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
export * from "./lib/translations/translations";
22
export * from "./lib/useReactDataTableState/useReactDataTableState";
3+
export * from "./lib/useReactDataTableState/useReactDataTableStateProps";
34
export * from "./lib/useReactDataTable/useReactDataTable";
5+
export * from "./lib/useReactDataTable/useReactDataTableProps";
6+
export * from "./lib/useReactDataTable/useReactDataTableResult";
47
export * from "./lib/ReactDataTable/ReactDataTable";
8+
export * from "./lib/ReactDataTable/ReactDataTableProps";
59
export * from "./lib/utils/getStronglyTypedColumnFilter";
610
export * from "./lib/useFullyControlledReactDataTable/useFullyControlledReactDataTable";
711
export * from "./lib/utils/createReactDataTableColumnHelper";

0 commit comments

Comments
 (0)