Skip to content

Commit

Permalink
feat(eslint): add newest unicorn rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mheob committed Dec 17, 2022
1 parent 15dd026 commit cf93440
Show file tree
Hide file tree
Showing 6 changed files with 439 additions and 304 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-rice-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mheob/eslint-config': minor
---

add newest rules from `eslint-plugin-unicorn`
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"changeset": "changeset",
"clean": "turbo run clean",
"clean:root": "rm -rf .turbo && rm -rf node_modules",
"format": "prettier --write \"**/*.{cjs,js,mjs,jsx,ts,tsx,json,md,mdx,yaml,yml}\"",
"format": "prettier --write .",
"lint": "turbo run lint",
"prepare": "ts-node ./scripts/prepare.ts",
"release": "changeset publish",
Expand All @@ -32,13 +32,13 @@
"@mheob/changeset-changelog": "^2.0.0",
"@mheob/eslint-config": "workspace:*",
"@mheob/prettier-config": "workspace:*",
"@types/node": "^18.11.11",
"eslint": "^8.29.0",
"@types/node": "^18.11.16",
"eslint": "^8.30.0",
"husky": "^8.0.2",
"lint-staged": "^13.1.0",
"prettier": "^2.8.0",
"prettier": "^2.8.1",
"ts-node": "^10.9.1",
"turbo": "^1.6.3",
"typescript": "^4.9.3"
"typescript": "^4.9.4"
}
}
14 changes: 7 additions & 7 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@
"sort-package-json": "pnpm dlx sort-package-json"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.45.1",
"@typescript-eslint/parser": "^5.45.1",
"eslint-config-next": "^13.0.6",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"eslint-config-next": "^13.0.7",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-unicorn": "^44.0.2"
"eslint-plugin-unicorn": "^45.0.2"
},
"devDependencies": {
"@mheob/tsconfig": "workspace:*",
"@types/eslint": "^8.4.10",
"eslint": "^8.29.0",
"prettier": "^2.8.0",
"typescript": "^4.9.3"
"eslint": "^8.30.0",
"prettier": "^2.8.1",
"typescript": "^4.9.4"
},
"peerDependencies": {
"eslint": "^8.29.0",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const config: Linter.Config = {
'unicorn/import-index': 'error',
'unicorn/no-array-for-each': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/no-negated-condition': 'off',
'unicorn/prevent-abbreviations': [
'error',
{
Expand Down
4 changes: 2 additions & 2 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"@mheob/eslint-config": "workspace:*",
"@mheob/tsconfig": "workspace:*",
"@types/prettier": "^2.7.1",
"eslint": "^8.29.0",
"prettier": "^2.8.0"
"eslint": "^8.30.0",
"prettier": "^2.8.1"
},
"peerDependencies": {
"prettier": "^2.8.0"
Expand Down

0 comments on commit cf93440

Please sign in to comment.