@newsteam/eslint-config 0.0.243 → 0.0.245
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/dist/cjs/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ESLint plugin surfacing problematic React code found by the React compiler.
|
|
4
|
+
*
|
|
5
|
+
* https://www.npmjs.com/package/eslint-plugin-react-compiler
|
|
6
|
+
*/
|
|
7
|
+
module.exports = {
|
|
8
|
+
plugins: ["react-compiler"],
|
|
9
|
+
rules: {
|
|
10
|
+
"react-compiler/react-compiler": "error",
|
|
11
|
+
},
|
|
12
|
+
};
|
package/dist/cjs/rules.js
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
Splitting this file up would make things worse
|
|
11
11
|
|
|
12
12
|
*/
|
|
13
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
14
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
15
|
+
return cooked;
|
|
16
|
+
};
|
|
13
17
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
18
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
19
|
if (ar || !(i in from)) {
|
|
@@ -29,6 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
29
33
|
*/
|
|
30
34
|
var confusing_browser_globals_1 = __importDefault(require("confusing-browser-globals"));
|
|
31
35
|
var settings_1 = require("./settings");
|
|
36
|
+
var templateObject_1;
|
|
32
37
|
module.exports = {
|
|
33
38
|
env: {
|
|
34
39
|
es6: true,
|
|
@@ -617,7 +622,7 @@ module.exports = {
|
|
|
617
622
|
"no-inline-comments": [
|
|
618
623
|
"error",
|
|
619
624
|
{
|
|
620
|
-
ignorePattern: "webpackChunkName:\\s.+",
|
|
625
|
+
ignorePattern: String.raw(templateObject_1 || (templateObject_1 = __makeTemplateObject(["webpackChunkName:s.+"], ["webpackChunkName:\\s.+"]))),
|
|
621
626
|
}
|
|
622
627
|
],
|
|
623
628
|
/*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.245",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/cjs/index.d.ts",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"@stylistic/eslint-plugin": "2.1.0",
|
|
58
58
|
"@types/eslint": "8.56.10",
|
|
59
59
|
"@types/jasmine": "5.1.4",
|
|
60
|
-
"@types/node": "20.12.
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
62
|
-
"@typescript-eslint/parser": "7.
|
|
63
|
-
"eslint": "8.57.0",
|
|
60
|
+
"@types/node": "20.12.12",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "7.9.0",
|
|
62
|
+
"@typescript-eslint/parser": "7.9.0",
|
|
63
|
+
"eslint": "^8.57.0",
|
|
64
64
|
"eslint-find-rules": "4.1.0",
|
|
65
65
|
"eslint-plugin-array-func": "4.0.0",
|
|
66
66
|
"eslint-plugin-css-modules": "2.12.0",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"eslint-plugin-prefer-object-spread": "1.2.1",
|
|
81
81
|
"eslint-plugin-promise": "6.1.1",
|
|
82
82
|
"eslint-plugin-react": "7.34.1",
|
|
83
|
+
"eslint-plugin-react-compiler": "0.0.0-experimental-53bb89e-20240515",
|
|
83
84
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
84
85
|
"eslint-plugin-react-native": "4.1.0",
|
|
85
86
|
"eslint-plugin-react-perf": "3.3.2",
|
|
@@ -94,9 +95,9 @@
|
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
97
|
"@stylistic/eslint-plugin": "2.1.0",
|
|
97
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
98
|
-
"@typescript-eslint/parser": "7.
|
|
99
|
-
"eslint": "8.57.0",
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "7.9.0",
|
|
99
|
+
"@typescript-eslint/parser": "7.9.0",
|
|
100
|
+
"eslint": "^8.57.0",
|
|
100
101
|
"eslint-plugin-array-func": "4.0.0",
|
|
101
102
|
"eslint-plugin-css-modules": "2.12.0",
|
|
102
103
|
"eslint-plugin-es": "4.1.0",
|
|
@@ -114,6 +115,7 @@
|
|
|
114
115
|
"eslint-plugin-prefer-object-spread": "1.2.1",
|
|
115
116
|
"eslint-plugin-promise": "6.1.1",
|
|
116
117
|
"eslint-plugin-react": "7.34.1",
|
|
118
|
+
"eslint-plugin-react-compiler": "0.0.0-experimental-53bb89e-20240515",
|
|
117
119
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
118
120
|
"eslint-plugin-react-native": "4.1.0",
|
|
119
121
|
"eslint-plugin-react-perf": "3.3.2",
|