Skip to content

Commit

Permalink
fix: add dedicated eslint config to get around tsdx
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 14, 2024
1 parent ee0027b commit ece1fe8
Show file tree
Hide file tree
Showing 3 changed files with 614 additions and 49 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"root": true,
"env": {
"node": true,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"prettier"
],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true,
"tsconfigRootDir": "."
},
"rules": {
"@typescript-eslint/no-duplicate-enum-values": "off"
}
}
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
},
"scripts": {
"start": "tsdx watch",
"build": "pnpm clean && tsdx build",
"prebuild": "pnpm clean && pnpm lint:fix",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
"lint": "tsdx lint",
"lint:fix": "tsdx lint --fix",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepare": "husky",
"size": "size-limit",
"analyze": "size-limit --why",
Expand Down Expand Up @@ -59,9 +60,13 @@
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@size-limit/preset-small-lib": "^11.0.2",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"all-contributors-cli": "^6.20.0",
"cz-conventional-changelog": "3.3.0",
"doctoc": "^2.1.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"rimraf": "^5.0.5",
Expand Down
Loading

0 comments on commit ece1fe8

Please sign in to comment.