Skip to content

Commit

Permalink
Merge pull request #399 from Shopify/update-eslint
Browse files Browse the repository at this point in the history
update eslint plugins
  • Loading branch information
m4thieulavoie committed Aug 9, 2023
2 parents 268e5a2 + b821f24 commit 5149cf4
Show file tree
Hide file tree
Showing 7 changed files with 1,706 additions and 1,309 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-gorillas-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/eslint-plugin': major
---

upgrade @typescript-eslint and eslint plugins and drop support for node 14
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: ['14.x', '16.x', '18.x']
node-version: ['16.x', '18.x', '20.x']
timeout-minutes: 10

steps:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"tophat": "tophat"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.7",
"@changesets/cli": "^2.25.0",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@shopify/tophat": "^0.0.4",
"@types/jest": "^26.0.24",
"eslint": "^8.3.0",
"fs-extra": "^9.0.0",
"glob": "^7.1.6",
"jest": "^27.0.6",
"jest": "^29.6.2",
"plop": "^2.6.0",
"prettier": "^3.0.1",
"watchpack": "^2.2.0"
Expand Down
2 changes: 0 additions & 2 deletions packages/eslint-plugin/lib/config/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ module.exports = {
'jest/no-test-return-statement': 'error',
// Enforce lowercase test names
'jest/prefer-lowercase-title': ['error', {ignore: ['describe']}],
// Disallow importing Jest
'jest/no-jest-import': 'error',
// Disallow alias methods
'jest/no-alias-methods': 'error',
// Disallow setup and teardown hooks
Expand Down
20 changes: 10 additions & 10 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@
"dependencies": {
"@babel/eslint-parser": "^7.16.3",
"@babel/eslint-plugin": "^7.14.5",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"change-case": "^4.1.2",
"common-tags": "^1.8.2",
"doctrine": "^2.1.0",
"eslint-config-prettier": "^8.10.0",
"eslint-module-utils": "^2.7.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.5.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-sort-class-members": "^1.14.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-sort-class-members": "^1.18.0",
"jsx-ast-utils": "^3.2.1",
"pkg-dir": "^5.0.0",
"pluralize": "^8.0.0"
Expand All @@ -54,6 +54,6 @@
},
"devDependencies": {
"react": "^16.13.1",
"typescript": "^3.9.2"
"typescript": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-plugin/tests/lib/config/typescript.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('config', () => {
);

expect(esLintOutput).toStrictEqual(
expect.stringContaining('2 problems (2 errors, 0 warnings)'),
expect.stringContaining('3 problems (3 errors, 0 warnings)'),
);

// import/no-cycle error
Expand Down

0 comments on commit 5149cf4

Please sign in to comment.