@dvukovic/style-guide 0.3.39 → 0.3.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvukovic/style-guide",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
4
4
  "description": "My own style guide",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,33 +30,32 @@
30
30
  "release": "release-it"
31
31
  },
32
32
  "dependencies": {
33
- "@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
33
+ "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
34
34
  "@graphql-eslint/eslint-plugin": "3.20.1",
35
- "@next/eslint-plugin-next": "14.2.5",
35
+ "@next/eslint-plugin-next": "15.0.3",
36
36
  "@prettier/plugin-xml": "3.4.1",
37
37
  "@rimac-technology/eslint-plugin": "1.5.0",
38
- "@stylistic/eslint-plugin": "2.6.4",
38
+ "@stylistic/eslint-plugin": "2.10.1",
39
39
  "@typescript-eslint/parser": "7.18.0",
40
40
  "eslint-plugin-etc": "2.0.3",
41
- "eslint-plugin-import-x": "3.1.0",
42
- "eslint-plugin-jest": "28.6.0",
43
- "eslint-plugin-jest-formatting": "3.1.0",
44
- "eslint-plugin-mobx": "0.0.11",
45
- "eslint-plugin-n": "17.10.2",
46
- "eslint-plugin-promise": "7.0.0",
47
- "eslint-plugin-react": "7.35.0",
48
- "eslint-plugin-react-hooks": "4.6.2",
41
+ "eslint-plugin-import-x": "4.4.2",
42
+ "eslint-plugin-jest": "28.9.0",
43
+ "eslint-plugin-mobx": "0.0.13",
44
+ "eslint-plugin-n": "17.13.1",
45
+ "eslint-plugin-promise": "7.1.0",
46
+ "eslint-plugin-react": "7.37.2",
47
+ "eslint-plugin-react-hooks": "5.0.0",
49
48
  "eslint-plugin-security-node": "1.1.4",
50
49
  "eslint-plugin-simple-import-sort": "12.1.1",
51
50
  "eslint-plugin-sonarjs": "1.0.4",
52
51
  "eslint-plugin-sort-destructure-keys": "2.0.0",
53
52
  "eslint-plugin-sort-keys-fix": "1.1.2",
54
- "eslint-plugin-typescript-sort-keys": "3.2.0",
55
- "eslint-plugin-unicorn": "55.0.0",
56
- "eslint-plugin-unused-imports": "4.1.3",
53
+ "eslint-plugin-typescript-sort-keys": "3.3.0",
54
+ "eslint-plugin-unicorn": "56.0.0",
55
+ "eslint-plugin-unused-imports": "4.1.4",
57
56
  "prettier-plugin-embed": "0.4.15",
58
57
  "prettier-plugin-jsdoc": "1.3.0",
59
- "prettier-plugin-packagejson": "2.5.1",
58
+ "prettier-plugin-packagejson": "2.5.3",
60
59
  "prettier-plugin-prisma": "5.0.0",
61
60
  "prettier-plugin-sh": "0.14.0",
62
61
  "prettier-plugin-sql": "0.18.1",
@@ -65,20 +64,20 @@
65
64
  "typescript-eslint": "7.18.0"
66
65
  },
67
66
  "devDependencies": {
68
- "@types/eslint": "8.56.11",
69
- "@types/jest": "29.5.12",
70
- "@types/node": "20.16.1",
71
- "@types/react": "18.3.3",
72
- "cspell": "8.14.1",
73
- "eslint": "8.57.0",
67
+ "@types/eslint": "8.56.12",
68
+ "@types/jest": "29.5.14",
69
+ "@types/node": "22.9.0",
70
+ "@types/react": "18.3.12",
71
+ "cspell": "8.16.0",
72
+ "eslint": "8.57.1",
74
73
  "graphql": "16.9.0",
75
74
  "jest": "29.7.0",
76
75
  "npm-package-json-lint": "8.0.0",
77
76
  "prettier": "3.3.3",
78
77
  "react": "18.3.1",
79
- "release-it": "17.6.0",
80
- "stylelint": "16.8.2",
81
- "typescript": "5.5.4"
78
+ "release-it": "17.10.0",
79
+ "stylelint": "16.10.0",
80
+ "typescript": "5.6.3"
82
81
  },
