@newsteam/eslint-config 0.0.166 → 0.0.167
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.
|
@@ -6,6 +6,7 @@ declare const _default: {
|
|
|
6
6
|
"@typescript-eslint/ban-ts-comment": string;
|
|
7
7
|
"@typescript-eslint/ban-tslint-comment": string;
|
|
8
8
|
"@typescript-eslint/ban-types": string;
|
|
9
|
+
"@typescript-eslint/block-spacing": string;
|
|
9
10
|
"@typescript-eslint/brace-style": string;
|
|
10
11
|
"@typescript-eslint/class-literal-property-style": string;
|
|
11
12
|
"@typescript-eslint/comma-dangle": (string | {
|
|
@@ -140,6 +141,7 @@ declare const _default: {
|
|
|
140
141
|
"@typescript-eslint/no-floating-promises": string;
|
|
141
142
|
"@typescript-eslint/no-for-in-array": string;
|
|
142
143
|
"@typescript-eslint/no-implied-eval": string;
|
|
144
|
+
"@typescript-eslint/no-import-type-side-effects": string;
|
|
143
145
|
"@typescript-eslint/no-inferrable-types": string;
|
|
144
146
|
"@typescript-eslint/no-invalid-this": string;
|
|
145
147
|
"@typescript-eslint/no-invalid-void-type": string;
|
|
@@ -149,6 +151,7 @@ declare const _default: {
|
|
|
149
151
|
ignoreEnums: boolean;
|
|
150
152
|
ignoreNumericLiteralTypes: boolean;
|
|
151
153
|
ignoreReadonlyClassProperties: boolean;
|
|
154
|
+
ignoreTypeIndexes: boolean;
|
|
152
155
|
detectObjects: boolean;
|
|
153
156
|
ignore: number[];
|
|
154
157
|
ignoreArrayIndexes: boolean;
|
|
@@ -64,6 +64,12 @@ var rules = {
|
|
|
64
64
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-types.md
|
|
65
65
|
*/
|
|
66
66
|
"@typescript-eslint/ban-types": "error",
|
|
67
|
+
/*
|
|
68
|
+
* Disallow or enforce spaces inside of blocks after opening block and before closing block.
|
|
69
|
+
*
|
|
70
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/block-spacing.md
|
|
71
|
+
*/
|
|
72
|
+
"@typescript-eslint/block-spacing": "error",
|
|
67
73
|
/*
|
|
68
74
|
* Enforce consistent brace style for blocks
|
|
69
75
|
*
|
|
@@ -582,6 +588,12 @@ var rules = {
|
|
|
582
588
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implied-eval.md
|
|
583
589
|
*/
|
|
584
590
|
"@typescript-eslint/no-implied-eval": "error",
|
|
591
|
+
/*
|
|
592
|
+
* Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers.
|
|
593
|
+
*
|
|
594
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-import-type-side-effects.md
|
|
595
|
+
*/
|
|
596
|
+
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
585
597
|
/*
|
|
586
598
|
* Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.
|
|
587
599
|
*
|
|
@@ -622,7 +634,7 @@ var rules = {
|
|
|
622
634
|
*/
|
|
623
635
|
"@typescript-eslint/no-magic-numbers": [
|
|
624
636
|
"error",
|
|
625
|
-
__assign(__assign({}, settings_1.noMagicNumbersConfig), { ignoreEnums: true, ignoreNumericLiteralTypes: true, ignoreReadonlyClassProperties: true })
|
|
637
|
+
__assign(__assign({}, settings_1.noMagicNumbersConfig), { ignoreEnums: true, ignoreNumericLiteralTypes: true, ignoreReadonlyClassProperties: true, ignoreTypeIndexes: true })
|
|
626
638
|
],
|
|
627
639
|
/*
|
|
628
640
|
* Disallow the void operator except when used to discard a value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.167",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"types": "./lib/cjs/index.d.ts",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@newsteam/jasmine": "0.0.43",
|
|
50
|
-
"@types/eslint": "8.21.
|
|
50
|
+
"@types/eslint": "8.21.1",
|
|
51
51
|
"@types/modernizr": "3.5.3",
|
|
52
|
-
"@types/node": "18.
|
|
53
|
-
"@types/react": "18.0.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
55
|
-
"@typescript-eslint/parser": "5.
|
|
56
|
-
"eslint": "8.
|
|
52
|
+
"@types/node": "18.13.0",
|
|
53
|
+
"@types/react": "18.0.28",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "5.52.0",
|
|
55
|
+
"@typescript-eslint/parser": "5.52.0",
|
|
56
|
+
"eslint": "8.34.0",
|
|
57
57
|
"eslint-find-rules": "4.1.0",
|
|
58
58
|
"eslint-import-resolver-typescript": "3.5.3",
|
|
59
59
|
"eslint-plugin-array-func": "3.1.8",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
81
81
|
"eslint-plugin-unicorn": "45.0.2",
|
|
82
82
|
"json-schema": "0.4.0",
|
|
83
|
-
"postcss-nesting": "11.
|
|
83
|
+
"postcss-nesting": "11.2.0",
|
|
84
84
|
"react": "18.2.0",
|
|
85
85
|
"typescript": "4.9.5"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
89
|
-
"@typescript-eslint/parser": "5.
|
|
90
|
-
"eslint": "8.
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "5.52.0",
|
|
89
|
+
"@typescript-eslint/parser": "5.52.0",
|
|
90
|
+
"eslint": "8.34.0",
|
|
91
91
|
"eslint-plugin-array-func": "3.1.8",
|
|
92
92
|
"eslint-plugin-css-modules": "2.11.0",
|
|
93
93
|
"eslint-plugin-es": "4.1.0",
|