@so1ve/eslint-config 1.0.0-alpha.17 → 1.0.0-alpha.18
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/index.cjs +32 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +13 -1
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -19,6 +19,7 @@ var pluginJsonSchemaValidator = require('eslint-plugin-json-schema-validator');
|
|
|
19
19
|
var pluginJsonc = require('eslint-plugin-jsonc');
|
|
20
20
|
var pluginMdx = require('eslint-plugin-mdx');
|
|
21
21
|
var pluginNode = require('eslint-plugin-n');
|
|
22
|
+
var pluginNoAwaitInPromise = require('eslint-plugin-no-await-in-promise');
|
|
22
23
|
var pluginNoOnlyTests = require('eslint-plugin-no-only-tests');
|
|
23
24
|
var pluginOnlyError = require('eslint-plugin-only-error');
|
|
24
25
|
var pluginPromise = require('eslint-plugin-promise');
|
|
@@ -41,6 +42,24 @@ var localPkg = require('local-pkg');
|
|
|
41
42
|
|
|
42
43
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
43
44
|
|
|
45
|
+
function _interopNamespace(e) {
|
|
46
|
+
if (e && e.__esModule) return e;
|
|
47
|
+
var n = Object.create(null);
|
|
48
|
+
if (e) {
|
|
49
|
+
Object.keys(e).forEach(function (k) {
|
|
50
|
+
if (k !== 'default') {
|
|
51
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
52
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return e[k]; }
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
n["default"] = e;
|
|
60
|
+
return Object.freeze(n);
|
|
61
|
+
}
|
|
62
|
+
|
|
44
63
|
var pluginComments__default = /*#__PURE__*/_interopDefaultLegacy(pluginComments);
|
|
45
64
|
var pluginHtml__default = /*#__PURE__*/_interopDefaultLegacy(pluginHtml);
|
|
46
65
|
var parserHtml__default = /*#__PURE__*/_interopDefaultLegacy(parserHtml);
|
|
@@ -58,6 +77,7 @@ var pluginJsonSchemaValidator__default = /*#__PURE__*/_interopDefaultLegacy(plug
|
|
|
58
77
|
var pluginJsonc__default = /*#__PURE__*/_interopDefaultLegacy(pluginJsonc);
|
|
59
78
|
var pluginMdx__default = /*#__PURE__*/_interopDefaultLegacy(pluginMdx);
|
|
60
79
|
var pluginNode__default = /*#__PURE__*/_interopDefaultLegacy(pluginNode);
|
|
80
|
+
var pluginNoAwaitInPromise__namespace = /*#__PURE__*/_interopNamespace(pluginNoAwaitInPromise);
|
|
61
81
|
var pluginNoOnlyTests__default = /*#__PURE__*/_interopDefaultLegacy(pluginNoOnlyTests);
|
|
62
82
|
var pluginOnlyError__default = /*#__PURE__*/_interopDefaultLegacy(pluginOnlyError);
|
|
63
83
|
var pluginPromise__default = /*#__PURE__*/_interopDefaultLegacy(pluginPromise);
|
|
@@ -420,7 +440,8 @@ const javascript = ({
|
|
|
420
440
|
"sort-imports": pluginSortImports__default["default"],
|
|
421
441
|
"array-func": pluginArrayFunc__default["default"],
|
|
422
442
|
"json-schema-validator": pluginJsonSchemaValidator__default["default"],
|
|
423
|
-
"regexp": pluginRegexp__default["default"]
|
|
443
|
+
"regexp": pluginRegexp__default["default"],
|
|
444
|
+
"no-await-in-promise": pluginNoAwaitInPromise__namespace
|
|
424
445
|
}
|
|
425
446
|
},
|
|
426
447
|
{
|
|
@@ -725,10 +746,19 @@ const javascript = ({
|
|
|
725
746
|
"sort-imports/exports": "error",
|
|
726
747
|
// array-func
|
|
727
748
|
"array-func/prefer-array-from": "off",
|
|
749
|
+
"array-func/prefer-flat": "off",
|
|
750
|
+
// Handled by unicorn
|
|
751
|
+
"array-func/from-map": "off",
|
|
752
|
+
// Conflicts with unicorn/prefer-spread
|
|
753
|
+
"array-func/no-unnecessary-this-arg": "error",
|
|
754
|
+
"array-func/avoid-reverse": "error",
|
|
755
|
+
"array-func/prefer-flat-map": "error",
|
|
728
756
|
// json-schema-validator
|
|
729
757
|
"json-schema-validator/no-invalid": "warn",
|
|
730
758
|
// regexp
|
|
731
759
|
"regexp/no-unused-capturing-group": "warn",
|
|
760
|
+
// no-await-in-promise
|
|
761
|
+
"no-await-in-promise/no-await-in-promise": "error",
|
|
732
762
|
...overrides
|
|
733
763
|
}
|
|
734
764
|
},
|
|
@@ -1665,6 +1695,7 @@ Object.defineProperty(exports, 'pluginNode', {
|
|
|
1665
1695
|
enumerable: true,
|
|
1666
1696
|
get: function () { return pluginNode__default["default"]; }
|
|
1667
1697
|
});
|
|
1698
|
+
exports.pluginNoAwaitInPromise = pluginNoAwaitInPromise__namespace;
|
|
1668
1699
|
Object.defineProperty(exports, 'pluginNoOnlyTests', {
|
|
1669
1700
|
enumerable: true,
|
|
1670
1701
|
get: function () { return pluginNoOnlyTests__default["default"]; }
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export { default as pluginJsonSchemaValidator } from 'eslint-plugin-json-schema-
|
|
|
19
19
|
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
20
20
|
export { default as pluginMdx } from 'eslint-plugin-mdx';
|
|
21
21
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
22
|
+
import * as eslintPluginNoAwaitInPromise from 'eslint-plugin-no-await-in-promise';
|
|
23
|
+
export { eslintPluginNoAwaitInPromise as pluginNoAwaitInPromise };
|
|
22
24
|
export { default as pluginNoOnlyTests } from 'eslint-plugin-no-only-tests';
|
|
23
25
|
export { default as pluginOnlyError } from 'eslint-plugin-only-error';
|
|
24
26
|
export { default as pluginPromise } from 'eslint-plugin-promise';
|
package/dist/index.mjs
CHANGED
|
@@ -31,6 +31,8 @@ import pluginMdx from 'eslint-plugin-mdx';
|
|
|
31
31
|
export { default as pluginMdx } from 'eslint-plugin-mdx';
|
|
32
32
|
import pluginNode from 'eslint-plugin-n';
|
|
33
33
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
34
|
+
import * as pluginNoAwaitInPromise from 'eslint-plugin-no-await-in-promise';
|
|
35
|
+
export { pluginNoAwaitInPromise };
|
|
34
36
|
import pluginNoOnlyTests from 'eslint-plugin-no-only-tests';
|
|
35
37
|
export { default as pluginNoOnlyTests } from 'eslint-plugin-no-only-tests';
|
|
36
38
|
import pluginOnlyError from 'eslint-plugin-only-error';
|
|
@@ -409,7 +411,8 @@ const javascript = ({
|
|
|
409
411
|
"sort-imports": pluginSortImports,
|
|
410
412
|
"array-func": pluginArrayFunc,
|
|
411
413
|
"json-schema-validator": pluginJsonSchemaValidator,
|
|
412
|
-
"regexp": pluginRegexp
|
|
414
|
+
"regexp": pluginRegexp,
|
|
415
|
+
"no-await-in-promise": pluginNoAwaitInPromise
|
|
413
416
|
}
|
|
414
417
|
},
|
|
415
418
|
{
|
|
@@ -714,10 +717,19 @@ const javascript = ({
|
|
|
714
717
|
"sort-imports/exports": "error",
|
|
715
718
|
// array-func
|
|
716
719
|
"array-func/prefer-array-from": "off",
|
|
720
|
+
"array-func/prefer-flat": "off",
|
|
721
|
+
// Handled by unicorn
|
|
722
|
+
"array-func/from-map": "off",
|
|
723
|
+
// Conflicts with unicorn/prefer-spread
|
|
724
|
+
"array-func/no-unnecessary-this-arg": "error",
|
|
725
|
+
"array-func/avoid-reverse": "error",
|
|
726
|
+
"array-func/prefer-flat-map": "error",
|
|
717
727
|
// json-schema-validator
|
|
718
728
|
"json-schema-validator/no-invalid": "warn",
|
|
719
729
|
// regexp
|
|
720
730
|
"regexp/no-unused-capturing-group": "warn",
|
|
731
|
+
// no-await-in-promise
|
|
732
|
+
"no-await-in-promise/no-await-in-promise": "error",
|
|
721
733
|
...overrides
|
|
722
734
|
}
|
|
723
735
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/eslint-config",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.18",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
|
|
5
5
|
"description": "Ray's eslint config.",
|
|
6
6
|
"keywords": [
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"eslint-plugin-jsonc": "^2.9.0",
|
|
53
53
|
"eslint-plugin-mdx": "^2.2.0",
|
|
54
54
|
"eslint-plugin-n": "^16.0.1",
|
|
55
|
+
"eslint-plugin-no-await-in-promise": "^1.1.5",
|
|
55
56
|
"eslint-plugin-no-explicit-type-exports": "^0.12.1",
|
|
56
57
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
57
58
|
"eslint-plugin-only-error": "^1.0.2",
|
|
@@ -70,8 +71,8 @@
|
|
|
70
71
|
"toml-eslint-parser": "^0.6.0",
|
|
71
72
|
"vue-eslint-parser": "^9.3.1",
|
|
72
73
|
"yaml-eslint-parser": "^1.2.2",
|
|
73
|
-
"@so1ve/eslint-plugin": "1.0.0-alpha.
|
|
74
|
-
"@so1ve/eslint-plugin
|
|
74
|
+
"@so1ve/eslint-plugin-sort-imports": "1.0.0-alpha.18",
|
|
75
|
+
"@so1ve/eslint-plugin": "1.0.0-alpha.18"
|
|
75
76
|
},
|
|
76
77
|
"devDependencies": {
|
|
77
78
|
"eslint": "^8.46.0"
|