83
82
  "peerDependencies": {
84
83
  "cspell": "8",
@@ -104,7 +103,7 @@
104
103
  "optional": true
105
104
  }
106
105
  },
107
- "packageManager": "yarn@4.5.0",
106
+ "packageManager": "yarn@4.5.1",
108
107
  "engines": {
109
108
  "node": ">=20.0.0"
110
109
  },
@@ -1,4 +1,4 @@
1
1
  /** @type {import("@types/eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
- extends: ["../plugins/jest.js", "../plugins/jest-formatting.js"],
3
+ extends: ["../plugins/jest.js"],
4
4
  }
@@ -24,6 +24,13 @@ module.exports = {
24
24
  "jest/no-test-prefixes": "error",
25
25
  "jest/no-test-return-statement": "error",
26
26
  "jest/no-untyped-mock-factory": "error",
27
+ "jest/padding-around-after-all-blocks": "error",
28
+ "jest/padding-around-after-each-blocks": "error",
29
+ "jest/padding-around-before-all-blocks": "error",
30
+ "jest/padding-around-before-each-blocks": "error",
31
+ "jest/padding-around-describe-blocks": "error",
32
+ "jest/padding-around-expect-groups": "error",
33
+ "jest/padding-around-test-blocks": "error",
27
34
  "jest/prefer-called-with": "error",
28
35
  "jest/prefer-comparison-matcher": "error",
29
36
  "jest/prefer-each": "error",
@@ -7,6 +7,7 @@ module.exports = {
7
7
  "react/checked-requires-onchange-or-readonly": "error",
8
8
  "react/destructuring-assignment": "error",
9
9
  "react/display-name": "error",
10
+ "react/forward-ref-uses-ref": "error",
10
11
  "react/function-component-definition": [
11
12
  "error",
12
13
  {
@@ -7,6 +7,7 @@ module.exports = {
7
7
  "unicorn/catch-error-name": "error",
8
8
  "unicorn/consistent-destructuring": "error",
9
9
  "unicorn/consistent-empty-array-spread": "error",
10
+ "unicorn/consistent-existence-index-check": "error",
10
11
  "unicorn/consistent-function-scoping": "error",
11
12
  "unicorn/custom-error-definition": "error",
12
13
  "unicorn/empty-brace-spaces": "error",
@@ -86,6 +87,7 @@ module.exports = {
86
87
  "unicorn/prefer-json-parse-buffer": "error",
87
88
  "unicorn/prefer-keyboard-event-key": "error",
88
89
  "unicorn/prefer-logical-operator-over-ternary": "error",
90
+ "unicorn/prefer-math-min-max": "error",
89
91
  "unicorn/prefer-math-trunc": "error",
90
92
  "unicorn/prefer-modern-dom-apis": "error",
91
93
  "unicorn/prefer-modern-math-apis": "error",
@@ -67,7 +67,6 @@ const packageJsonCore = {
67
67
  "require-license": "error",
68
68
  "require-name": "error",
69
69
  "require-repository": "error",
70
- "require-type": "error",
71
70
  "require-version": "error",
72
71
  "scripts-type": "error",
73
72
  "type-type": "error",
@@ -1,13 +0,0 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
2
- module.exports = {
3
- plugins: ["jest-formatting"],
4
- rules: {
5
- "jest-formatting/padding-around-after-all-blocks": "error",
6
- "jest-formatting/padding-around-after-each-blocks": "error",
7
- "jest-formatting/padding-around-before-all-blocks": "error",
8
- "jest-formatting/padding-around-before-each-blocks": "error",
9
- "jest-formatting/padding-around-describe-blocks": "error",
10
- "jest-formatting/padding-around-expect-groups": "error",
11
- "jest-formatting/padding-around-test-blocks": "error",
12
- },
13
- }