@dvukovic/style-guide 0.3.22 → 0.3.24
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
|
@@ -14,7 +14,7 @@ add the following scripts
|
|
|
14
14
|
{
|
|
15
15
|
"scripts": {
|
|
16
16
|
"lint": "yarn lint:prettier && yarn lint:eslint && yarn lint:stylelint && yarn lint:spell && yarn lint:package-json",
|
|
17
|
-
"lint:eslint": "eslint . --
|
|
17
|
+
"lint:eslint": "eslint . --cache",
|
|
18
18
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:prettier --write && yarn lint:stylelint --fix && yarn lint:spell && yarn lint:package-json",
|
|
19
19
|
"lint:package-json": "npmPkgJsonLint --configFile ./.packagerc.js .",
|
|
20
20
|
"lint:prettier": "prettier --log-level=warn --check --cache .",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvukovic/style-guide",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.24",
|
|
4
4
|
"description": "My own style guide",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "yarn lint:prettier && yarn lint:eslint && yarn lint:stylelint && yarn lint:spell && yarn lint:package-json",
|
|
24
|
-
"lint:eslint": "eslint . --
|
|
24
|
+
"lint:eslint": "eslint . --cache",
|
|
25
25
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:prettier --write && yarn lint:stylelint --fix && yarn lint:spell && yarn lint:package-json",
|
|
26
26
|
"lint:package-json": "npmPkgJsonLint --configFile ./.packagerc.js .",
|
|
27
27
|
"lint:prettier": "prettier --log-level=warn --check --cache .",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @type {import("@types/eslint").ESLint.ConfigData} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
plugins: ["@typescript-eslint"],
|
|
4
|
+
rules: {
|
|
5
|
+
"@typescript-eslint/no-unsafe-argument": "error",
|
|
6
|
+
"@typescript-eslint/no-unsafe-assignment": "error",
|
|
7
|
+
"@typescript-eslint/no-unsafe-call": "error",
|
|
8
|
+
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
9
|
+
"@typescript-eslint/no-unsafe-enum-comparison": "error",
|
|
10
|
+
"@typescript-eslint/no-unsafe-member-access": "error",
|
|
11
|
+
"@typescript-eslint/no-unsafe-return": "error",
|
|
12
|
+
"@typescript-eslint/no-unsafe-unary-minus": "error",
|
|
13
|
+
"@typescript-eslint/restrict-template-expressions": [
|
|
14
|
+
"error",
|
|
15
|
+
{
|
|
16
|
+
allowAny: false,
|
|
17
|
+
allowBoolean: false,
|
|
18
|
+
allowNever: false,
|
|
19
|
+
allowNullish: false,
|
|
20
|
+
allowNumber: true,
|
|
21
|
+
allowRegExp: false,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
}
|
|
@@ -104,14 +104,6 @@ module.exports = {
|
|
|
104
104
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
105
105
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
106
106
|
"@typescript-eslint/no-unnecessary-type-parameters": "error",
|
|
107
|
-
"@typescript-eslint/no-unsafe-argument": "error",
|
|
108
|
-
"@typescript-eslint/no-unsafe-assignment": "error",
|
|
109
|
-
"@typescript-eslint/no-unsafe-call": "error",
|
|
110
|
-
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
111
|
-
"@typescript-eslint/no-unsafe-enum-comparison": "error",
|
|
112
|
-
"@typescript-eslint/no-unsafe-member-access": "error",
|
|
113
|
-
"@typescript-eslint/no-unsafe-return": "error",
|
|
114
|
-
"@typescript-eslint/no-unsafe-unary-minus": "error",
|
|
115
107
|
"@typescript-eslint/no-unused-expressions": "error",
|
|
116
108
|
"@typescript-eslint/no-unused-vars": [
|
|
117
109
|
"error",
|
|
@@ -155,17 +147,6 @@ module.exports = {
|
|
|
155
147
|
"@typescript-eslint/require-array-sort-compare": "error",
|
|
156
148
|
"@typescript-eslint/require-await": "error",
|
|
157
149
|
"@typescript-eslint/restrict-plus-operands": "error",
|
|
158
|
-
"@typescript-eslint/restrict-template-expressions": [
|
|
159
|
-
"error",
|
|
160
|
-
{
|
|
161
|
-
allowAny: false,
|
|
162
|
-
allowBoolean: false,
|
|
163
|
-
allowNever: false,
|
|
164
|
-
allowNullish: false,
|
|
165
|
-
allowNumber: true,
|
|
166
|
-
allowRegExp: false,
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
150
|
"@typescript-eslint/return-await": "error",
|
|
170
151
|
"@typescript-eslint/switch-exhaustiveness-check": [
|
|
171
152
|
"error",
|