Skip to content

Commit e30505b

Browse files
chore: OPS-4837 upgrade eslint
1 parent 6145628 commit e30505b

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
parameters:
77
node_version:
88
type: string
9-
default: '18.18.2'
9+
default: '20.18.1'
1010

1111
commands:
1212
install_deps:

.eslintignore

-4
This file was deleted.

.eslintrc

-6
This file was deleted.

eslint.config.mjs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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: ['**/node_modules/', '**/coverage/', '**/lib/', 'renovate.json', 'tsconfig.json'],
8+
},
9+
];

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build": "rm -rf lib/ && tsc",
2222
"coverage": "yarn test --coverage",
2323
"lint": "yarn lint:ci --fix",
24-
"lint:ci": "eslint . --ext .js,.ts,.json",
24+
"lint:ci": "eslint . --quiet",
2525
"prepack": "yarn build",
2626
"test": "TZ=UTC jest src",
2727
"type-check": "tsc --noEmit",
@@ -38,7 +38,7 @@
3838
"prettier": "@shelf/prettier-config",
3939
"dependencies": {},
4040
"devDependencies": {
41-
"@shelf/eslint-config": "3.15.1",
41+
"@shelf/eslint-config": "4.2.1",
4242
"@shelf/prettier-config": "1.0.0",
4343
"@shelf/tsconfig": "0.1.0",
4444
"@swc/core": "1.10.1",
@@ -47,7 +47,7 @@
4747
"@types/node": "16",
4848
"@types/uslug": "1.0.4",
4949
"benny": "3.7.1",
50-
"eslint": "8.57.1",
50+
"eslint": "9.17.0",
5151
"fast-lorem-ipsum": "1.2.0",
5252
"husky": "9.1.7",
5353
"jest": "29.7.0",
@@ -60,7 +60,7 @@
6060
"uslug": "1.0.4"
6161
},
6262
"engines": {
63-
"node": ">=18"
63+
"node": ">=20"
6464
},
6565
"publishConfig": {
6666
"access": "public"

0 commit comments

Comments
 (0)