Skip to content

Commit

Permalink
feat: OPS-4841 Update ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
whodeen authored and vladholubiev committed Dec 19, 2024
1 parent e240e97 commit 34f6126
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

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

export default [
...rules,
{files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.json']},
{
ignores: [
'.idea/',
'coverage/',
'draft.js',
'lib/',
'dist/',
'node_modules/',
'packages/**/tsconfig.types.json',
'packages/**/node_modules/**',
'packages/**/lib/**',
'renovate.json',
],
},
];
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build": "rm -rf lib/ && tsc",
"coverage": "yarn test --coverage",
"lint": "yarn lint:ci --fix",
"lint:ci": "eslint . --ext .js,.ts,.json",
"lint:ci": "eslint . --quiet",
"lint:size": "size-limit",
"prepack": "yarn build",
"test": "NODE_OPTIONS=--experimental-vm-modules jest src",
Expand All @@ -38,14 +38,14 @@
"natural-orderby": "3.0.2"
},
"devDependencies": {
"@shelf/eslint-config": "3.10.0",
"@shelf/eslint-config": "4.2.1",
"@shelf/prettier-config": "1.0.0",
"@shelf/tsconfig": "0.1.0",
"@size-limit/preset-small-lib": "10.0.3",
"@types/jest": "29.5.14",
"@types/node": "18",
"benny": "3.7.1",
"eslint": "8.57.1",
"eslint": "9.17.0",
"husky": "8.0.3",
"jest": "29.7.0",
"lint-staged": "15.2.11",
Expand Down

0 comments on commit 34f6126

Please sign in to comment.