@dvukovic/style-guide 0.3.57 → 0.3.59

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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/package.json +25 -25
  3. package/src/eslint/configs/core.js +1 -1
  4. package/src/eslint/configs/jest.js +1 -1
  5. package/src/eslint/configs/mobx.js +1 -1
  6. package/src/eslint/configs/next.js +1 -1
  7. package/src/eslint/configs/node.js +1 -1
  8. package/src/eslint/configs/playwright.js +1 -1
  9. package/src/eslint/configs/react.js +1 -1
  10. package/src/eslint/configs/typescript-strict.js +1 -1
  11. package/src/eslint/configs/typescript.js +1 -1
  12. package/src/eslint/configs/vitest.js +1 -1
  13. package/src/eslint/plugins/eslint-comments.js +1 -1
  14. package/src/eslint/plugins/eslint.js +1 -1
  15. package/src/eslint/plugins/etc.js +1 -1
  16. package/src/eslint/plugins/import-x.js +1 -1
  17. package/src/eslint/plugins/jest.js +1 -1
  18. package/src/eslint/plugins/mobx.js +1 -1
  19. package/src/eslint/plugins/n.js +1 -1
  20. package/src/eslint/plugins/next.js +1 -1
  21. package/src/eslint/plugins/playwright.js +2 -1
  22. package/src/eslint/plugins/promise.js +1 -1
  23. package/src/eslint/plugins/react-hooks.js +1 -1
  24. package/src/eslint/plugins/react.js +1 -1
  25. package/src/eslint/plugins/rimac.js +1 -1
  26. package/src/eslint/plugins/security-node.js +1 -1
  27. package/src/eslint/plugins/simple-import-sort.js +1 -1
  28. package/src/eslint/plugins/sonarjs.js +1 -1
  29. package/src/eslint/plugins/sort-destructure-keys.js +1 -1
  30. package/src/eslint/plugins/sort-keys-fix.js +1 -1
  31. package/src/eslint/plugins/stylistic.js +1 -1
  32. package/src/eslint/plugins/typescript-eslint.js +6 -1
  33. package/src/eslint/plugins/typescript-sort-keys.js +1 -1
  34. package/src/eslint/plugins/unicorn.js +1 -1
  35. package/src/eslint/plugins/unused-imports.js +1 -1
  36. package/src/eslint/plugins/vitest.js +1 -1
  37. package/src/graphql/configs/core.js +1 -1
  38. package/src/graphql/plugins/graphql.js +1 -1
  39. package/src/stylelint/configs/core.js +1 -0
package/README.md CHANGED
@@ -36,7 +36,7 @@ add the following to `.gitignore`
36
36
  Create a `.eslintrc.js` in root with the following:
37
37
 
38
38
  ```javascript
39
- /** @type {import("@types/eslint").ESLint.ConfigData} */
39
+ /** @type {import("eslint").ESLint.ConfigData} */
40
40
  module.exports = {
41
41
  root: true,
42
42
  extends: [
@@ -80,7 +80,7 @@ module.exports = {
80
80
  If you need graphql config, everything has to be configured trough `overrides`
81
81
 
82
82
  ```javascript
