Skip to content

Commit 5216dc3

Browse files
committed
refactor(eslint): update eslint config and remove peer deps
1 parent dd39c4b commit 5216dc3

18 files changed

Lines changed: 628 additions & 214 deletions

.eslintrc.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This is a patch so that eslint will load the plugins as dependencies. Otherwise we can to install EVERYTHING in th root project
2+
require('@rushstack/eslint-patch/modern-module-resolution');
3+
14
module.exports = {
25
parserOptions: {
36
project: 'tsconfig.json',

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
.cache
55
dist
66
.pnpm-debug.log*
7+
.eslintcache

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"build": "tsup",
1818
"start": "tsup --watch",
1919
"setup": "node setup-entrypoints.js && cp package.json dist",
20+
"format:all": "eslint --fix --cache .",
2021
"type-check": "tsc --pretty --noEmit"
2122
},
2223
"devDependencies": {
@@ -25,19 +26,10 @@
2526
"@material-ui/icons": "^4.11.2",
2627
"@material-ui/lab": "^4.0.0-alpha.60",
2728
"@squonk/data-manager-client": "^0.6.9-rc.1",
28-
"@squonk/eslint-config": "^0.2.0",
29+
"@squonk/eslint-config": "0.5.0",
2930
"@types/react": "^17.0.37",
30-
"@typescript-eslint/eslint-plugin": "^5.6.0",
31-
"@typescript-eslint/parser": "^5.6.0",
3231
"axios": "^0.24.0",
3332
"eslint": "^8.4.1",
34-
"eslint-config-prettier": "^8.3.0",
35-
"eslint-plugin-prettier": "^4.0.0",
36-
"eslint-plugin-react": "^7.27.1",
37-
"eslint-plugin-react-hooks": "^4.3.0",
38-
"eslint-plugin-simple-import-sort": "^7.0.0",
39-
"eslint-plugin-unused-imports": "^2.0.0",
40-
"prettier": "^2.5.1",
4133
"react": "^17.0.2",
4234
"react-dom": "^17.0.2",
4335
"react-query": "^3.34.2",

0 commit comments

Comments
 (0)