@html-validate/eslint-config 5.4.12 → 5.4.14

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/cli.js CHANGED
@@ -2,39 +2,10 @@
2
2
  "use strict";
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
- var __defProps = Object.defineProperties;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
9
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
7
  var __getProtoOf = Object.getPrototypeOf;
11
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
- var __spreadValues = (a, b) => {
15
- for (var prop in b || (b = {}))
16
- if (__hasOwnProp.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- if (__getOwnPropSymbols)
19
- for (var prop of __getOwnPropSymbols(b)) {
20
- if (__propIsEnum.call(b, prop))
21
- __defNormalProp(a, prop, b[prop]);
22
- }
23
- return a;
24
- };
25
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26
- var __objRest = (source, exclude) => {
27
- var target = {};
28
- for (var prop in source)
29
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
30
- target[prop] = source[prop];
31
- if (source != null && __getOwnPropSymbols)
32
- for (var prop of __getOwnPropSymbols(source)) {
33
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
34
- target[prop] = source[prop];
35
- }
36
- return target;
37
- };
38
9
  var __commonJS = (cb, mod) => function __require() {
39
10
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
40
11
  };
@@ -266,12 +237,12 @@ var require_textwrap = __commonJS({
266
237
  }
267
238
  };
268
239
  function wrap(text, options = {}) {
269
- let _a = options, { width = 70 } = _a, kwargs = __objRest(_a, ["width"]);
240
+ let { width = 70, ...kwargs } = options;
270
241
  let w = new TextWrapper(Object.assign({ width }, kwargs));
271
242
  return w.wrap(text);
272
243
  }
273
244
  function fill(text, options = {}) {
274
- let _a = options, { width = 70 } = _a, kwargs = __objRest(_a, ["width"]);
245
+ let { width = 70, ...kwargs } = options;
275
246
  let w = new TextWrapper(Object.assign({ width }, kwargs));
276
247
  return w.fill(text);
277
248
  }
@@ -3052,10 +3023,11 @@ var require_p_locate = __commonJS({
3052
3023
  return false;
3053
3024
  };
3054
3025
  var pLocate = async (iterable, tester, options) => {
3055
- options = __spreadValues({
3026
+ options = {
3056
3027
  concurrency: Infinity,
3057
- preserveOrder: true
3058
- }, options);
3028
+ preserveOrder: true,
3029
+ ...options
3030
+ };
3059
3031
  const limit = pLimit(options.concurrency);
3060
3032
  const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
3061
3033
  const checkLimit = pLimit(options.preserveOrder ? 1 : Infinity);
@@ -3094,11 +3066,12 @@ var require_locate_path = __commonJS({
3094
3066
  }
3095
3067
  var matchType = (type, stat) => type === void 0 || stat[typeMappings[type]]();
3096
3068
  module2.exports = async (paths, options) => {
3097
- options = __spreadValues({
3069
+ options = {
3098
3070
  cwd: process.cwd(),
3099
3071
  type: "file",
3100
- allowSymlinks: true
3101
- }, options);
3072
+ allowSymlinks: true,
3073
+ ...options
3074
+ };
3102
3075
  checkType(options);
3103
3076
  const statFn = options.allowSymlinks ? fsStat : fsLStat;
3104
3077
  return pLocate(paths, async (path_) => {
@@ -3111,11 +3084,12 @@ var require_locate_path = __commonJS({
3111
3084
  }, options);
3112
3085
  };
3113
3086
  module2.exports.sync = (paths, options) => {
3114
- options = __spreadValues({
3087
+ options = {
3115
3088
  cwd: process.cwd(),
3116
3089
  allowSymlinks: true,
3117
- type: "file"
3118
- }, options);
3090
+ type: "file",
3091
+ ...options
3092
+ };
3119
3093
  checkType(options);
3120
3094
  const statFn = options.allowSymlinks ? fs3.statSync : fs3.lstatSync;
3121
3095
  for (const path_ of paths) {
@@ -3180,7 +3154,7 @@ var require_find_up = __commonJS({
3180
3154
  return foundPath;
3181
3155
  };
3182
3156
  while (true) {
3183
- const foundPath = await runMatcher(__spreadProps(__spreadValues({}, options), { cwd: directory }));
3157
+ const foundPath = await runMatcher({ ...options, cwd: directory });
3184
3158
  if (foundPath === stop) {
3185
3159
  return;
3186
3160
  }
@@ -3208,7 +3182,7 @@ var require_find_up = __commonJS({
3208
3182
  return foundPath;
3209
3183
  };
3210
3184
  while (true) {
3211
- const foundPath = runMatcher(__spreadProps(__spreadValues({}, options), { cwd: directory }));
3185
+ const foundPath = runMatcher({ ...options, cwd: directory });
3212
3186
  if (foundPath === stop) {
3213
3187
  return;
3214
3188
  }
@@ -8906,7 +8880,7 @@ var require_package = __commonJS({
8906
8880
  "package.json"(exports, module2) {
8907
8881
  module2.exports = {
8908
8882
  name: "@html-validate/eslint-config",
8909
- version: "5.4.11",
8883
+ version: "5.4.12",
8910
8884
  description: "Eslint sharable config used by the various HTML-validate packages",
8911
8885
  keywords: [
8912
8886
  "eslint"
@@ -8939,15 +8913,15 @@ var require_package = __commonJS({
8939
8913
  build: "esbuild src/cli.ts --bundle --sourcemap --platform=node --target=node12.22 --external:prettier --outdir=dist"
8940
8914
  },
8941
8915
  dependencies: {
8942
- "@rushstack/eslint-patch": "1.1.3",
8943
- eslint: "8.18.0",
8916
+ "@rushstack/eslint-patch": "1.1.4",
8917
+ eslint: "8.19.0",
8944
8918
  "eslint-config-prettier": "8.5.0",
8945
8919
  "eslint-config-sidvind": "1.3.2",
8946
8920
  "eslint-formatter-gitlab": "3.0.0",
8947
8921
  "eslint-plugin-array-func": "3.1.7",
8948
8922
  "eslint-plugin-import": "2.26.0",
8949
8923
  "eslint-plugin-node": "11.1.0",
8950
- "eslint-plugin-prettier": "4.0.0",
8924
+ "eslint-plugin-prettier": "4.2.1",
8951
8925
  "eslint-plugin-security": "1.5.0",
8952
8926
  "eslint-plugin-sonarjs": "0.13.0"
8953
8927
  },
@@ -8993,14 +8967,15 @@ async function renderNunjucks(src, dst, features) {
8993
8967
  rootDir: import_path.default.dirname(features.typeinfo),
8994
8968
  tsconfig: `./${import_path.default.basename(features.typeinfo)}`
8995
8969
  } : false;
8996
- const context = __spreadProps(__spreadValues({}, features), { overrides, typeinfo });
8970
+ const context = { ...features, overrides, typeinfo };
8997
8971
  const result = import_nunjucks.default.render(import_path.default.basename(src), context);
8998
8972
  const prettierConfig = await import_prettier.default.resolveConfig(dst, {
8999
8973
  editorconfig: true
9000
8974
  });
9001
- return import_prettier.default.format(result, __spreadProps(__spreadValues({}, prettierConfig), {
8975
+ return import_prettier.default.format(result, {
8976
+ ...prettierConfig,
9002
8977
  filepath: dst
9003
- }));
8978
+ });
9004
8979
  }
9005
8980
 
9006
8981
  // src/cli.ts
@@ -9173,7 +9148,7 @@ async function getFeatures(options, args2) {
9173
9148
  const dst = import_path2.default.join(options.rootDir, PACKAGE_JSON);
9174
9149
  const data = import_fs2.default.readFileSync(dst, "utf-8");
9175
9150
  const pkg2 = JSON.parse(data);
9176
- const deps = __spreadValues(__spreadValues({}, pkg2.dependencies), pkg2.devDependencies);
9151
+ const deps = { ...pkg2.dependencies, ...pkg2.devDependencies };
9177
9152
  return {
9178
9153
  angularjs: (_a = args2.angularjs) != null ? _a : Boolean(deps.angular),
9179
9154
  cypress: (_b = args2.cypress) != null ? _b : Boolean(deps.cypress),