@clipboard-health/eslint-config 5.17.0 → 6.0.0
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/README.md +0 -1
- package/package.json +9 -10
- package/src/index.d.ts +27 -21
- package/src/index.js +49 -35
- package/src/index.js.map +1 -1
- package/src/react.d.ts +1 -2
- package/src/react.js +1 -2
- package/src/react.js.map +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/eslint-config",
|
|
3
3
|
"description": "Our ESLint configuration.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"bugs": "https://github.com/ClipboardHealth/core-utils/issues",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"config",
|
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"main": "./src/index.js",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@clipboard-health/eslint-plugin": "^0.
|
|
14
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
15
|
-
"@typescript-eslint/parser": "^
|
|
13
|
+
"@clipboard-health/eslint-plugin": "^1.0.0",
|
|
14
|
+
"@typescript-eslint/eslint-plugin": "^8",
|
|
15
|
+
"@typescript-eslint/parser": "^8",
|
|
16
16
|
"eslint": "^8",
|
|
17
|
-
"eslint-config-airbnb-base": "^15",
|
|
18
17
|
"eslint-config-prettier": "^9 || ^10",
|
|
19
18
|
"eslint-config-xo": "^0.45.0",
|
|
20
19
|
"eslint-config-xo-react": "^0.27",
|
|
@@ -22,15 +21,15 @@
|
|
|
22
21
|
"eslint-plugin-eslint-comments": "^3",
|
|
23
22
|
"eslint-plugin-expect-type": "^0.4",
|
|
24
23
|
"eslint-plugin-import": "^2",
|
|
25
|
-
"eslint-plugin-jest": "^
|
|
26
|
-
"eslint-plugin-n": "^
|
|
24
|
+
"eslint-plugin-jest": "^29",
|
|
25
|
+
"eslint-plugin-n": "^17",
|
|
27
26
|
"eslint-plugin-no-only-tests": "^3",
|
|
28
27
|
"eslint-plugin-no-use-extend-native": "^0.5",
|
|
29
28
|
"eslint-plugin-react": "^7",
|
|
30
29
|
"eslint-plugin-security": "^1",
|
|
31
|
-
"eslint-plugin-simple-import-sort": "^
|
|
32
|
-
"eslint-plugin-sonarjs": "^
|
|
33
|
-
"eslint-plugin-unicorn": "^
|
|
30
|
+
"eslint-plugin-simple-import-sort": "^12",
|
|
31
|
+
"eslint-plugin-sonarjs": "^2",
|
|
32
|
+
"eslint-plugin-unicorn": "^56"
|
|
34
33
|
},
|
|
35
34
|
"publishConfig": {
|
|
36
35
|
"access": "public"
|
package/src/index.d.ts
CHANGED
|
@@ -4,21 +4,6 @@ export declare let overrides: ({
|
|
|
4
4
|
files: string[];
|
|
5
5
|
rules: {
|
|
6
6
|
"@typescript-eslint/no-unsafe-assignment": string;
|
|
7
|
-
"@typescript-eslint/ban-types"?: never;
|
|
8
|
-
"@clipboard-health/enforce-ts-rest-in-controllers"?: never;
|
|
9
|
-
"@clipboard-health/require-http-module-factory"?: never;
|
|
10
|
-
"@clipboard-health/forbid-object-assign"?: never;
|
|
11
|
-
};
|
|
12
|
-
} | {
|
|
13
|
-
files: string[];
|
|
14
|
-
rules: {
|
|
15
|
-
"@typescript-eslint/ban-types": (string | {
|
|
16
|
-
extendDefaults: boolean;
|
|
17
|
-
types: {
|
|
18
|
-
null: boolean;
|
|
19
|
-
};
|
|
20
|
-
})[];
|
|
21
|
-
"@typescript-eslint/no-unsafe-assignment"?: never;
|
|
22
7
|
"@clipboard-health/enforce-ts-rest-in-controllers"?: never;
|
|
23
8
|
"@clipboard-health/require-http-module-factory"?: never;
|
|
24
9
|
"@clipboard-health/forbid-object-assign"?: never;
|
|
@@ -28,7 +13,6 @@ export declare let overrides: ({
|
|
|
28
13
|
rules: {
|
|
29
14
|
"@clipboard-health/enforce-ts-rest-in-controllers": string;
|
|
30
15
|
"@typescript-eslint/no-unsafe-assignment"?: never;
|
|
31
|
-
"@typescript-eslint/ban-types"?: never;
|
|
32
16
|
"@clipboard-health/require-http-module-factory"?: never;
|
|
33
17
|
"@clipboard-health/forbid-object-assign"?: never;
|
|
34
18
|
};
|
|
@@ -37,7 +21,6 @@ export declare let overrides: ({
|
|
|
37
21
|
rules: {
|
|
38
22
|
"@clipboard-health/require-http-module-factory": string;
|
|
39
23
|
"@typescript-eslint/no-unsafe-assignment"?: never;
|
|
40
|
-
"@typescript-eslint/ban-types"?: never;
|
|
41
24
|
"@clipboard-health/enforce-ts-rest-in-controllers"?: never;
|
|
42
25
|
"@clipboard-health/forbid-object-assign"?: never;
|
|
43
26
|
};
|
|
@@ -46,26 +29,32 @@ export declare let overrides: ({
|
|
|
46
29
|
rules: {
|
|
47
30
|
"@clipboard-health/forbid-object-assign": string;
|
|
48
31
|
"@typescript-eslint/no-unsafe-assignment"?: never;
|
|
49
|
-
"@typescript-eslint/ban-types"?: never;
|
|
50
32
|
"@clipboard-health/enforce-ts-rest-in-controllers"?: never;
|
|
51
33
|
"@clipboard-health/require-http-module-factory"?: never;
|
|
52
34
|
};
|
|
53
35
|
})[];
|
|
54
36
|
export declare let parser: string;
|
|
55
37
|
export declare namespace parserOptions {
|
|
56
|
-
let
|
|
57
|
-
let tsconfigRootDir: string;
|
|
38
|
+
let projectService: boolean;
|
|
58
39
|
}
|
|
59
40
|
export declare let rules: {
|
|
41
|
+
"@typescript-eslint/ban-types": string;
|
|
42
|
+
"@typescript-eslint/lines-between-class-members": string;
|
|
43
|
+
"@typescript-eslint/padding-line-between-statements": string;
|
|
44
|
+
"@typescript-eslint/no-throw-literal": string;
|
|
45
|
+
"@typescript-eslint/only-throw-error": string;
|
|
60
46
|
"@typescript-eslint/consistent-type-definitions": string[];
|
|
61
47
|
"@typescript-eslint/naming-convention": string;
|
|
62
48
|
"@typescript-eslint/no-unsafe-call": string;
|
|
63
49
|
"@typescript-eslint/no-unused-vars": (string | {
|
|
64
50
|
argsIgnorePattern: string;
|
|
51
|
+
varsIgnorePattern: string;
|
|
52
|
+
caughtErrorsIgnorePattern: string;
|
|
65
53
|
})[];
|
|
66
54
|
"@typescript-eslint/return-await": string[];
|
|
67
55
|
"capitalized-comments": string;
|
|
68
56
|
"class-methods-use-this": string;
|
|
57
|
+
"consistent-return": string;
|
|
69
58
|
curly: string[];
|
|
70
59
|
"import/extensions": string;
|
|
71
60
|
"import/no-cycle": (string | {
|
|
@@ -101,10 +90,12 @@ export declare let rules: {
|
|
|
101
90
|
message: string;
|
|
102
91
|
selector: string;
|
|
103
92
|
})[];
|
|
93
|
+
"no-console": string;
|
|
104
94
|
"no-continue": string;
|
|
105
95
|
"no-return-await": string;
|
|
106
96
|
"no-shadow": string;
|
|
107
97
|
"no-underscore-dangle": string;
|
|
98
|
+
"n/hashbang": string;
|
|
108
99
|
"no-use-before-define": (string | {
|
|
109
100
|
classes: boolean;
|
|
110
101
|
functions: boolean;
|
|
@@ -113,6 +104,22 @@ export declare let rules: {
|
|
|
113
104
|
"security/detect-object-injection": string;
|
|
114
105
|
"simple-import-sort/exports": string;
|
|
115
106
|
"simple-import-sort/imports": string;
|
|
107
|
+
"sonarjs/different-types-comparison": string;
|
|
108
|
+
"sonarjs/function-return-type": string;
|
|
109
|
+
"sonarjs/new-cap": string;
|
|
110
|
+
"sonarjs/no-alphabetical-sort": string;
|
|
111
|
+
"sonarjs/no-duplicate-string": string;
|
|
112
|
+
"sonarjs/no-empty-test-file": string;
|
|
113
|
+
"sonarjs/no-invalid-await": string;
|
|
114
|
+
"sonarjs/no-os-command-from-path": string;
|
|
115
|
+
"sonarjs/no-primitive-wrappers": string;
|
|
116
|
+
"sonarjs/no-try-promise": string;
|
|
117
|
+
"sonarjs/no-unused-expressions": string;
|
|
118
|
+
"sonarjs/no-useless-intersection": string;
|
|
119
|
+
"sonarjs/no-var": string;
|
|
120
|
+
"sonarjs/pseudo-random": string;
|
|
121
|
+
"sonarjs/redundant-type-aliases": string;
|
|
122
|
+
"sonarjs/sonar-max-params": string;
|
|
116
123
|
"unicorn/no-array-callback-reference": string;
|
|
117
124
|
"unicorn/no-array-for-each": string;
|
|
118
125
|
"unicorn/no-array-reduce": string;
|
|
@@ -121,7 +128,6 @@ export declare let rules: {
|
|
|
121
128
|
"unicorn/prevent-abbreviations": (string | {
|
|
122
129
|
ignore: RegExp[];
|
|
123
130
|
})[];
|
|
124
|
-
"sonarjs/no-duplicate-string": string;
|
|
125
131
|
};
|
|
126
132
|
export declare namespace settings {
|
|
127
133
|
namespace node {
|
package/src/index.js
CHANGED
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
const path = require("node:path");
|
|
3
3
|
const fs = require("node:fs");
|
|
4
4
|
/*
|
|
5
|
-
* Since the rules in the eslint-plugin project are in Typescript and are a package
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `core-utils/node_modules/@clipboard-health/eslint-plugin/src/index.js` when trying
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* need to
|
|
5
|
+
* Since the rules in the eslint-plugin project are in Typescript and are a package in this
|
|
6
|
+
* monorepo, it's not straightforward to include that plugin when using the ESLint config to lint
|
|
7
|
+
* the code in this monorepo itself. Nx currently symlinks each package in
|
|
8
|
+
* `node_modules/@clipboard-health` folder to the source folder rather than the output in `dist/`,
|
|
9
|
+
* and this will give an error where it cannot find the file:
|
|
10
|
+
* `core-utils/node_modules/@clipboard-health/eslint-plugin/src/index.js` when trying to lint code
|
|
11
|
+
* for any package in this monorepo.
|
|
12
|
+
*
|
|
13
|
+
* As a workaround, we check if we're inside the core-utils monorepo and skip including the
|
|
14
|
+
* eslint-plugin in the ESLint config. We'll need to fix this in the future if we need to rely on a
|
|
15
|
+
* rule from the eslint-plugin to lint code within core-utils itself.
|
|
15
16
|
*/
|
|
16
17
|
const isOutsideCoreUtilsMonorepo = (() => {
|
|
17
18
|
try {
|
|
@@ -40,7 +41,6 @@ module.exports = {
|
|
|
40
41
|
"eslint:recommended",
|
|
41
42
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
42
43
|
"plugin:@typescript-eslint/recommended",
|
|
43
|
-
"airbnb-base",
|
|
44
44
|
"plugin:eslint-comments/recommended",
|
|
45
45
|
"plugin:expect-type/recommended",
|
|
46
46
|
"plugin:jest/recommended",
|
|
@@ -49,7 +49,7 @@ module.exports = {
|
|
|
49
49
|
"plugin:n/recommended",
|
|
50
50
|
"plugin:no-use-extend-native/recommended",
|
|
51
51
|
"plugin:security/recommended",
|
|
52
|
-
"plugin:sonarjs/recommended",
|
|
52
|
+
"plugin:sonarjs/recommended-legacy",
|
|
53
53
|
"plugin:unicorn/recommended",
|
|
54
54
|
"xo",
|
|
55
55
|
"xo-typescript/space",
|
|
@@ -72,24 +72,6 @@ module.exports = {
|
|
|
72
72
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
|
-
/**
|
|
76
|
-
* Exclude *.dto.ts, null is needed for PATCH endpoints to differentiate empty from optional fields
|
|
77
|
-
* Exclude *.repository.ts, null is needed for our ORMs (prisma and mongoose)
|
|
78
|
-
*/
|
|
79
|
-
{
|
|
80
|
-
files: ["**/*.dto.ts", "**/*.repository.ts", "**/*.repo.ts"],
|
|
81
|
-
rules: {
|
|
82
|
-
"@typescript-eslint/ban-types": [
|
|
83
|
-
"error",
|
|
84
|
-
{
|
|
85
|
-
extendDefaults: true,
|
|
86
|
-
types: {
|
|
87
|
-
null: false,
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
75
|
...(isOutsideCoreUtilsMonorepo
|
|
94
76
|
? [
|
|
95
77
|
{
|
|
@@ -115,11 +97,18 @@ module.exports = {
|
|
|
115
97
|
],
|
|
116
98
|
parser: "@typescript-eslint/parser",
|
|
117
99
|
parserOptions: {
|
|
118
|
-
|
|
119
|
-
tsconfigRootDir: __dirname,
|
|
100
|
+
projectService: true,
|
|
120
101
|
},
|
|
121
102
|
plugins,
|
|
122
103
|
rules: {
|
|
104
|
+
// Start: Deprecated rules removed in v8
|
|
105
|
+
"@typescript-eslint/ban-types": "off",
|
|
106
|
+
"@typescript-eslint/lines-between-class-members": "off",
|
|
107
|
+
"@typescript-eslint/padding-line-between-statements": "off",
|
|
108
|
+
"@typescript-eslint/no-throw-literal": "off",
|
|
109
|
+
// Replacement for `@typescript-eslint/no-throw-literal`
|
|
110
|
+
"@typescript-eslint/only-throw-error": "error",
|
|
111
|
+
// End: Deprecated rules removed in v8
|
|
123
112
|
// See https://github.com/microsoft/TypeScript/wiki/Performance#preferring-interfaces-over-intersections
|
|
124
113
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
125
114
|
// Too many false positives
|
|
@@ -127,12 +116,17 @@ module.exports = {
|
|
|
127
116
|
// Makes functional programming difficult
|
|
128
117
|
"@typescript-eslint/no-unsafe-call": "off",
|
|
129
118
|
// Prefer an escape hatch instead of an outright ban
|
|
130
|
-
"@typescript-eslint/no-unused-vars": [
|
|
119
|
+
"@typescript-eslint/no-unused-vars": [
|
|
120
|
+
"warn",
|
|
121
|
+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" },
|
|
122
|
+
],
|
|
131
123
|
"@typescript-eslint/return-await": ["error", "always"],
|
|
132
124
|
// Breaks code when temporarily commented, adding more friction than the value provided.
|
|
133
125
|
"capitalized-comments": "off",
|
|
134
126
|
// Recommends using static fields instead of moving to a function
|
|
135
127
|
"class-methods-use-this": "off",
|
|
128
|
+
// Not worthwhile in TypeScript
|
|
129
|
+
"consistent-return": "off",
|
|
136
130
|
// Prevent bugs
|
|
137
131
|
curly: ["error", "all"],
|
|
138
132
|
// Our libraries don't use ESM
|
|
@@ -208,6 +202,8 @@ module.exports = {
|
|
|
208
202
|
message: "Enums are one of the few non-type-level extensions to JavaScript, have pitfalls, and require explicit mapping. Use const objects instead.",
|
|
209
203
|
},
|
|
210
204
|
],
|
|
205
|
+
// Use a logger instead.
|
|
206
|
+
"no-console": "error",
|
|
211
207
|
// While continue can be misused, especially with nested loops and labels,
|
|
212
208
|
// it can be useful for preventing code nesting and the existence of the rule
|
|
213
209
|
// caused us to lose time debating its validity
|
|
@@ -219,6 +215,8 @@ module.exports = {
|
|
|
219
215
|
"no-shadow": "off",
|
|
220
216
|
// Polarizing naming convention that isn't followed by us
|
|
221
217
|
"no-underscore-dangle": "off",
|
|
218
|
+
// Duplicate
|
|
219
|
+
"n/hashbang": "off",
|
|
222
220
|
// We use TypeScript where these are caught by the compiler
|
|
223
221
|
"no-use-before-define": ["error", { classes: false, functions: false }],
|
|
224
222
|
/*
|
|
@@ -230,6 +228,24 @@ module.exports = {
|
|
|
230
228
|
"simple-import-sort/exports": "warn",
|
|
231
229
|
// Sort imports and exports
|
|
232
230
|
"simple-import-sort/imports": "warn",
|
|
231
|
+
// Start: Sonar is mostly annoying
|
|
232
|
+
"sonarjs/different-types-comparison": "off",
|
|
233
|
+
"sonarjs/function-return-type": "off",
|
|
234
|
+
"sonarjs/new-cap": "off",
|
|
235
|
+
"sonarjs/no-alphabetical-sort": "off",
|
|
236
|
+
"sonarjs/no-duplicate-string": "off",
|
|
237
|
+
"sonarjs/no-empty-test-file": "off",
|
|
238
|
+
"sonarjs/no-invalid-await": "off",
|
|
239
|
+
"sonarjs/no-os-command-from-path": "off",
|
|
240
|
+
"sonarjs/no-primitive-wrappers": "off",
|
|
241
|
+
"sonarjs/no-try-promise": "off",
|
|
242
|
+
"sonarjs/no-unused-expressions": "off",
|
|
243
|
+
"sonarjs/no-useless-intersection": "off",
|
|
244
|
+
"sonarjs/no-var": "off",
|
|
245
|
+
"sonarjs/pseudo-random": "off",
|
|
246
|
+
"sonarjs/redundant-type-aliases": "off",
|
|
247
|
+
"sonarjs/sonar-max-params": "off",
|
|
248
|
+
// End: Sonar is mostly annoying
|
|
233
249
|
// Makes functional programming difficult
|
|
234
250
|
"unicorn/no-array-callback-reference": "off",
|
|
235
251
|
// "Better readability" is subjective
|
|
@@ -245,8 +261,6 @@ module.exports = {
|
|
|
245
261
|
"error",
|
|
246
262
|
{ ignore: [/config/i, /params/i, /props/i, /ref/i] },
|
|
247
263
|
],
|
|
248
|
-
// There are cases where duplicating strings is ok (tests, contracts, etc...)
|
|
249
|
-
"sonarjs/no-duplicate-string": "off",
|
|
250
264
|
},
|
|
251
265
|
settings: { node: { version: ">=18.15.0" } },
|
|
252
266
|
};
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/index.js"],"names":[],"mappings":";AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAClC,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAE9B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/index.js"],"names":[],"mappings":";AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAClC,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAE9B;;;;;;;;;;;;GAYG;AACH,MAAM,0BAA0B,GAAG,CAAC,GAAG,EAAE;IACvC,IAAI,CAAC;QACH,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;QACzE,OAAO,WAAW,CAAC,IAAI,KAAK,8BAA8B,CAAC;IAC7D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,OAAO,GAAG;IACd,aAAa;IACb,MAA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AAE,CAAC,OAAO,EAAE,YAAY,CAAC;QAC3C,kCAAkC,EAAE,KAAK;QAEzC,4BAA4B,EAAE,MAAM;QAEpC,2BAA2B;QAC3B,4BAA4B,EAAE,MAAM;QAEpC,kCAAkC;QAClC,oCAAoC,EAAE,KAAK;QAC3C,8BAA8B,EAAE,KAAK;QACrC,iBAAiB,EAAE,KAAK;QACxB,8BAA8B,EAAE,KAAK;QACrC,6BAA6B,EAAE,KAAK;QACpC,4BAA4B,EAAE,KAAK;QACnC,0BAA0B,EAAE,KAAK;QACjC,iCAAiC,EAAE,KAAK;QACxC,+BAA+B,EAAE,KAAK;QACtC,wBAAwB,EAAE,KAAK;QAC/B,+BAA+B,EAAE,KAAK;QACtC,iCAAiC,EAAE,KAAK;QACxC,gBAAgB,EAAE,KAAK;QACvB,uBAAuB,EAAE,KAAK;QAC9B,gCAAgC,EAAE,KAAK;QACvC,0BAA0B,EAAE,KAAK;QACjC,gCAAgC;QAEhC,yCAAyC;QACzC,qCAAqC,EAAE,KAAK;QAE5C,qCAAqC;QACrC,2BAA2B,EAAE,KAAK;QAElC,qCAAqC;QACrC,yBAAyB,EAAE,KAAK;QAEhC,wCAAwC;QACxC,iBAAiB,EAAE,KAAK;QAExB,8BAA8B;QAC9B,uBAAuB,EAAE,KAAK;QAE9B,8CAA8C;QAC9C,+BAA+B,EAAE;YAC/B,OAAO;YACP,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE;SACrD;KACF;IACD,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;CAC7C,CAAC"}
|
package/src/react.d.ts
CHANGED
package/src/react.js
CHANGED
package/src/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/react.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACtC,KAAK,EAAE;QACL,sDAAsD;QACtD,8BAA8B,EAAE,KAAK;KACtC;IACD,aAAa,EAAE;QACb,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/react.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACtC,KAAK,EAAE;QACL,sDAAsD;QACtD,8BAA8B,EAAE,KAAK;KACtC;IACD,aAAa,EAAE;QACb,OAAO,EAAE,eAAe;KACzB;CACF,CAAC"}
|