@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.
- package/README.md +2 -2
- package/package.json +25 -25
- package/src/eslint/configs/core.js +1 -1
- package/src/eslint/configs/jest.js +1 -1
- package/src/eslint/configs/mobx.js +1 -1
- package/src/eslint/configs/next.js +1 -1
- package/src/eslint/configs/node.js +1 -1
- package/src/eslint/configs/playwright.js +1 -1
- package/src/eslint/configs/react.js +1 -1
- package/src/eslint/configs/typescript-strict.js +1 -1
- package/src/eslint/configs/typescript.js +1 -1
- package/src/eslint/configs/vitest.js +1 -1
- package/src/eslint/plugins/eslint-comments.js +1 -1
- package/src/eslint/plugins/eslint.js +1 -1
- package/src/eslint/plugins/etc.js +1 -1
- package/src/eslint/plugins/import-x.js +1 -1
- package/src/eslint/plugins/jest.js +1 -1
- package/src/eslint/plugins/mobx.js +1 -1
- package/src/eslint/plugins/n.js +1 -1
- package/src/eslint/plugins/next.js +1 -1
- package/src/eslint/plugins/playwright.js +2 -1
- package/src/eslint/plugins/promise.js +1 -1
- package/src/eslint/plugins/react-hooks.js +1 -1
- package/src/eslint/plugins/react.js +1 -1
- package/src/eslint/plugins/rimac.js +1 -1
- package/src/eslint/plugins/security-node.js +1 -1
- package/src/eslint/plugins/simple-import-sort.js +1 -1
- package/src/eslint/plugins/sonarjs.js +1 -1
- package/src/eslint/plugins/sort-destructure-keys.js +1 -1
- package/src/eslint/plugins/sort-keys-fix.js +1 -1
- package/src/eslint/plugins/stylistic.js +1 -1
- package/src/eslint/plugins/typescript-eslint.js +6 -1
- package/src/eslint/plugins/typescript-sort-keys.js +1 -1
- package/src/eslint/plugins/unicorn.js +1 -1
- package/src/eslint/plugins/unused-imports.js +1 -1
- package/src/eslint/plugins/vitest.js +1 -1
- package/src/graphql/configs/core.js +1 -1
- package/src/graphql/plugins/graphql.js +1 -1
- 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("
|
|
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("
|
|
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.
|
|
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.
|
|
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": "
|
|
39
|
-
"@typescript-eslint/parser": "
|
|
40
|
-
"@vitest/eslint-plugin": "1.1.
|
|
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.
|
|
43
|
-
"eslint-plugin-jest": "28.
|
|
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.
|
|
46
|
-
"eslint-plugin-playwright": "2.
|
|
47
|
-
"eslint-plugin-promise": "7.1
|
|
48
|
-
"eslint-plugin-react": "7.37.
|
|
49
|
-
"eslint-plugin-react-hooks": "5.
|
|
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.
|
|
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.
|
|
60
|
-
"prettier-plugin-packagejson": "2.5.
|
|
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": "
|
|
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.
|
|
72
|
-
"@types/react": "
|
|
73
|
-
"cspell": "8.
|
|
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.
|
|
75
|
+
"graphql": "16.10.0",
|
|
76
76
|
"jest": "29.7.0",
|
|
77
77
|
"npm-package-json-lint": "8.0.0",
|
|
78
|
-
"prettier": "3.
|
|
79
|
-
"react": "
|
|
80
|
-
"release-it": "
|
|
81
|
-
"stylelint": "16.
|
|
82
|
-
"typescript": "5.
|
|
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",
|
package/src/eslint/plugins/n.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @type {import("
|
|
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("
|
|
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",
|