Skip to content

Commit 6ca8779

Browse files
committed
feat: OPS-4841 Update ESLint configuration
1 parent ba47c8b commit 6ca8779

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

.eslintignore

-5
This file was deleted.

.eslintrc

-9
This file was deleted.

eslint.config.mjs

+20
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

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"build:code": "node esbuild.js",
3232
"build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib",
3333
"coverage": "yarn test --coverage",
34-
"lint": "eslint . --ext .js,.ts,.json --fix",
35-
"lint:ci": "eslint . --ext .js,.ts,.json",
34+
"lint": "yarn lint:ci --fix",
35+
"lint:ci": "eslint . --quiet",
3636
"prepack": "yarn build",
3737
"test": "jest src --runInBand",
3838
"type-check": "tsc --noEmit",
@@ -56,7 +56,7 @@
5656
"wait-for-localhost": "3.3.0"
5757
},
5858
"devDependencies": {
59-
"@shelf/eslint-config": "3.15.1",
59+
"@shelf/eslint-config": "4.2.1",
6060
"@shelf/prettier-config": "1.0.0",
6161
"@shelf/tsconfig": "0.1.0",
6262
"@swc/core": "1.7.11",
@@ -67,7 +67,7 @@
6767
"@types/js-yaml": "4.0.9",
6868
"@types/node": "18",
6969
"esbuild": "0.23.1",
70-
"eslint": "8.57.1",
70+
"eslint": "9.17.0",
7171
"husky": "9.1.4",
7272
"jest": "29.7.0",
7373
"lint-staged": "15.2.11",

0 commit comments

Comments
 (0)