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 15e0dbe commit 9e4841a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
4 changes: 0 additions & 4 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 @@
"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",
"coverage": "jest --coverage",
"lint": "eslint . --fix --ext .js,.json,.ts --quiet",
"lint:ci": "eslint . --ext .js,.json,.ts --quiet",
"lint": "yarn lint:ci --fix",
"lint:ci": "eslint . --quiet",
"prepack": "yarn build",
"test": "jest src",
"type-check": "tsc --noEmit",
Expand All @@ -47,16 +47,16 @@
"@babel/cli": "7.26.4",
"@babel/core": "7.26.0",
"@shelf/babel-config": "1.0.2",
"@shelf/eslint-config": "2.18.0",
"@shelf/eslint-config": "4.2.1",
"@shelf/prettier-config": "1.0.0",
"@shelf/tsconfig": "0.0.6",
"@types/jest": "28.1.8",
"@types/node": "16",
"eslint": "8.57.1",
"eslint": "9.17.0",
"husky": "8.0.3",
"jest": "28.1.3",
"lint-staged": "13.3.0",
"prettier": "2.8.8",
"prettier": "3.4.2",
"typescript": "5.7.2"
},
"engines": {
Expand Down

0 comments on commit 9e4841a

Please sign in to comment.