Skip to content

Commit 2e37e63

Browse files
authored
Merge pull request #119 from shelfio/feature/OPS-4841-eslint-9x
OPS-4841 Upgrade ESLint to 9x
2 parents c4c654b + 38764c4 commit 2e37e63

File tree

7 files changed

+31
-21
lines changed

7 files changed

+31
-21
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
parameters:
77
node_version:
88
type: string
9-
default: '16.15.1-browsers'
9+
default: '18.20.5-browsers'
1010

1111
commands:
1212
install_deps:

.eslintignore

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

.eslintrc

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

eslint.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import rules from '@shelf/eslint-config/typescript.js';
2+
3+
export default [
4+
...rules,
5+
{files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.json']},
6+
{
7+
ignores: [
8+
'.idea/',
9+
'coverage/',
10+
'draft.js',
11+
'lib/',
12+
'dist/',
13+
'node_modules/',
14+
'packages/**/tsconfig.types.json',
15+
'packages/**/node_modules/**',
16+
'packages/**/lib/**',
17+
'renovate.json',
18+
],
19+
},
20+
];

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib",
2020
"coverage": "yarn test --coverage",
2121
"lint": "yarn lint:ci --fix",
22-
"lint:ci": "eslint . --ext .js,.ts,.json",
22+
"lint:ci": "eslint . --quiet",
2323
"prepack": "yarn build",
2424
"test": "export ENVIRONMENT=local && jest src",
2525
"type-check": "tsc --noEmit",
@@ -49,26 +49,26 @@
4949
"@babel/cli": "7.24.8",
5050
"@babel/core": "7.25.2",
5151
"@shelf/babel-config": "1.0.2",
52-
"@shelf/eslint-config": "2.18.0",
52+
"@shelf/eslint-config": "4.2.1",
5353
"@shelf/jest-dynamodb": "3.4.1",
5454
"@shelf/prettier-config": "1.0.0",
5555
"@shelf/tsconfig": "0.0.11",
5656
"@types/jest": "28.1.8",
5757
"@types/lodash": "4.17.7",
58-
"@types/node": "16",
59-
"eslint": "8.57.0",
58+
"@types/node": "18",
59+
"eslint": "9.17.0",
6060
"husky": "8.0.3",
6161
"jest": "28.1.3",
6262
"lint-staged": "13.3.0",
63-
"prettier": "2.8.8",
63+
"prettier": "3.4.2",
6464
"typescript": "4.9.5"
6565
},
6666
"peerDependencies": {
6767
"@aws-sdk/client-dynamodb": "3.x.x",
6868
"@aws-sdk/lib-dynamodb": "3.x.x"
6969
},
7070
"engines": {
71-
"node": ">=16"
71+
"node": ">=18"
7272
},
7373
"publishConfig": {
7474
"access": "public"

src/helpers/delete-all.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import {ScanCommand} from '@aws-sdk/lib-dynamodb';
2+
import {chunk} from 'lodash';
13
import type {
24
BatchWriteCommandInput,
35
BatchWriteCommandOutput,
46
ScanCommandInput,
57
} from '@aws-sdk/lib-dynamodb';
68
import type {AttributeValue, WriteRequest} from '@aws-sdk/client-dynamodb';
7-
import {ScanCommand} from '@aws-sdk/lib-dynamodb';
8-
import {chunk} from 'lodash';
99
import {ddb} from './ddb';
1010
import {batchWrite} from './insert-many';
1111

src/helpers/insert-many.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type {BatchWriteCommandInput, BatchWriteCommandOutput} from '@aws-sdk/lib-dynamodb';
2-
import type {AttributeValue, WriteRequest} from '@aws-sdk/client-dynamodb';
31
import {BatchWriteCommand} from '@aws-sdk/lib-dynamodb';
42
import {chunk} from 'lodash';
53
import pMap from 'p-map';
4+
import type {AttributeValue, WriteRequest} from '@aws-sdk/client-dynamodb';
5+
import type {BatchWriteCommandInput, BatchWriteCommandOutput} from '@aws-sdk/lib-dynamodb';
66
import {ddb} from './ddb';
77

88
type InsertManyParams = {

0 commit comments

Comments
 (0)