@newsteam/eslint-config 0.0.117 → 0.0.120
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 +1 -0
- package/lib/cjs/plugins/react/jsx.d.ts +1 -0
- package/lib/cjs/plugins/react/jsx.js +6 -0
- package/lib/cjs/plugins/typescript.d.ts +0 -1
- package/lib/cjs/plugins/typescript.js +0 -6
- package/lib/cjs/plugins/unicorn.d.ts +3 -0
- package/lib/cjs/plugins/unicorn.js +4 -0
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -28,6 +28,7 @@ declare const _default: {
|
|
|
28
28
|
"react/jsx-no-comment-textnodes": string;
|
|
29
29
|
"react/jsx-no-constructed-context-values": string;
|
|
30
30
|
"react/jsx-no-duplicate-props": string;
|
|
31
|
+
"react/jsx-no-leaked-render": string;
|
|
31
32
|
"react/jsx-no-literals": string;
|
|
32
33
|
"react/jsx-no-script-url": string;
|
|
33
34
|
"react/jsx-no-target-blank": string;
|
|
@@ -168,6 +168,12 @@ module.exports = {
|
|
|
168
168
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
|
|
169
169
|
*/
|
|
170
170
|
"react/jsx-no-duplicate-props": "error",
|
|
171
|
+
/*
|
|
172
|
+
* Prevent problematic leaked values from being rendered
|
|
173
|
+
*
|
|
174
|
+
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-leaked-render.md
|
|
175
|
+
*/
|
|
176
|
+
"react/jsx-no-leaked-render": "error",
|
|
171
177
|
/*
|
|
172
178
|
* Prevent usage of unwrapped JSX strings
|
|
173
179
|
*
|
|
@@ -113,7 +113,6 @@ declare const _default: {
|
|
|
113
113
|
"@typescript-eslint/no-confusing-void-expression": string;
|
|
114
114
|
"@typescript-eslint/no-dupe-class-members": string;
|
|
115
115
|
"@typescript-eslint/no-duplicate-enum-values": string;
|
|
116
|
-
"@typescript-eslint/no-duplicate-imports": string;
|
|
117
116
|
"@typescript-eslint/no-dynamic-delete": string;
|
|
118
117
|
"@typescript-eslint/no-empty-function": string;
|
|
119
118
|
"@typescript-eslint/no-empty-interface": string;
|
|
@@ -453,12 +453,6 @@ var rules = {
|
|
|
453
453
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-duplicate-enum-values.md
|
|
454
454
|
*/
|
|
455
455
|
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
456
|
-
/*
|
|
457
|
-
* Disallow duplicate imports
|
|
458
|
-
*
|
|
459
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-duplicate-imports.md
|
|
460
|
-
*/
|
|
461
|
-
"@typescript-eslint/no-duplicate-imports": "error",
|
|
462
456
|
/*
|
|
463
457
|
* Disallow the delete operator with computed key expressions
|
|
464
458
|
*
|
|
@@ -629,6 +629,10 @@ module.exports = {
|
|
|
629
629
|
// This is a reserved keyword in some cases - don't replace into this
|
|
630
630
|
arguments: false
|
|
631
631
|
},
|
|
632
|
+
dev: {
|
|
633
|
+
// Term isn't overloaded - allow abbreviation
|
|
634
|
+
development: false
|
|
635
|
+
},
|
|
632
636
|
doc: {
|
|
633
637
|
// Term isn't overloaded - allow abbreviation
|
|
634
638
|
document: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.120",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"types": "./lib/cjs/index.d.ts",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@newsteam/jasmine": "0.0.40",
|
|
53
53
|
"@types/eslint": "8.4.2",
|
|
54
|
-
"@types/node": "17.0.
|
|
54
|
+
"@types/node": "17.0.35",
|
|
55
55
|
"@types/react": "18.0.9",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
57
|
-
"@typescript-eslint/parser": "5.
|
|
58
|
-
"eslint": "8.
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "5.25.0",
|
|
57
|
+
"@typescript-eslint/parser": "5.25.0",
|
|
58
|
+
"eslint": "8.16.0",
|
|
59
59
|
"eslint-find-rules": "4.1.0",
|
|
60
60
|
"eslint-plugin-array-func": "3.1.7",
|
|
61
61
|
"eslint-plugin-css-modules": "2.11.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"eslint-plugin-optimize-regex": "1.2.1",
|
|
72
72
|
"eslint-plugin-prefer-object-spread": "1.2.1",
|
|
73
73
|
"eslint-plugin-promise": "6.0.0",
|
|
74
|
-
"eslint-plugin-react": "7.
|
|
74
|
+
"eslint-plugin-react": "7.30.0",
|
|
75
75
|
"eslint-plugin-react-hooks": "4.5.0",
|
|
76
76
|
"eslint-plugin-react-native": "4.0.0",
|
|
77
77
|
"eslint-plugin-react-perf": "3.3.1",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"typescript": "4.6.4"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
88
|
-
"@typescript-eslint/parser": "5.
|
|
89
|
-
"eslint": "8.
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "5.25.0",
|
|
88
|
+
"@typescript-eslint/parser": "5.25.0",
|
|
89
|
+
"eslint": "8.16.0",
|
|
90
90
|
"eslint-plugin-array-func": "3.1.7",
|
|
91
91
|
"eslint-plugin-css-modules": "2.11.0",
|
|
92
92
|
"eslint-plugin-es": "4.1.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"eslint-plugin-optimize-regex": "1.2.1",
|
|
102
102
|
"eslint-plugin-prefer-object-spread": "1.2.1",
|
|
103
103
|
"eslint-plugin-promise": "6.0.0",
|
|
104
|
-
"eslint-plugin-react": "7.
|
|
104
|
+
"eslint-plugin-react": "7.30.0",
|
|
105
105
|
"eslint-plugin-react-hooks": "4.5.0",
|
|
106
106
|
"eslint-plugin-react-native": "4.0.0",
|
|
107
107
|
"eslint-plugin-react-perf": "3.3.1",
|