@so1ve/eslint-config 1.0.0-alpha.17 → 1.0.0-alpha.19

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 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);
@@ -251,7 +271,6 @@ const formatting = (options) => {
251
271
  "moduleResolution",
252
272
  "moduleSuffixes",
253
273
  "noResolve",
254
- "paths",
255
274
  "resolveJsonModule",
256
275
  "resolvePackageJsonExports",
257
276
  "resolvePackageJsonImports",
@@ -317,7 +336,9 @@ const formatting = (options) => {
317
336
  "verbatimModuleSyntax",
318
337
  /* Completeness */
319
338
  "skipDefaultLibCheck",
320
- "skipLibCheck"
339
+ "skipLibCheck",
340
+ /* Alias */
341
+ "paths"
321
342
  ],
322
343
  pathPattern: "^compilerOptions$"
323
344
  }
@@ -420,7 +441,8 @@ const javascript = ({
420
441
  "sort-imports": pluginSortImports__default["default"],
421
442
  "array-func": pluginArrayFunc__default["default"],
422
443
  "json-schema-validator": pluginJsonSchemaValidator__default["default"],
423
- "regexp": pluginRegexp__default["default"]
444
+ "regexp": pluginRegexp__default["default"],
445
+ "no-await-in-promise": pluginNoAwaitInPromise__namespace
424
446
  }
425
447
  },
426
448
  {
@@ -725,10 +747,19 @@ const javascript = ({
725
747
  "sort-imports/exports": "error",
726
748
  // array-func
727
749
  "array-func/prefer-array-from": "off",
750
+ "array-func/prefer-flat": "off",
751
+ // Handled by unicorn
752
+ "array-func/from-map": "off",
753
+ // Conflicts with unicorn/prefer-spread
754
+ "array-func/no-unnecessary-this-arg": "error",
755
+ "array-func/avoid-reverse": "error",
756
+ "array-func/prefer-flat-map": "error",
728
757
  // json-schema-validator
729
758
  "json-schema-validator/no-invalid": "warn",
730
759
  // regexp
731
760
  "regexp/no-unused-capturing-group": "warn",
761
+ // no-await-in-promise
762
+ "no-await-in-promise/no-await-in-promise": "error",
732
763
  ...overrides
733
764
  }
734
765
  },
@@ -1665,6 +1696,7 @@ Object.defineProperty(exports, 'pluginNode', {
1665
1696
  enumerable: true,
1666
1697
  get: function () { return pluginNode__default["default"]; }
1667
1698
  });
1699
+ exports.pluginNoAwaitInPromise = pluginNoAwaitInPromise__namespace;
1668
1700
  Object.defineProperty(exports, 'pluginNoOnlyTests', {
1669
1701
  enumerable: true,
1670
1702
  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';
@@ -240,7 +242,6 @@ const formatting = (options) => {
240
242
  "moduleResolution",
241
243
  "moduleSuffixes",
242
244
  "noResolve",
243
- "paths",
244
245
  "resolveJsonModule",
245
246
  "resolvePackageJsonExports",
246
247
  "resolvePackageJsonImports",
@@ -306,7 +307,9 @@ const formatting = (options) => {
306
307
  "verbatimModuleSyntax",
307
308
  /* Completeness */
308
309
  "skipDefaultLibCheck",
309
- "skipLibCheck"
310
+ "skipLibCheck",
311
+ /* Alias */
312
+ "paths"
310
313
  ],
311
314
  pathPattern: "^compilerOptions$"
312
315
  }
@@ -409,7 +412,8 @@ const javascript = ({
409
412
  "sort-imports": pluginSortImports,
410
413
  "array-func": pluginArrayFunc,
411
414
  "json-schema-validator": pluginJsonSchemaValidator,
412
- "regexp": pluginRegexp
415
+ "regexp": pluginRegexp,
416
+ "no-await-in-promise": pluginNoAwaitInPromise
413
417
  }
414
418
  },
415
419
  {
@@ -714,10 +718,19 @@ const javascript = ({
714
718
  "sort-imports/exports": "error",
715
719
  // array-func
716
720
  "array-func/prefer-array-from": "off",
721
+ "array-func/prefer-flat": "off",
722
+ // Handled by unicorn
723
+ "array-func/from-map": "off",
724
+ // Conflicts with unicorn/prefer-spread
725
+ "array-func/no-unnecessary-this-arg": "error",
726
+ "array-func/avoid-reverse": "error",
727
+ "array-func/prefer-flat-map": "error",
717
728
  // json-schema-validator
718
729
  "json-schema-validator/no-invalid": "warn",
719
730
  // regexp
720
731
  "regexp/no-unused-capturing-group": "warn",
732
+ // no-await-in-promise
733
+ "no-await-in-promise/no-await-in-promise": "error",
721
734
  ...overrides
722
735
  }
723
736
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-config",
3
- "version": "1.0.0-alpha.17",
3
+ "version": "1.0.0-alpha.19",
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.17",
74
- "@so1ve/eslint-plugin-sort-imports": "1.0.0-alpha.17"
74
+ "@so1ve/eslint-plugin-sort-imports": "1.0.0-alpha.19",
75
+ "@so1ve/eslint-plugin": "1.0.0-alpha.19"
75
76
  },
76
77
  "devDependencies": {
77
78
  "eslint": "^8.46.0"