@dvukovic/style-guide 0.3.100 → 0.3.102

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 CHANGED
@@ -67,7 +67,7 @@ Add these scripts to your `package.json`:
67
67
  "lint:eslint": "eslint . --cache --concurrency=auto",
68
68
  "lint:fix": "yarn lint:eslint --fix && yarn lint:prettier --write && yarn lint:stylelint --fix && yarn lint:spell",
69
69
  "lint:prettier": "prettier --check --cache .",
70
- "lint:spell": "cspell --config ./.cspellrc.js --no-progress --no-summary --unique '**'",
70
+ "lint:spell": "cspell --no-progress --no-summary --unique '**'",
71
71
  "lint:stylelint": "stylelint ./**/*.css --cache",
72
72
  "test": "vitest run"
73
73
  }
@@ -112,7 +112,7 @@ export default customDefineConfig(
112
112
 
113
113
  ## Prettier Configuration
114
114
 
115
- ```js
115
+ ```js prettier.config.ts
116
116
  import type { Config } from "prettier"
117
117
 
118
118
  import core from "@dvukovic/style-guide/src/prettier/configs/core.js"
@@ -126,18 +126,36 @@ export default config
126
126
 
127
127
  ## Stylelint Configuration
128
128
 
129
- ```js
130
- import { stylelint } from "@dvukovic/style-guide/stylelint"
131
-
132
- export default stylelint
129
+ ```js stylelint.config.js
130
+ /** @type {import("stylelint").Config} */
131
+ module.exports = {
132
+ extends: "@dvukovic/style-guide/src/stylelint/configs/core",
133
+ allowEmptyInput: true,
134
+ }
133
135
  ```
134
136
 
135
- ## Package.json Configuration
136
-
137
- ```js
138
- import { packageJson } from "@dvukovic/style-guide/package-json"
139
-
140
- export default packageJson
137
+ ## Cspell Configuration
138
+
139
+ ```cspell.config.js
140
+ /** @type {import("cspell").FileSettings} */
141
+ module.exports = {
142
+ cache: {
143
+ cacheLocation: "./node_modules/.cache/cspell",
144
+ useCache: true,
145
+ },
146
+ caseSensitive: false,
147
+ ignorePaths: [],
148
+ dictionaries: ["shared"],
149
+ dictionaryDefinitions: [
150
+ {
151
+ name: "shared",
152
+ path: "./node_modules/@dvukovic/style-guide/src/cspell/base.txt",
153
+ },
154
+ ],
155
+ useGitignore: true,
156
+ ignoreWords: [
157
+ ],
158
+ }
141
159
  ```
142
160
 
143
161
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvukovic/style-guide",
3
- "version": "0.3.100",
3
+ "version": "0.3.102",
4
4
  "description": "My own style guide",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "lint:eslint": "eslint . --cache --concurrency=auto",
24
24
  "lint:fix": "yarn lint:eslint --fix && yarn lint:prettier --write && yarn lint:stylelint --fix && yarn lint:spell",
25
25
  "lint:prettier": "prettier --check --cache .",
26
- "lint:spell": "cspell --config ./.cspellrc.js --no-progress --no-summary --unique '**'",
26
+ "lint:spell": "cspell --no-progress --no-summary --unique '**'",
27
27
  "lint:stylelint": "stylelint ./**/*.css --cache",
28
28
  "release": "release-it",
29
29
  "test": "vitest run"
@@ -27,7 +27,6 @@ export const sonarjs = {
27
27
  "sonarjs/aws-s3-bucket-granted-access": "error",
28
28
  "sonarjs/aws-s3-bucket-insecure-http": "error",
29
29
  "sonarjs/aws-s3-bucket-public-access": "error",
30
- "sonarjs/aws-s3-bucket-server-encryption": "error",
31
30
  "sonarjs/aws-s3-bucket-versioning": "error",
32
31
  "sonarjs/aws-sagemaker-unencrypted-notebook": "error",
33
32
  "sonarjs/aws-sns-unencrypted-topics": "error",
@@ -36,7 +35,6 @@ export const sonarjs = {
36
35
  "sonarjs/block-scoped-var": "error",
37
36
  "sonarjs/bool-param-default": "error",
38
37
  "sonarjs/call-argument-line": "error",
39
- "sonarjs/certificate-transparency": "error",
40
38
  "sonarjs/chai-determinate-assertion": "error",
41
39
  "sonarjs/class-name": "error",
42
40
  "sonarjs/class-prototype": "error",
@@ -44,13 +42,11 @@ export const sonarjs = {
44
42
  "sonarjs/comma-or-logical-or-case": "error",
45
43
  "sonarjs/comment-regex": "error",
46
44
  "sonarjs/concise-regex": "error",
47
- "sonarjs/conditional-indentation": "error",
48
45
  "sonarjs/confidential-information-logging": "error",
49
46
  "sonarjs/constructor-for-side-effects": "error",
50
47
  "sonarjs/content-length": "error",
51
48
  "sonarjs/content-security-policy": "error",
52
49
  "sonarjs/cookie-no-httponly": "error",
53
- "sonarjs/cookies": "error",
54
50
  "sonarjs/cors": "error",
55
51
  "sonarjs/csrf": "error",
56
52
  "sonarjs/deprecation": "error",
@@ -59,12 +55,9 @@ export const sonarjs = {
59
55
  "sonarjs/disabled-auto-escaping": "error",
60
56
  "sonarjs/disabled-resource-integrity": "error",
61
57
  "sonarjs/disabled-timeout": "error",
62
- "sonarjs/dns-prefetching": "error",
63
58
  "sonarjs/duplicates-in-character-class": "error",
64
59
  "sonarjs/empty-string-repetition": "error",
65
- "sonarjs/encryption": "error",
66
60
  "sonarjs/encryption-secure-mode": "error",
67
- "sonarjs/enforce-trailing-comma": "error",
68
61
  "sonarjs/existing-groups": "error",
69
62
  "sonarjs/file-permissions": "error",
70
63
  "sonarjs/file-uploads": "error",
@@ -163,7 +156,6 @@ export const sonarjs = {
163
156
  "sonarjs/no-redundant-boolean": "error",
164
157
  "sonarjs/no-redundant-jump": "error",
165
158
  "sonarjs/no-redundant-optional": "error",
166
- "sonarjs/no-redundant-parentheses": "error",
167
159
  "sonarjs/no-referrer-policy": "error",
168
160
  "sonarjs/no-regex-spaces": "error",
169
161
  "sonarjs/no-require-or-define": "error",
@@ -174,7 +166,6 @@ export const sonarjs = {
174
166
  "sonarjs/no-skipped-tests": "error",
175
167
  "sonarjs/no-small-switch": "error",
176
168
  "sonarjs/no-sonar-comments": "error",
177
- "sonarjs/no-tab": "error",
178
169
  "sonarjs/no-table-as-layout": "error",
179
170
  "sonarjs/no-try-promise": "error",
180
171
  "sonarjs/no-undefined-argument": "error",
@@ -190,7 +181,6 @@ export const sonarjs = {
190
181
  "sonarjs/no-useless-intersection": "error",
191
182
  "sonarjs/no-useless-react-setstate": "error",
192
183
  "sonarjs/no-variable-usage-before-declaration": "error",
193
- "sonarjs/no-vue-bypass-sanitization": "error",
194
184
  "sonarjs/no-weak-cipher": "error",
195
185
  "sonarjs/no-weak-keys": "error",
196
186
  "sonarjs/non-existent-operator": "error",
@@ -209,7 +199,6 @@ export const sonarjs = {
209
199
  "sonarjs/prefer-single-boolean-return": "error",
210
200
  "sonarjs/prefer-type-guard": "error",
211
201
  "sonarjs/prefer-while": "error",
212
- "sonarjs/process-argv": "error",
213
202
  "sonarjs/production-debug": "error",
214
203
  "sonarjs/pseudo-random": "error",
215
204
  "sonarjs/public-static-readonly": "error",
@@ -220,10 +209,8 @@ export const sonarjs = {
220
209
  "sonarjs/session-regeneration": "error",
221
210
  "sonarjs/single-char-in-character-classes": "error",
222
211
  "sonarjs/single-character-alternation": "error",
223
- "sonarjs/sockets": "error",
224
212
  "sonarjs/sql-queries": "error",
225
213
  "sonarjs/stable-tests": "error",
226
- "sonarjs/standard-input": "error",
227
214
  "sonarjs/stateful-regex": "error",
228
215
  "sonarjs/strict-transport-security": "error",
229
216
  "sonarjs/strings-comparison": "error",
@@ -240,14 +227,11 @@ export const sonarjs = {
240
227
  "sonarjs/updated-const-var": "error",
241
228
  "sonarjs/updated-loop-counter": "error",
242
229
  "sonarjs/use-type-alias": "error",
243
- "sonarjs/useless-string-operation": "error",
244
230
  "sonarjs/values-not-convertible-to-numbers": "error",
245
231
  "sonarjs/variable-name": "error",
246
232
  "sonarjs/void-use": "error",
247
233
  "sonarjs/weak-ssl": "error",
248
- "sonarjs/web-sql-database": "error",
249
234
  "sonarjs/x-powered-by": "error",
250
235
  "sonarjs/xml-parser-xxe": "error",
251
- "sonarjs/xpath": "error",
252
236
  },
253
237
  }
@@ -34,7 +34,6 @@ export const unicorn = {
34
34
  "unicorn/no-anonymous-default-export": "error",
35
35
  "unicorn/no-array-callback-reference": "error",
36
36
  "unicorn/no-array-method-this-argument": "error",
37
- "unicorn/no-array-push-push": "error",
38
37
  "unicorn/no-array-reduce": "error",
39
38
  "unicorn/no-array-reverse": "error",
40
39
  "unicorn/no-await-expression-member": "error",
@@ -44,11 +43,9 @@ export const unicorn = {
44
43
  "unicorn/no-empty-file": "error",
45
44
  "unicorn/no-for-loop": "error",
46
45
  "unicorn/no-immediate-mutation": "error",
47
- "unicorn/no-instanceof-array": "error",
48
46
  "unicorn/no-instanceof-builtins": "error",
49
47
  "unicorn/no-invalid-fetch-options": "error",
50
48
  "unicorn/no-invalid-remove-event-listener": "error",
51
- "unicorn/no-length-as-slice-end": "error",
52
49
  "unicorn/no-lonely-if": "error",
53
50
  "unicorn/no-magic-array-flat-depth": "error",
54
51
  "unicorn/no-named-default": "error",
@@ -66,6 +63,7 @@ export const unicorn = {
66
63
  "unicorn/no-unnecessary-array-splice-count": "error",
67
64
  "unicorn/no-unnecessary-await": "error",
68
65
  "unicorn/no-unnecessary-polyfills": "error",
66
+ "unicorn/no-unnecessary-slice-end": "error",
69
67
  "unicorn/no-unreadable-array-destructuring": "error",
70
68
  "unicorn/no-unreadable-iife": "error",
71
69
  "unicorn/no-unused-properties": "error",
@@ -116,6 +114,7 @@ export const unicorn = {
116
114
  "unicorn/prefer-response-static-json": "error",
117
115
  "unicorn/prefer-set-has": "error",
118
116
  "unicorn/prefer-set-size": "error",
117
+ "unicorn/prefer-single-call": "error",
119
118
  "unicorn/prefer-string-raw": "error",
120
119
  "unicorn/prefer-string-replace-all": "error",
121
120
  "unicorn/prefer-string-slice": "error",