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 committed Dec 19, 2024
1 parent 006bfbb commit 72458c6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 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',
],
},
];
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"scripts": {
"build": "rm -rf lib/ && yarn build:types && babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts'",
"build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib",
"lint": "eslint . --ext .js,.ts,.json --fix",
"lint:ci": "eslint . --ext .js,.ts,.json",
"lint": "yarn lint:ci --fix",
"lint:ci": "eslint . --quiet",
"prepack": "yarn build",
"test": "jest",
"test:repl": "MONGO_MEMORY_SERVER_FILE=jest-mongodb-config-repl.js jest",
Expand Down Expand Up @@ -54,18 +54,18 @@
"@babel/cli": "7.24.8",
"@babel/core": "7.25.2",
"@shelf/babel-config": "1.2.0",
"@shelf/eslint-config": "2.27.1",
"@shelf/eslint-config": "4.2.1",
"@shelf/prettier-config": "1.0.0",
"@shelf/tsconfig": "0.1.0",
"@types/jest": "29.5.12",
"@types/node": "16",
"eslint": "8.57.0",
"eslint": "9.17.0",
"husky": "9.0.11",
"jest": "29.7.0",
"jest-environment-node": "29.6.4",
"lint-staged": "13.3.0",
"mongodb": "6.3.0",
"prettier": "2.8.8",
"prettier": "3.4.2",
"typescript": "5.5.4"
},
"peerDependencies": {
Expand Down

0 comments on commit 72458c6

Please sign in to comment.