Skip to content

Commit 1a78ea1

Browse files
committed
Upgrade to node 20, eslint 9, flat config, etc
1 parent 04a0ef9 commit 1a78ea1

24 files changed

+2164
-1572
lines changed

.eslintignore

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

.eslintrc.js

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

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [16.x, 18.x]
18+
node-version: [18.x, 20.x]
1919

2020
steps:
2121
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,6 @@ dist
102102

103103
# TernJS port file
104104
.tern-port
105+
106+
# OS junk
107+
.DS_Store

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ Agile Digital's standard ESLint config
1111

1212
```sh
1313
yarn add --dev @agiledigital/eslint-config \
14-
eslint-config-typed-fp \
15-
@typescript-eslint/eslint-plugin \
16-
@typescript-eslint/parser \
14+
@eslint/compat \
15+
@eslint/eslintrc \
16+
typescript-eslint \
1717
eslint \
1818
eslint-plugin-functional \
19-
eslint-plugin-total-functions \
2019
eslint-plugin-jest \
2120
eslint-plugin-prettier \
2221
eslint-plugin-sonarjs \
23-
eslint-plugin-import \
22+
eslint-plugin-import-x \
2423
eslint-plugin-simple-import-sort \
2524
eslint-plugin-filename-rules \
2625
eslint-plugin-jsdoc \

base-react.js

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

base-react.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// FIXME why is this rule triggered here?
2+
// eslint-disable-next-line import-x/no-unresolved
3+
import tseslint from "typescript-eslint";
4+
import base from "./index.mjs";
5+
import react from "./react.mjs";
6+
// This lint config is used for test the combination of base and react config.
7+
// It only extends settings from base and react eslint config.
8+
// eslint-disable-next-line functional/prefer-immutable-types
9+
const config = tseslint.config({
10+
extends: [...base, ...react],
11+
});
12+
export default config;

base-react.mts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// FIXME why is this rule triggered here?
2+
// eslint-disable-next-line import-x/no-unresolved
3+
import tseslint from "typescript-eslint";
4+
import base from "./index.mjs";
5+
import react from "./react.mjs";
6+
7+
// This lint config is used for test the combination of base and react config.
8+
// It only extends settings from base and react eslint config.
9+
10+
// eslint-disable-next-line functional/prefer-immutable-types
11+
const config = tseslint.config({
12+
extends: [...base, ...react],
13+
});
14+
15+
export default config;

base-react.ts

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

0 commit comments

Comments
 (0)