Skip to content

Commit

Permalink
feat: bump dependencies and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CannyDub committed May 9, 2024
1 parent dfc1448 commit dd2db54
Show file tree
Hide file tree
Showing 17 changed files with 921 additions and 1,365 deletions.
21 changes: 21 additions & 0 deletions .changeset/proud-ravens-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
"@infinum/eslint-plugin": major
---

Bumped dependencies and fixed tests:
- Bumped peer dependencies:
- "@next/eslint-plugin-next": "~14.2.0",
- "@typescript-eslint/eslint-plugin": "~7.8.0",
- "@typescript-eslint/parser": "~7.8.0",
- "eslint": "^8.57.0",
- "eslint-plugin-jsx-a11y": "~6.8.0",
- "eslint-plugin-react": "~7.34.0",
- "eslint-plugin-react-hooks": "~4.6.0",
- "eslint-plugin-rxjs": "~5.0.3",
- "typescript": ">=3.3.1"
- Bumped dev dependencies
- Fixed tests for the new parser version
- Updated `tsconfig.json` for `NodeNext`
- Updated `no-underscore-dangle` to allow after `this.*`
- Updated `@typescript-eslint/no-unused-vars` to allow in `...rest` siblings
- Improved `tsconfig` files for local development
16 changes: 0 additions & 16 deletions .changeset/seven-rockets-double.md

This file was deleted.

12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@ Add this to you `eslint` config:
Install the following packages:

```bash
npm install --save-dev eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y @typescript-eslint/eslint-plugin@5 @typescript-eslint/parser@5 @infinum/eslint-plugin @next/eslint-plugin-next eslint-plugin-chakra-ui
npm install -D -E \
@infinum/eslint-plugin@2 \
eslint-plugin-react@7.34 \
eslint-plugin-react-hooks@4.6 \
eslint-plugin-jsx-a11y@6.8 \
@typescript-eslint/eslint-plugin@7.8 \
@typescript-eslint/parser@7.8 \
@next/eslint-plugin-next@14.2 \
eslint-plugin-chakra-ui@0.11
```

> 💡 NOTE: We are locking `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` packages to version `5` until this issue is resolved: https://github.com/infinum/js-linters/issues/117
Add this to you `eslint` config:

```json
Expand Down
72 changes: 37 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@
"*.{js,scss,md,ts,component.html}": "npm run format"
},
"peerDependencies": {
"@next/eslint-plugin-next": "^11.0.0 || ^12.0.0 || ^13.0.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.0",
"eslint-plugin-jsx-a11y": "^6.0.0",
"eslint-plugin-react": "^7.0.0",
"eslint-plugin-react-hooks": "^4.0.0",
"eslint-plugin-rxjs": "^3.0.0 || ^4.0.0 || ^5.0.0",
"typescript": "^3.3.0 || ^4.0.0 || ^5.0.0"
"@next/eslint-plugin-next": "~14.2.0",
"@typescript-eslint/eslint-plugin": "~7.8.0",
"@typescript-eslint/parser": "~7.8.0",
"eslint": "^8.57.0",
"eslint-plugin-chakra-ui": "~0.11.0",
"eslint-plugin-jsx-a11y": "~6.8.0",
"eslint-plugin-react": "~7.34.0",
"eslint-plugin-react-hooks": "~4.6.0",
"eslint-plugin-rxjs": "~5.0.3",
"typescript": ">=3.3.1"
},
"peerDependenciesMeta": {
"@next/eslint-plugin-next": {
Expand All @@ -71,39 +72,40 @@
"eslint-plugin-rxjs": {
"optional": true
},
"eslint-plugin-chakra-ui": {
"optional": true
},
"typescript": {
"optional": true
}
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "~2.26.2",
"@commitlint/cli": "~17.6.6",
"@commitlint/config-conventional": "~17.6.6",
"@changesets/cli": "2.27.1",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@infinum/eslint-plugin": "workspace:*",
"@manypkg/cli": "^0.19.1",
"@next/eslint-plugin-next": ">=11",
"@trivago/prettier-plugin-sort-imports": "~4.1.1",
"@types/node": "20.12.11",
"@typescript-eslint/eslint-plugin": "^5",
"@typescript-eslint/parser": "5.60.1",
"@typescript-eslint/utils": "5.60.1",
"esbuild": "~0.18.10",
"esbuild-register": "~3.4.2",
"eslint": "8.14.0",
"eslint-config-prettier": "8.10.0",
"eslint-plugin-jasmine": ">=4",
"eslint-plugin-jsx-a11y": ">=6",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": ">=7",
"eslint-plugin-react-hooks": ">=4",
"eslint-plugin-rxjs": ">=3",
"husky": "^8.0.1",
"lint-staged": "^12.4.2",
"@next/eslint-plugin-next": "14.2.3",
"@types/node": "20.12.7",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"@typescript-eslint/rule-tester": "7.8.0",
"@typescript-eslint/utils": "7.8.0",
"esbuild-register": "3.5.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jasmine": "4.1.3",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-rxjs": "5.0.3",
"husky": "9.0.11",
"lint-staged": "15.2.2",
"plop": "~3.1.2",
"prettier": "2.8.8",
"typescript": "5.0",
"uvu": "^0.5.6",
"watchlist": "~0.3.1"
"prettier": "3.2.5",
"typescript": "5.4.5",
"uvu": "0.5.6",
"watchlist": "0.3.1"
}
}
4 changes: 2 additions & 2 deletions plop/rule/test.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import rule from '../../src/rules/{{kebabCase name}}';
import { ESLintUtils } from '@typescript-eslint/utils';
import { RuleTester } from '@typescript-eslint/rule-tester';
import { test } from 'uvu';

const ruleTester = new ESLintUtils.RuleTester({
const ruleTester = new RuleTester({
parser: '@typescript-eslint/parser',
});

Expand Down
Loading

0 comments on commit dd2db54

Please sign in to comment.