@newsteam/eslint-config 0.0.172 → 0.0.174
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/lib/cjs/index.js
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Validate that your components can safely be updated with fast refresh.
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/ArnaudBarre/eslint-plugin-react-refresh
|
|
6
|
+
*/
|
|
7
|
+
module.exports = {
|
|
8
|
+
plugins: ["react-refresh"],
|
|
9
|
+
rules: {
|
|
10
|
+
/*
|
|
11
|
+
* Validate that your components can safely be updated with fast refresh.
|
|
12
|
+
*
|
|
13
|
+
* https://github.com/ArnaudBarre/eslint-plugin-react-refresh#usage
|
|
14
|
+
*/
|
|
15
|
+
"react-refresh/only-export-components": "error"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -187,6 +187,7 @@ declare const _default: {
|
|
|
187
187
|
"@typescript-eslint/no-unsafe-assignment": string;
|
|
188
188
|
"@typescript-eslint/no-unsafe-call": string;
|
|
189
189
|
"@typescript-eslint/no-unsafe-declaration-merging": string;
|
|
190
|
+
"@typescript-eslint/no-unsafe-enum-comparison": string;
|
|
190
191
|
"@typescript-eslint/no-unsafe-member-access": string;
|
|
191
192
|
"@typescript-eslint/no-unsafe-return": string;
|
|
192
193
|
"@typescript-eslint/no-unused-expressions": string;
|
|
@@ -815,6 +815,12 @@ var rules = {
|
|
|
815
815
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md
|
|
816
816
|
*/
|
|
817
817
|
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
818
|
+
/*
|
|
819
|
+
* Disallow comparing an enum value with a non-enum value.
|
|
820
|
+
*
|
|
821
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-enum-comparison.md
|
|
822
|
+
*/
|
|
823
|
+
"@typescript-eslint/no-unsafe-enum-comparison": "error",
|
|
818
824
|
/*
|
|
819
825
|
* Disallows member access on any typed variables
|
|
820
826
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.174",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"types": "./lib/cjs/index.d.ts",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"@types/eslint": "8.37.0",
|
|
52
52
|
"@types/modernizr": "3.5.3",
|
|
53
53
|
"@types/node": "18.15.11",
|
|
54
|
-
"@types/react": "18.0.
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
56
|
-
"@typescript-eslint/parser": "5.
|
|
57
|
-
"eslint": "8.
|
|
54
|
+
"@types/react": "18.0.34",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "5.58.0",
|
|
56
|
+
"@typescript-eslint/parser": "5.58.0",
|
|
57
|
+
"eslint": "8.38.0",
|
|
58
58
|
"eslint-find-rules": "4.1.0",
|
|
59
|
-
"eslint-import-resolver-typescript": "3.5.
|
|
59
|
+
"eslint-import-resolver-typescript": "3.5.5",
|
|
60
60
|
"eslint-plugin-array-func": "3.1.8",
|
|
61
61
|
"eslint-plugin-css-modules": "2.11.0",
|
|
62
62
|
"eslint-plugin-es": "4.1.0",
|
|
@@ -77,18 +77,19 @@
|
|
|
77
77
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
78
78
|
"eslint-plugin-react-native": "4.0.0",
|
|
79
79
|
"eslint-plugin-react-perf": "3.3.1",
|
|
80
|
+
"eslint-plugin-react-refresh": "*",
|
|
80
81
|
"eslint-plugin-security": "1.7.1",
|
|
81
82
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
82
83
|
"eslint-plugin-unicorn": "46.0.0",
|
|
83
84
|
"json-schema": "0.4.0",
|
|
84
85
|
"postcss-nesting": "11.2.2",
|
|
85
86
|
"react": "18.2.0",
|
|
86
|
-
"typescript": "5.0.
|
|
87
|
+
"typescript": "5.0.4"
|
|
87
88
|
},
|
|
88
89
|
"peerDependencies": {
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
90
|
-
"@typescript-eslint/parser": "5.
|
|
91
|
-
"eslint": "8.
|
|
90
|
+
"@typescript-eslint/eslint-plugin": "5.58.0",
|
|
91
|
+
"@typescript-eslint/parser": "5.58.0",
|
|
92
|
+
"eslint": "8.38.0",
|
|
92
93
|
"eslint-plugin-array-func": "3.1.8",
|
|
93
94
|
"eslint-plugin-css-modules": "2.11.0",
|
|
94
95
|
"eslint-plugin-es": "4.1.0",
|
|
@@ -108,11 +109,12 @@
|
|
|
108
109
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
109
110
|
"eslint-plugin-react-native": "4.0.0",
|
|
110
111
|
"eslint-plugin-react-perf": "3.3.1",
|
|
112
|
+
"eslint-plugin-react-refresh": "^0.3.4",
|
|
111
113
|
"eslint-plugin-security": "1.7.1",
|
|
112
114
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
113
115
|
"eslint-plugin-unicorn": "46.0.0",
|
|
114
116
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
|
|
115
117
|
"json-schema": "0.4.0",
|
|
116
|
-
"typescript": "5.0.
|
|
118
|
+
"typescript": "5.0.4"
|
|
117
119
|
}
|
|
118
120
|
}
|