83
- /** @type {import("@types/eslint").ESLint.ConfigData} */
83
+ /** @type {import("eslint").ESLint.ConfigData} */
84
84
  module.exports = {
85
85
  ignorePatterns: ["node_modules"],
86
86
  overrides: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvukovic/style-guide",
3
- "version": "0.3.57",
3
+ "version": "0.3.59",
4
4
  "description": "My own style guide",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,54 +32,54 @@
32
32
  "dependencies": {
33
33
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
34
34
  "@graphql-eslint/eslint-plugin": "3.20.1",
35
- "@next/eslint-plugin-next": "15.0.3",
35
+ "@next/eslint-plugin-next": "15.1.6",
36
36
  "@prettier/plugin-xml": "3.4.1",
37
37
  "@rimac-technology/eslint-plugin": "1.5.0",
38
- "@stylistic/eslint-plugin": "2.10.1",
39
- "@typescript-eslint/parser": "7.18.0",
40
- "@vitest/eslint-plugin": "1.1.24",
38
+ "@stylistic/eslint-plugin": "3.0.1",
39
+ "@typescript-eslint/parser": "8.23.0",
40
+ "@vitest/eslint-plugin": "1.1.25",
41
41
  "eslint-plugin-etc": "2.0.3",
42
- "eslint-plugin-import-x": "4.4.2",
43
- "eslint-plugin-jest": "28.9.0",
42
+ "eslint-plugin-import-x": "4.6.1",
43
+ "eslint-plugin-jest": "28.11.0",
44
44
  "eslint-plugin-mobx": "0.0.13",
45
- "eslint-plugin-n": "17.13.1",
46
- "eslint-plugin-playwright": "2.1.0",
47
- "eslint-plugin-promise": "7.1.0",
48
- "eslint-plugin-react": "7.37.2",
49
- "eslint-plugin-react-hooks": "5.0.0",
45
+ "eslint-plugin-n": "17.15.1",
46
+ "eslint-plugin-playwright": "2.2.0",
47
+ "eslint-plugin-promise": "7.2.1",
48
+ "eslint-plugin-react": "7.37.4",
49
+ "eslint-plugin-react-hooks": "5.1.0",
50
50
  "eslint-plugin-security-node": "1.1.4",
51
51
  "eslint-plugin-simple-import-sort": "12.1.1",
52
52
  "eslint-plugin-sonarjs": "1.0.4",
53
53
  "eslint-plugin-sort-destructure-keys": "2.0.0",
54
54
  "eslint-plugin-sort-keys-fix": "1.1.2",
55
55
  "eslint-plugin-typescript-sort-keys": "3.3.0",
56
- "eslint-plugin-unicorn": "56.0.0",
56
+ "eslint-plugin-unicorn": "56.0.1",
57
57
  "eslint-plugin-unused-imports": "4.1.4",
58
58
  "prettier-plugin-embed": "0.4.15",
59
- "prettier-plugin-jsdoc": "1.3.0",
60
- "prettier-plugin-packagejson": "2.5.3",
59
+ "prettier-plugin-jsdoc": "1.3.2",
60
+ "prettier-plugin-packagejson": "2.5.8",
61
61
  "prettier-plugin-prisma": "5.0.0",
62
62
  "prettier-plugin-sh": "0.14.0",
63
63
  "prettier-plugin-sql": "0.18.1",
64
64
  "prettier-plugin-toml": "2.0.1",
65
65
  "stylelint-order": "6.0.4",
66
- "typescript-eslint": "7.18.0"
66
+ "typescript-eslint": "8.23.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/eslint": "8.56.12",
70
70
  "@types/jest": "29.5.14",
71
- "@types/node": "22.9.0",
72
- "@types/react": "18.3.12",
73
- "cspell": "8.16.0",
71
+ "@types/node": "22.13.1",
72
+ "@types/react": "19.0.8",
73
+ "cspell": "8.17.3",
74
74
  "eslint": "8.57.1",
75
- "graphql": "16.9.0",
75
+ "graphql": "16.10.0",
76
76
  "jest": "29.7.0",
77
77
  "npm-package-json-lint": "8.0.0",
78
- "prettier": "3.3.3",
79
- "react": "18.3.1",
80
- "release-it": "17.10.0",
81
- "stylelint": "16.10.0",
82
- "typescript": "5.6.3"
78
+ "prettier": "3.4.2",
79
+ "react": "19.0.0",
80
+ "release-it": "18.1.2",
81
+ "stylelint": "16.14.1",
82
+ "typescript": "5.7.3"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "cspell": "8",
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: [
4
4
  "../plugins/eslint.js",
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/jest.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/mobx.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/next.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/n.js", "../plugins/security-node.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/playwright.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/react.js", "../plugins/react-hooks.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["@typescript-eslint"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/typescript-eslint.js", "../plugins/typescript-sort-keys.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/vitest.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["@eslint-community/eslint-comments"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  rules: {
4
4
  "array-callback-return": [
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["etc"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["import-x"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["jest"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["mobx"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["n"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["@next/eslint-plugin-next"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["playwright"],
4
4
  rules: {
@@ -18,6 +18,7 @@ module.exports = {
18
18
  "playwright/no-nested-step": "error",
19
19
  "playwright/no-page-pause": "error",
20
20
  "playwright/no-skipped-test": "error",
21
+ "playwright/no-slowed-test": "error",
21
22
  "playwright/no-standalone-expect": "error",
22
23
  "playwright/no-unsafe-references": "error",
23
24
  "playwright/no-useless-await": "error",
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["promise"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["react-hooks"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["react"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["@rimac-technology"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["security-node"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["simple-import-sort"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["sonarjs"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["sort-destructure-keys"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["sort-keys-fix"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["@stylistic"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["@typescript-eslint"],
4
4
  rules: {
@@ -61,6 +61,7 @@ module.exports = {
61
61
  "@typescript-eslint/no-base-to-string": "error",
62
62
  "@typescript-eslint/no-confusing-non-null-assertion": "error",
63
63
  "@typescript-eslint/no-confusing-void-expression": "error",
64
+ "@typescript-eslint/no-deprecated": "error",
64
65
  "@typescript-eslint/no-duplicate-enum-values": "error",
65
66
  "@typescript-eslint/no-duplicate-type-constituents": "error",
66
67
  "@typescript-eslint/no-dynamic-delete": "error",
@@ -85,6 +86,7 @@ module.exports = {
85
86
  },
86
87
  ],
87
88
  "@typescript-eslint/no-misused-new": "error",
89
+ "@typescript-eslint/no-misused-spread": "error",
88
90
  "@typescript-eslint/no-mixed-enums": "error",
89
91
  "@typescript-eslint/no-namespace": "error",
90
92
  "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
@@ -107,6 +109,8 @@ module.exports = {
107
109
  "@typescript-eslint/no-unnecessary-type-assertion": "error",
108
110
  "@typescript-eslint/no-unnecessary-type-constraint": "error",
109
111
  "@typescript-eslint/no-unnecessary-type-parameters": "error",
112
+ "@typescript-eslint/no-unsafe-function-type": "error",
113
+ "@typescript-eslint/no-unsafe-type-assertion": "off",
110
114
  "@typescript-eslint/no-unused-expressions": [
111
115
  "error",
112
116
  {
@@ -128,6 +132,7 @@ module.exports = {
128
132
  "@typescript-eslint/no-use-before-define": "error",
129
133
  "@typescript-eslint/no-useless-constructor": "error",
130
134
  "@typescript-eslint/no-useless-empty-export": "error",
135
+ "@typescript-eslint/no-wrapper-object-types": "error",
131
136
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
132
137
  "@typescript-eslint/only-throw-error": "error",
133
138
  "@typescript-eslint/prefer-as-const": "error",
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["typescript-sort-keys"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["unicorn"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["unused-imports"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["@vitest"],
4
4
  rules: {
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  extends: ["../plugins/graphql.js"],
4
4
  }
@@ -1,4 +1,4 @@
1
- /** @type {import("@types/eslint").ESLint.ConfigData} */
1
+ /** @type {import("eslint").ESLint.ConfigData} */
2
2
  module.exports = {
3
3
  plugins: ["@graphql-eslint"],
4
4
  rules: {
@@ -9,6 +9,7 @@ module.exports = {
9
9
  reportDescriptionlessDisables: true,
10
10
  reportInvalidScopeDisables: true,
11
11
  reportNeedlessDisables: true,
12
+ reportUnscopedDisables: true,
12
13
  rules: {
13
14
  ...stylelint.rules,
14
15
  ...stylelintOrder.rules,