Skip to content

Commit

Permalink
chore: update to latest deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvukhzhilov committed Dec 20, 2023
1 parent c95a410 commit cedde28
Show file tree
Hide file tree
Showing 10 changed files with 578 additions and 561 deletions.
7 changes: 7 additions & 0 deletions .changeset/forty-queens-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@qameta/eslint-config-react": major
---

Migrated to latest typescript
Updated deps to latest
Scoped test-related rules to spec files
6 changes: 6 additions & 0 deletions .changeset/real-buckets-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@qameta/eslint-config": major
---

Migrated to latest typescript
Updated dependencies to latest
5 changes: 5 additions & 0 deletions .changeset/two-cherries-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@qameta/prettier-config": major
---

Migrated to latest prettier version
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
"homepage": "https://github.com/qameta/fe-core#readme",
"license": "MIT",
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@qameta/eslint-config": "workspace:*",
"@qameta/eslint-config-react": "workspace:*",
"@qameta/prettier-config": "workspace:*",
"@qameta/tsconfig": "workspace:*",
"@rushstack/eslint-patch": "^1.1.1",
"@types/eslint": "^7.17.0",
"eslint": "^7.17.0",
"typescript": "^4.3.5"
"@types/eslint": "^8.56.0",
"eslint": "^8.56.0",
"prettier": "^3.1.1",
"typescript": "^5.3.3"
}
}
16 changes: 9 additions & 7 deletions packages/eslint-config-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
* @type {import("eslint").Linter.Config}
*/
module.exports = {
extends: ["plugin:jest-dom/recommended", "plugin:testing-library/react"],
plugins: [
"eslint-plugin-jest-dom",
"eslint-plugin-react",
"eslint-plugin-testing-library",
"react-hooks",
],
extends: [],
plugins: ["eslint-plugin-react", "react-hooks"],
rules: {
"react/jsx-curly-brace-presence": ["error", { props: "never", children: "never" }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
},
overrides: [
{
files: ["**/*.{spec,test}.{ts,tsx,js,jsx}"],
extends: ["plugin:testing-library/react", "plugin:jest-dom/recommended"],
plugins: ["eslint-plugin-jest-dom", "eslint-plugin-testing-library"],
},
],
};
12 changes: 6 additions & 6 deletions packages/eslint-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"author": "Qameta Software",
"license": "MIT",
"devDependencies": {
"eslint": "^7.17.0",
"typescript": "^4.3.5"
"eslint": "^8",
"typescript": "^5"
},
"dependencies": {
"eslint-plugin-jest-dom": "^3.9.0",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^4.6.0"
"eslint-plugin-jest-dom": "^5",
"eslint-plugin-react": "^7",
"eslint-plugin-react-hooks": "^4",
"eslint-plugin-testing-library": "^6"
},
"repository": "https://github.com/qameta/fe-core"
}
11 changes: 10 additions & 1 deletion packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,16 @@ module.exports = {
next: "return",
},
],
"prefer-arrow/prefer-arrow-functions": "error",
"prefer-arrow-functions/prefer-arrow-functions": [
"error",
{
allowNamedFunctions: true,
classPropertiesAllowed: false,
disallowPrototype: true,
returnStyle: "unchanged",
singleReturnOnly: false,
},
],
"prefer-const": "error",
"prefer-template": "error",
"quote-props": ["error", "consistent-as-needed"],
Expand Down
18 changes: 9 additions & 9 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"author": "Qameta Software",
"license": "MIT",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.2",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.7.7",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.2.2"
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"eslint-config-prettier": "^9",
"eslint-plugin-import": "^2",
"eslint-plugin-jsdoc": "^46",
"eslint-plugin-no-null": "^1",
"eslint-plugin-prefer-arrow": "^1"
},
"devDependencies": {
"eslint": "^7.17.0",
"typescript": "^4.3.5"
"eslint": "^8",
"typescript": "^5"
},
"repository": "https://github.com/qameta/fe-core"
}
5 changes: 1 addition & 4 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@
"main": "index.js",
"author": "Qameta Software",
"license": "MIT",
"repository": "https://github.com/qameta/fe-core",
"devDependencies": {
"@types/prettier": "^2.7.3"
}
"repository": "https://github.com/qameta/fe-core"
}
Loading

0 comments on commit cedde28

Please sign in to comment.