Skip to content

Commit

Permalink
Merge pull request #253 from shelfio/feature/OPS-4833-upgrade-eslint
Browse files Browse the repository at this point in the history
OPS-4833 Upgrade eslint
  • Loading branch information
yuriiLevantovych authored Dec 18, 2024
2 parents 8502a48 + a158c07 commit 20c1f4a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import rules from '@shelf/eslint-config/typescript.js';

export default [
...rules,
{files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.json']},
{
ignores: ['**/node_modules/', '**/coverage/', '**/lib/', 'renovate.json', 'tsconfig.json'],
},
];
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"scripts": {
"build": "tsc",
"coverage": "yarn test --coverage",
"lint": "eslint . --ext .js,.ts,.json --fix --quiet",
"lint:ci": "eslint . --ext .js,.ts,.json --quiet",
"lint": "yarn lint:ci --fix",
"lint:ci": "eslint . --quiet",
"test": "TZ=UTC jest src -c jest.config.unit.js",
"test:es": "DEBUG=elasticsearch-local TZ=UTC jest src -c jest.config.es.js --forceExit",
"type-check": "tsc --noEmit",
Expand All @@ -50,14 +50,14 @@
"devDependencies": {
"@elastic/elasticsearch": "8.17.0",
"@shelf/babel-config": "3.0.0",
"@shelf/eslint-config": "3.15.1",
"@shelf/eslint-config": "4.2.1",
"@shelf/jest-elasticsearch": "5.2.0",
"@shelf/prettier-config": "1.0.0",
"@types/flat": "5.0.5",
"@types/jest": "29.5.14",
"@types/node": "18",
"babel-jest": "29.7.0",
"eslint": "8.57.1",
"eslint": "9.17.0",
"husky": "9.1.7",
"jest": "29.7.0",
"lint-staged": "15.2.11",
Expand Down

0 comments on commit 20c1f4a

Please sign in to comment.