@storm-software/eslint 0.0.1 → 0.2.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/CHANGELOG.md +22 -0
- package/{base.cjs → base.js} +1 -27
- package/{graphql.cjs → graphql.js} +1 -25
- package/index.js +1465 -0
- package/{javascript.cjs → javascript.js} +2 -31
- package/jest.js +12 -0
- package/{json.cjs → json.js} +1 -27
- package/{mdx.cjs → mdx.js} +1 -27
- package/meta.json +1 -1
- package/{next.cjs → next.js} +1 -14
- package/package.json +6 -6
- package/packages/eslint/src/base.d.ts +1 -0
- package/packages/eslint/src/constants.d.ts +20 -0
- package/packages/eslint/src/graphql.d.ts +1 -0
- package/packages/eslint/src/index.d.ts +19 -0
- package/packages/eslint/src/javascript.d.ts +1 -0
- package/packages/eslint/src/jest.d.ts +1 -0
- package/packages/eslint/src/json.d.ts +1 -0
- package/packages/eslint/src/mdx.d.ts +1 -0
- package/packages/eslint/src/next.d.ts +1 -0
- package/packages/eslint/src/nx.d.ts +1 -0
- package/packages/eslint/src/react.d.ts +1 -0
- package/packages/eslint/src/recommended.d.ts +1 -0
- package/packages/eslint/src/rules/import.d.ts +3 -0
- package/packages/eslint/src/rules/jsx-a11y.d.ts +3 -0
- package/packages/eslint/src/rules/react.d.ts +3 -0
- package/packages/eslint/src/rules/storm.d.ts +3 -0
- package/packages/eslint/src/rules/ts-docs.d.ts +3 -0
- package/packages/eslint/src/rules/unicorn.d.ts +3 -0
- package/packages/eslint/src/typescript.d.ts +1 -0
- package/packages/eslint/src/yml.d.ts +1 -0
- package/{react.cjs → react.js} +1 -28
- package/{recommended.cjs → recommended.js} +1 -27
- package/{typescript.cjs → typescript.js} +2 -31
- package/{yml.cjs → yml.js} +1 -27
- package/index.cjs +0 -949
- package/jest.cjs +0 -36
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// packages/eslint/src/javascript.ts
|
|
20
|
-
var javascript_exports = {};
|
|
21
|
-
__export(javascript_exports, {
|
|
22
|
-
default: () => javascript_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(javascript_exports);
|
|
25
|
-
|
|
26
1
|
// packages/eslint/src/rules/import.ts
|
|
27
2
|
var config = {
|
|
28
3
|
/**
|
|
@@ -60,10 +35,7 @@ var config = {
|
|
|
60
35
|
*
|
|
61
36
|
* 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
|
|
62
37
|
*/
|
|
63
|
-
"import/no-extraneous-dependencies": [
|
|
64
|
-
"error",
|
|
65
|
-
{ includeInternal: true, includeTypes: true }
|
|
66
|
-
],
|
|
38
|
+
"import/no-extraneous-dependencies": ["error", { includeInternal: true, includeTypes: true }],
|
|
67
39
|
/**
|
|
68
40
|
* Disallow mutable exports.
|
|
69
41
|
*
|
|
@@ -373,7 +345,7 @@ var config3 = {
|
|
|
373
345
|
var unicorn_default = config3;
|
|
374
346
|
|
|
375
347
|
// packages/eslint/src/javascript.ts
|
|
376
|
-
|
|
348
|
+
module.exports = {
|
|
377
349
|
overrides: [
|
|
378
350
|
{
|
|
379
351
|
files: ["*.js", "*.jsx"],
|
|
@@ -387,4 +359,3 @@ var config4 = {
|
|
|
387
359
|
}
|
|
388
360
|
]
|
|
389
361
|
};
|
|
390
|
-
var javascript_default = config4;
|
package/jest.js
ADDED
package/{json.cjs → json.js}
RENAMED
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// packages/eslint/src/json.ts
|
|
20
|
-
var json_exports = {};
|
|
21
|
-
__export(json_exports, {
|
|
22
|
-
default: () => json_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(json_exports);
|
|
25
|
-
|
|
26
1
|
// packages/eslint/src/constants.ts
|
|
27
2
|
var RESTRICTED_SYNTAX = [
|
|
28
3
|
{
|
|
@@ -86,7 +61,7 @@ var JSONC_FILES = [
|
|
|
86
61
|
"nx.json",
|
|
87
62
|
".vscode/launch.json"
|
|
88
63
|
];
|
|
89
|
-
|
|
64
|
+
module.exports = {
|
|
90
65
|
root: true,
|
|
91
66
|
overrides: [
|
|
92
67
|
{
|
|
@@ -119,4 +94,3 @@ var config = {
|
|
|
119
94
|
}
|
|
120
95
|
]
|
|
121
96
|
};
|
|
122
|
-
var json_default = config;
|
package/{mdx.cjs → mdx.js}
RENAMED
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// packages/eslint/src/mdx.ts
|
|
20
|
-
var mdx_exports = {};
|
|
21
|
-
__export(mdx_exports, {
|
|
22
|
-
default: () => mdx_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(mdx_exports);
|
|
25
|
-
|
|
26
1
|
// packages/eslint/src/constants.ts
|
|
27
2
|
var RESTRICTED_SYNTAX = [
|
|
28
3
|
{
|
|
@@ -80,7 +55,7 @@ var REACT_RESTRICTED_SYNTAX = [
|
|
|
80
55
|
var CODE_BLOCK = "**/*.md{,x}/*";
|
|
81
56
|
|
|
82
57
|
// packages/eslint/src/mdx.ts
|
|
83
|
-
|
|
58
|
+
module.exports = {
|
|
84
59
|
overrides: [
|
|
85
60
|
{
|
|
86
61
|
files: "*.md{,x}",
|
|
@@ -141,4 +116,3 @@ var config = {
|
|
|
141
116
|
}
|
|
142
117
|
]
|
|
143
118
|
};
|
|
144
|
-
var mdx_default = config;
|
package/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/eslint/src/constants.ts":{"bytes":3659,"imports":[],"format":"esm"},"packages/eslint/src/base.ts":{"bytes":
|
|
1
|
+
{"inputs":{"packages/eslint/src/constants.ts":{"bytes":3659,"imports":[],"format":"esm"},"packages/eslint/src/base.ts":{"bytes":5990,"imports":[{"path":"packages/eslint/src/constants.ts","kind":"import-statement","original":"./constants"}],"format":"cjs"},"packages/eslint/src/json.ts":{"bytes":905,"imports":[{"path":"packages/eslint/src/constants.ts","kind":"import-statement","original":"./constants"}],"format":"cjs"},"packages/eslint/src/next.ts":{"bytes":854,"imports":[{"path":"packages/eslint/src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"next/babel","kind":"require-resolve","external":true}],"format":"cjs"},"packages/eslint/src/recommended.ts":{"bytes":1838,"imports":[{"path":"packages/eslint/src/constants.ts","kind":"import-statement","original":"./constants"}],"format":"cjs"},"packages/eslint/src/rules/react.ts":{"bytes":3805,"imports":[],"format":"esm"},"packages/eslint/src/rules/ts-docs.ts":{"bytes":295,"imports":[],"format":"esm"},"packages/eslint/src/react.ts":{"bytes":388,"imports":[{"path":"packages/eslint/src/rules/react.ts","kind":"import-statement","original":"./rules/react"},{"path":"packages/eslint/src/rules/ts-docs.ts","kind":"import-statement","original":"./rules/ts-docs"}],"format":"cjs"},"packages/eslint/src/rules/import.ts":{"bytes":2861,"imports":[],"format":"esm"},"packages/eslint/src/rules/jsx-a11y.ts":{"bytes":192,"imports":[],"format":"esm"},"packages/eslint/src/rules/storm.ts":{"bytes":6500,"imports":[],"format":"esm"},"packages/eslint/src/rules/unicorn.ts":{"bytes":637,"imports":[],"format":"esm"},"packages/eslint/src/javascript.ts":{"bytes":386,"imports":[{"path":"packages/eslint/src/rules/import.ts","kind":"import-statement","original":"./rules/import"},{"path":"packages/eslint/src/rules/storm.ts","kind":"import-statement","original":"./rules/storm"},{"path":"packages/eslint/src/rules/unicorn.ts","kind":"import-statement","original":"./rules/unicorn"}],"format":"cjs"},"packages/eslint/src/typescript.ts":{"bytes":5776,"imports":[{"path":"packages/eslint/src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"packages/eslint/src/rules/import.ts","kind":"import-statement","original":"./rules/import"},{"path":"packages/eslint/src/rules/storm.ts","kind":"import-statement","original":"./rules/storm"},{"path":"packages/eslint/src/rules/ts-docs.ts","kind":"import-statement","original":"./rules/ts-docs"},{"path":"packages/eslint/src/rules/unicorn.ts","kind":"import-statement","original":"./rules/unicorn"}],"format":"cjs"},"packages/eslint/src/yml.ts":{"bytes":373,"imports":[{"path":"packages/eslint/src/constants.ts","kind":"import-statement","original":"./constants"}],"format":"cjs"},"packages/eslint/src/nx.ts":{"bytes":1747,"imports":[],"format":"cjs"},"packages/eslint/src/mdx.ts":{"bytes":1618,"imports":[{"path":"packages/eslint/src/constants.ts","kind":"import-statement","original":"./constants"}],"format":"cjs"},"packages/eslint/src/graphql.ts":{"bytes":5572,"imports":[],"format":"cjs"},"packages/eslint/src/jest.ts":{"bytes":179,"imports":[],"format":"cjs"},"packages/eslint/src/index.ts":{"bytes":530,"imports":[{"path":"packages/eslint/src/base.ts","kind":"import-statement","original":"./base"},{"path":"packages/eslint/src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"packages/eslint/src/json.ts","kind":"import-statement","original":"./json"},{"path":"packages/eslint/src/next.ts","kind":"import-statement","original":"./next"},{"path":"packages/eslint/src/recommended.ts","kind":"import-statement","original":"./recommended"},{"path":"packages/eslint/src/react.ts","kind":"import-statement","original":"./react"},{"path":"packages/eslint/src/rules/import.ts","kind":"import-statement","original":"./rules/import"},{"path":"packages/eslint/src/rules/jsx-a11y.ts","kind":"import-statement","original":"./rules/jsx-a11y"},{"path":"packages/eslint/src/rules/react.ts","kind":"import-statement","original":"./rules/react"},{"path":"packages/eslint/src/rules/storm.ts","kind":"import-statement","original":"./rules/storm"},{"path":"packages/eslint/src/rules/ts-docs.ts","kind":"import-statement","original":"./rules/ts-docs"},{"path":"packages/eslint/src/rules/unicorn.ts","kind":"import-statement","original":"./rules/unicorn"},{"path":"packages/eslint/src/javascript.ts","kind":"import-statement","original":"./javascript"},{"path":"packages/eslint/src/typescript.ts","kind":"import-statement","original":"./typescript"},{"path":"packages/eslint/src/yml.ts","kind":"import-statement","original":"./yml"},{"path":"packages/eslint/src/nx.ts","kind":"import-statement","original":"./nx"},{"path":"packages/eslint/src/mdx.ts","kind":"import-statement","original":"./mdx"},{"path":"packages/eslint/src/graphql.ts","kind":"import-statement","original":"./graphql"},{"path":"packages/eslint/src/jest.ts","kind":"import-statement","original":"./jest"}],"format":"esm"}},"outputs":{"dist/packages/eslint/index.js":{"imports":[{"path":"next/babel","kind":"require-resolve","external":true}],"exports":[],"entryPoint":"packages/eslint/src/index.ts","inputs":{"packages/eslint/src/constants.ts":{"bytesInOutput":4000},"packages/eslint/src/base.ts":{"bytesInOutput":6559},"packages/eslint/src/json.ts":{"bytesInOutput":1131},"packages/eslint/src/next.ts":{"bytesInOutput":1095},"packages/eslint/src/recommended.ts":{"bytesInOutput":2237},"packages/eslint/src/rules/react.ts":{"bytesInOutput":4243},"packages/eslint/src/rules/ts-docs.ts":{"bytesInOutput":380},"packages/eslint/src/react.ts":{"bytesInOutput":515},"packages/eslint/src/rules/import.ts":{"bytesInOutput":3306},"packages/eslint/src/rules/storm.ts":{"bytesInOutput":7469},"packages/eslint/src/rules/unicorn.ts":{"bytesInOutput":766},"packages/eslint/src/javascript.ts":{"bytesInOutput":487},"packages/eslint/src/typescript.ts":{"bytesInOutput":6273},"packages/eslint/src/yml.ts":{"bytesInOutput":500},"packages/eslint/src/nx.ts":{"bytesInOutput":2081},"packages/eslint/src/mdx.ts":{"bytesInOutput":1957},"packages/eslint/src/graphql.ts":{"bytesInOutput":6152},"packages/eslint/src/jest.ts":{"bytesInOutput":317},"packages/eslint/src/index.ts":{"bytesInOutput":1313}},"bytes":53491},"dist/packages/eslint/base.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/base.ts","inputs":{"packages/eslint/src/constants.ts":{"bytesInOutput":3374},"packages/eslint/src/base.ts":{"bytesInOutput":5915}},"bytes":9357},"dist/packages/eslint/graphql.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/graphql.ts","inputs":{"packages/eslint/src/graphql.ts":{"bytesInOutput":5572}},"bytes":5606},"dist/packages/eslint/javascript.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/javascript.ts","inputs":{"packages/eslint/src/rules/import.ts":{"bytesInOutput":2853},"packages/eslint/src/rules/storm.ts":{"bytesInOutput":6445},"packages/eslint/src/rules/unicorn.ts":{"bytesInOutput":584},"packages/eslint/src/javascript.ts":{"bytesInOutput":268}},"bytes":10307},"dist/packages/eslint/json.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/json.ts","inputs":{"packages/eslint/src/constants.ts":{"bytesInOutput":2658},"packages/eslint/src/json.ts":{"bytesInOutput":859}},"bytes":3585},"dist/packages/eslint/jest.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/jest.ts","inputs":{"packages/eslint/src/jest.ts":{"bytesInOutput":179}},"bytes":210},"dist/packages/eslint/next.js":{"imports":[{"path":"next/babel","kind":"require-resolve","external":true}],"exports":[],"entryPoint":"packages/eslint/src/next.ts","inputs":{"packages/eslint/src/constants.ts":{"bytesInOutput":2700},"packages/eslint/src/next.ts":{"bytesInOutput":807}},"bytes":4738},"dist/packages/eslint/react.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/react.ts","inputs":{"packages/eslint/src/rules/react.ts":{"bytesInOutput":3748},"packages/eslint/src/rules/ts-docs.ts":{"bytesInOutput":242},"packages/eslint/src/react.ts":{"bytesInOutput":309}},"bytes":4411},"dist/packages/eslint/mdx.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/mdx.ts","inputs":{"packages/eslint/src/constants.ts":{"bytesInOutput":2658},"packages/eslint/src/mdx.ts":{"bytesInOutput":1599}},"bytes":4324},"dist/packages/eslint/yml.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/yml.ts","inputs":{"packages/eslint/src/constants.ts":{"bytesInOutput":2658},"packages/eslint/src/yml.ts":{"bytesInOutput":330}},"bytes":3055},"dist/packages/eslint/typescript.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/typescript.ts","inputs":{"packages/eslint/src/constants.ts":{"bytesInOutput":3374},"packages/eslint/src/rules/import.ts":{"bytesInOutput":2853},"packages/eslint/src/rules/storm.ts":{"bytesInOutput":6445},"packages/eslint/src/rules/ts-docs.ts":{"bytesInOutput":242},"packages/eslint/src/rules/unicorn.ts":{"bytesInOutput":584},"packages/eslint/src/typescript.ts":{"bytesInOutput":5548}},"bytes":19281},"dist/packages/eslint/recommended.js":{"imports":[],"exports":[],"entryPoint":"packages/eslint/src/recommended.ts","inputs":{"packages/eslint/src/constants.ts":{"bytesInOutput":2728},"packages/eslint/src/recommended.ts":{"bytesInOutput":1779}},"bytes":4582}}}
|
package/{next.cjs → next.js}
RENAMED
|
@@ -4,10 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
7
|
var __copyProps = (to, from, except, desc) => {
|
|
12
8
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
9
|
for (let key of __getOwnPropNames(from))
|
|
@@ -24,14 +20,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
21
|
mod
|
|
26
22
|
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// packages/eslint/src/next.ts
|
|
30
|
-
var next_exports = {};
|
|
31
|
-
__export(next_exports, {
|
|
32
|
-
default: () => next_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(next_exports);
|
|
35
23
|
|
|
36
24
|
// packages/eslint/src/constants.ts
|
|
37
25
|
var RESTRICTED_SYNTAX = [
|
|
@@ -101,7 +89,7 @@ var babelOptions = {
|
|
|
101
89
|
}
|
|
102
90
|
})()
|
|
103
91
|
};
|
|
104
|
-
|
|
92
|
+
module.exports = {
|
|
105
93
|
root: true,
|
|
106
94
|
ignorePatterns: ["next-env.d.ts"],
|
|
107
95
|
extends: ["plugin:@next/next/recommended"],
|
|
@@ -134,4 +122,3 @@ var config = {
|
|
|
134
122
|
}
|
|
135
123
|
]
|
|
136
124
|
};
|
|
137
|
-
var next_default = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
|
|
6
6
|
"repository": {
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"private": false,
|
|
23
23
|
"exports": {
|
|
24
|
-
".": "./
|
|
25
|
-
"./index": "./
|
|
26
|
-
"./*": "
|
|
27
|
-
"./rules": "./
|
|
28
|
-
"./rules/*": "./
|
|
24
|
+
".": "./index.js",
|
|
25
|
+
"./index": "./index.js",
|
|
26
|
+
"./*": "./*.js",
|
|
27
|
+
"./rules": "./rules/index.js",
|
|
28
|
+
"./rules/*": "./rules/*.js",
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const RESTRICTED_SYNTAX: {
|
|
2
|
+
selector: string;
|
|
3
|
+
message: string;
|
|
4
|
+
}[];
|
|
5
|
+
export declare const REACT_RESTRICTED_SYNTAX: {
|
|
6
|
+
selector: string;
|
|
7
|
+
message: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const RESTRICTED_GLOBALS: (string | {
|
|
10
|
+
name: string;
|
|
11
|
+
message: string;
|
|
12
|
+
})[];
|
|
13
|
+
export declare const RESTRICTED_MODULES: {
|
|
14
|
+
name: string;
|
|
15
|
+
message: string;
|
|
16
|
+
}[];
|
|
17
|
+
export declare const JS_FILES: string[];
|
|
18
|
+
export declare const CODE_BLOCK = "**/*.md{,x}/*";
|
|
19
|
+
export declare const CODE_FILE = "*.{,c,m}{j,t}s{,x}";
|
|
20
|
+
export declare const TS_FILE = "*.{,c,m}ts{,x}";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from "./base";
|
|
2
|
+
export * from "./constants";
|
|
3
|
+
export * from "./json";
|
|
4
|
+
export * from "./next";
|
|
5
|
+
export * from "./recommended";
|
|
6
|
+
export * from "./react";
|
|
7
|
+
export * from "./rules/import";
|
|
8
|
+
export * from "./rules/jsx-a11y";
|
|
9
|
+
export * from "./rules/react";
|
|
10
|
+
export * from "./rules/storm";
|
|
11
|
+
export * from "./rules/ts-docs";
|
|
12
|
+
export * from "./rules/unicorn";
|
|
13
|
+
export * from "./javascript";
|
|
14
|
+
export * from "./typescript";
|
|
15
|
+
export * from "./yml";
|
|
16
|
+
export * from "./nx";
|
|
17
|
+
export * from "./mdx";
|
|
18
|
+
export * from "./graphql";
|
|
19
|
+
export * from "./jest";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/{react.cjs → react.js}
RENAMED
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// packages/eslint/src/react.ts
|
|
20
|
-
var react_exports = {};
|
|
21
|
-
__export(react_exports, {
|
|
22
|
-
default: () => react_default2
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(react_exports);
|
|
25
|
-
|
|
26
1
|
// packages/eslint/src/rules/react.ts
|
|
27
2
|
var config = {
|
|
28
3
|
// We recommend using TypeScript over `prop-types`, as `prop-types` can add
|
|
@@ -137,8 +112,7 @@ var config2 = {
|
|
|
137
112
|
var ts_docs_default = config2;
|
|
138
113
|
|
|
139
114
|
// packages/eslint/src/react.ts
|
|
140
|
-
|
|
141
|
-
root: true,
|
|
115
|
+
module.exports = {
|
|
142
116
|
extends: [
|
|
143
117
|
"plugin:react/recommended",
|
|
144
118
|
"plugin:react-hooks/recommended",
|
|
@@ -156,4 +130,3 @@ var config3 = {
|
|
|
156
130
|
...react_default
|
|
157
131
|
}
|
|
158
132
|
};
|
|
159
|
-
var react_default2 = config3;
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// packages/eslint/src/recommended.ts
|
|
20
|
-
var recommended_exports = {};
|
|
21
|
-
__export(recommended_exports, {
|
|
22
|
-
default: () => recommended_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(recommended_exports);
|
|
25
|
-
|
|
26
1
|
// packages/eslint/src/constants.ts
|
|
27
2
|
var RESTRICTED_SYNTAX = [
|
|
28
3
|
{
|
|
@@ -82,7 +57,7 @@ var CODE_FILE = "*.{,c,m}{j,t}s{,x}";
|
|
|
82
57
|
var TS_FILE = "*.{,c,m}ts{,x}";
|
|
83
58
|
|
|
84
59
|
// packages/eslint/src/recommended.ts
|
|
85
|
-
|
|
60
|
+
module.exports = {
|
|
86
61
|
extends: [
|
|
87
62
|
"./base",
|
|
88
63
|
"./nx",
|
|
@@ -164,4 +139,3 @@ var config = {
|
|
|
164
139
|
"BigInt": true
|
|
165
140
|
}
|
|
166
141
|
};
|
|
167
|
-
var recommended_default = config;
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// packages/eslint/src/typescript.ts
|
|
20
|
-
var typescript_exports = {};
|
|
21
|
-
__export(typescript_exports, {
|
|
22
|
-
default: () => typescript_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(typescript_exports);
|
|
25
|
-
|
|
26
1
|
// packages/eslint/src/constants.ts
|
|
27
2
|
var RESTRICTED_SYNTAX = [
|
|
28
3
|
{
|
|
@@ -135,10 +110,7 @@ var config = {
|
|
|
135
110
|
*
|
|
136
111
|
* 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
|
|
137
112
|
*/
|
|
138
|
-
"import/no-extraneous-dependencies": [
|
|
139
|
-
"error",
|
|
140
|
-
{ includeInternal: true, includeTypes: true }
|
|
141
|
-
],
|
|
113
|
+
"import/no-extraneous-dependencies": ["error", { includeInternal: true, includeTypes: true }],
|
|
142
114
|
/**
|
|
143
115
|
* Disallow mutable exports.
|
|
144
116
|
*
|
|
@@ -459,7 +431,7 @@ var config4 = {
|
|
|
459
431
|
var unicorn_default = config4;
|
|
460
432
|
|
|
461
433
|
// packages/eslint/src/typescript.ts
|
|
462
|
-
|
|
434
|
+
module.exports = {
|
|
463
435
|
root: true,
|
|
464
436
|
overrides: [
|
|
465
437
|
{
|
|
@@ -589,4 +561,3 @@ var config5 = {
|
|
|
589
561
|
...storm_default
|
|
590
562
|
}
|
|
591
563
|
};
|
|
592
|
-
var typescript_default = config5;
|
package/{yml.cjs → yml.js}
RENAMED
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// packages/eslint/src/yml.ts
|
|
20
|
-
var yml_exports = {};
|
|
21
|
-
__export(yml_exports, {
|
|
22
|
-
default: () => yml_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(yml_exports);
|
|
25
|
-
|
|
26
1
|
// packages/eslint/src/constants.ts
|
|
27
2
|
var RESTRICTED_SYNTAX = [
|
|
28
3
|
{
|
|
@@ -80,7 +55,7 @@ var REACT_RESTRICTED_SYNTAX = [
|
|
|
80
55
|
var CODE_BLOCK = "**/*.md{,x}/*";
|
|
81
56
|
|
|
82
57
|
// packages/eslint/src/yml.ts
|
|
83
|
-
|
|
58
|
+
module.exports = {
|
|
84
59
|
ignorePatterns: ["pnpm-lock.yaml"],
|
|
85
60
|
overrides: [
|
|
86
61
|
{
|
|
@@ -94,4 +69,3 @@ var config = {
|
|
|
94
69
|
}
|
|
95
70
|
]
|
|
96
71
|
};
|
|
97
|
-
var yml_default = config;
|