@newsteam/eslint-config 0.0.154 → 0.0.156
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.
|
@@ -21,9 +21,11 @@ module.exports = {
|
|
|
21
21
|
/*
|
|
22
22
|
* Prevent Arrays that are local to the current method from being used as values of JSX props
|
|
23
23
|
*
|
|
24
|
+
* So common that we do this it's annoying
|
|
25
|
+
*
|
|
24
26
|
* https://github.com/cvazac/eslint-plugin-react-perf/blob/HEAD/docs/rules/jsx-no-new-array-as-prop.md
|
|
25
27
|
*/
|
|
26
|
-
"react-perf/jsx-no-new-array-as-prop": "
|
|
28
|
+
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
27
29
|
/*
|
|
28
30
|
* Prevent Functions that are local to the current method from being used as values of JSX props
|
|
29
31
|
*
|
|
@@ -18,7 +18,7 @@ declare const _default: {
|
|
|
18
18
|
assertionStyle: string;
|
|
19
19
|
objectLiteralTypeAssertions: string;
|
|
20
20
|
})[];
|
|
21
|
-
"@typescript-eslint/consistent-type-definitions": string
|
|
21
|
+
"@typescript-eslint/consistent-type-definitions": string;
|
|
22
22
|
"@typescript-eslint/consistent-type-exports": string;
|
|
23
23
|
"@typescript-eslint/consistent-type-imports": string;
|
|
24
24
|
"@typescript-eslint/default-param-last": string;
|
|
@@ -123,12 +123,11 @@ var rules = {
|
|
|
123
123
|
/*
|
|
124
124
|
* Consistent with type definition either interface or type
|
|
125
125
|
*
|
|
126
|
+
* There are pros and cons of both - not going to force this for now
|
|
127
|
+
*
|
|
126
128
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-definitions.md
|
|
127
129
|
*/
|
|
128
|
-
"@typescript-eslint/consistent-type-definitions":
|
|
129
|
-
"error",
|
|
130
|
-
"interface"
|
|
131
|
-
],
|
|
130
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
132
131
|
/*
|
|
133
132
|
* Enforces consistent usage of type exports
|
|
134
133
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.156",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"types": "./lib/cjs/index.d.ts",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@newsteam/jasmine": "0.0.42",
|
|
50
50
|
"@types/eslint": "8.4.10",
|
|
51
51
|
"@types/modernizr": "3.5.3",
|
|
52
|
-
"@types/node": "18.11.
|
|
53
|
-
"@types/react": "18.0.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
55
|
-
"@typescript-eslint/parser": "5.
|
|
56
|
-
"eslint": "8.
|
|
52
|
+
"@types/node": "18.11.12",
|
|
53
|
+
"@types/react": "18.0.26",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "5.46.0",
|
|
55
|
+
"@typescript-eslint/parser": "5.46.0",
|
|
56
|
+
"eslint": "8.29.0",
|
|
57
57
|
"eslint-find-rules": "4.1.0",
|
|
58
58
|
"eslint-import-resolver-typescript": "3.5.2",
|
|
59
59
|
"eslint-plugin-array-func": "3.1.7",
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
"json-schema": "0.4.0",
|
|
83
83
|
"postcss-nesting": "10.2.0",
|
|
84
84
|
"react": "18.2.0",
|
|
85
|
-
"typescript": "4.9.
|
|
85
|
+
"typescript": "4.9.4"
|
|
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.46.0",
|
|
89
|
+
"@typescript-eslint/parser": "5.46.0",
|
|
90
|
+
"eslint": "8.29.0",
|
|
91
91
|
"eslint-plugin-array-func": "3.1.7",
|
|
92
92
|
"eslint-plugin-css-modules": "2.11.0",
|
|
93
93
|
"eslint-plugin-es": "4.1.0",
|
|
@@ -112,6 +112,6 @@
|
|
|
112
112
|
"eslint-plugin-unicorn": "45.0.1",
|
|
113
113
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
|
|
114
114
|
"json-schema": "0.4.0",
|
|
115
|
-
"typescript": "4.9.
|
|
115
|
+
"typescript": "4.9.4"
|
|
116
116
|
}
|
|
117
117
|
}
|