@storm-software/linting-tools 1.15.9 → 1.15.11
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 +17 -0
- package/README.md +1 -1
- package/cli/index.js +375 -2
- package/manypkg/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [1.15.10](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.15.9...linting-tools-v1.15.10) (2023-12-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Resolved issue with bad options passed into base TS library generator ([aeff286](https://github.com/storm-software/storm-ops/commit/aeff286fba411b47c205f3d13cefb425b2c1a977))
|
|
7
|
+
|
|
8
|
+
## [1.15.9](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.15.8...linting-tools-v1.15.9) (2023-12-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **git-tools:** Resolved issue in `semantic-release` patch with module directory ([a04aa3a](https://github.com/storm-software/storm-ops/commit/a04aa3add212abc781392d1227122a790b2f004e))
|
|
14
|
+
* **git-tools:** Resolved issue with patched semantic-release bundled path ([93b4e43](https://github.com/storm-software/storm-ops/commit/93b4e439bf19a888db1b35554b32b9aec3cc3acd))
|
|
15
|
+
* **git-tools:** Update the env used by packages to match new config updates ([d3b7dac](https://github.com/storm-software/storm-ops/commit/d3b7dac057a04aff9e0170d89cedc4cb47c584e5))
|
|
16
|
+
* **git-tools:** Updated `semantic-release` patch to properly check for plugins ([4e3db96](https://github.com/storm-software/storm-ops/commit/4e3db96814e8abb5cb22d9bfb5c747f042c43157))
|
|
17
|
+
|
|
1
18
|
## [1.15.8](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.15.7...linting-tools-v1.15.8) (2023-12-05)
|
|
2
19
|
|
|
3
20
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
|
package/cli/index.js
CHANGED
|
@@ -251727,6 +251727,379 @@ var require_dir_glob = __commonJS({
|
|
|
251727
251727
|
}
|
|
251728
251728
|
});
|
|
251729
251729
|
|
|
251730
|
+
// node_modules/.pnpm/ignore@5.3.0/node_modules/ignore/index.js
|
|
251731
|
+
var require_ignore3 = __commonJS({
|
|
251732
|
+
"node_modules/.pnpm/ignore@5.3.0/node_modules/ignore/index.js"(exports, module) {
|
|
251733
|
+
function makeArray(subject) {
|
|
251734
|
+
return Array.isArray(subject) ? subject : [subject];
|
|
251735
|
+
}
|
|
251736
|
+
var EMPTY2 = "";
|
|
251737
|
+
var SPACE = " ";
|
|
251738
|
+
var ESCAPE2 = "\\";
|
|
251739
|
+
var REGEX_TEST_BLANK_LINE = /^\s+$/;
|
|
251740
|
+
var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
|
|
251741
|
+
var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
|
|
251742
|
+
var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
|
|
251743
|
+
var REGEX_SPLITALL_CRLF = /\r?\n/g;
|
|
251744
|
+
var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
|
|
251745
|
+
var SLASH = "/";
|
|
251746
|
+
var TMP_KEY_IGNORE = "node-ignore";
|
|
251747
|
+
if (typeof Symbol !== "undefined") {
|
|
251748
|
+
TMP_KEY_IGNORE = Symbol.for("node-ignore");
|
|
251749
|
+
}
|
|
251750
|
+
var KEY_IGNORE = TMP_KEY_IGNORE;
|
|
251751
|
+
var define2 = (object, key, value) => Object.defineProperty(object, key, { value });
|
|
251752
|
+
var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
|
|
251753
|
+
var RETURN_FALSE = () => false;
|
|
251754
|
+
var sanitizeRange = (range) => range.replace(
|
|
251755
|
+
REGEX_REGEXP_RANGE,
|
|
251756
|
+
(match3, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match3 : EMPTY2
|
|
251757
|
+
);
|
|
251758
|
+
var cleanRangeBackSlash = (slashes) => {
|
|
251759
|
+
const { length } = slashes;
|
|
251760
|
+
return slashes.slice(0, length - length % 2);
|
|
251761
|
+
};
|
|
251762
|
+
var REPLACERS = [
|
|
251763
|
+
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
251764
|
+
[
|
|
251765
|
+
// (a\ ) -> (a )
|
|
251766
|
+
// (a ) -> (a)
|
|
251767
|
+
// (a \ ) -> (a )
|
|
251768
|
+
/\\?\s+$/,
|
|
251769
|
+
(match3) => match3.indexOf("\\") === 0 ? SPACE : EMPTY2
|
|
251770
|
+
],
|
|
251771
|
+
// replace (\ ) with ' '
|
|
251772
|
+
[
|
|
251773
|
+
/\\\s/g,
|
|
251774
|
+
() => SPACE
|
|
251775
|
+
],
|
|
251776
|
+
// Escape metacharacters
|
|
251777
|
+
// which is written down by users but means special for regular expressions.
|
|
251778
|
+
// > There are 12 characters with special meanings:
|
|
251779
|
+
// > - the backslash \,
|
|
251780
|
+
// > - the caret ^,
|
|
251781
|
+
// > - the dollar sign $,
|
|
251782
|
+
// > - the period or dot .,
|
|
251783
|
+
// > - the vertical bar or pipe symbol |,
|
|
251784
|
+
// > - the question mark ?,
|
|
251785
|
+
// > - the asterisk or star *,
|
|
251786
|
+
// > - the plus sign +,
|
|
251787
|
+
// > - the opening parenthesis (,
|
|
251788
|
+
// > - the closing parenthesis ),
|
|
251789
|
+
// > - and the opening square bracket [,
|
|
251790
|
+
// > - the opening curly brace {,
|
|
251791
|
+
// > These special characters are often called "metacharacters".
|
|
251792
|
+
[
|
|
251793
|
+
/[\\$.|*+(){^]/g,
|
|
251794
|
+
(match3) => `\\${match3}`
|
|
251795
|
+
],
|
|
251796
|
+
[
|
|
251797
|
+
// > a question mark (?) matches a single character
|
|
251798
|
+
/(?!\\)\?/g,
|
|
251799
|
+
() => "[^/]"
|
|
251800
|
+
],
|
|
251801
|
+
// leading slash
|
|
251802
|
+
[
|
|
251803
|
+
// > A leading slash matches the beginning of the pathname.
|
|
251804
|
+
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
|
251805
|
+
// A leading slash matches the beginning of the pathname
|
|
251806
|
+
/^\//,
|
|
251807
|
+
() => "^"
|
|
251808
|
+
],
|
|
251809
|
+
// replace special metacharacter slash after the leading slash
|
|
251810
|
+
[
|
|
251811
|
+
/\//g,
|
|
251812
|
+
() => "\\/"
|
|
251813
|
+
],
|
|
251814
|
+
[
|
|
251815
|
+
// > A leading "**" followed by a slash means match in all directories.
|
|
251816
|
+
// > For example, "**/foo" matches file or directory "foo" anywhere,
|
|
251817
|
+
// > the same as pattern "foo".
|
|
251818
|
+
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
|
|
251819
|
+
// > under directory "foo".
|
|
251820
|
+
// Notice that the '*'s have been replaced as '\\*'
|
|
251821
|
+
/^\^*\\\*\\\*\\\//,
|
|
251822
|
+
// '**/foo' <-> 'foo'
|
|
251823
|
+
() => "^(?:.*\\/)?"
|
|
251824
|
+
],
|
|
251825
|
+
// starting
|
|
251826
|
+
[
|
|
251827
|
+
// there will be no leading '/'
|
|
251828
|
+
// (which has been replaced by section "leading slash")
|
|
251829
|
+
// If starts with '**', adding a '^' to the regular expression also works
|
|
251830
|
+
/^(?=[^^])/,
|
|
251831
|
+
function startingReplacer() {
|
|
251832
|
+
return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
|
|
251833
|
+
}
|
|
251834
|
+
],
|
|
251835
|
+
// two globstars
|
|
251836
|
+
[
|
|
251837
|
+
// Use lookahead assertions so that we could match more than one `'/**'`
|
|
251838
|
+
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
251839
|
+
// Zero, one or several directories
|
|
251840
|
+
// should not use '*', or it will be replaced by the next replacer
|
|
251841
|
+
// Check if it is not the last `'/**'`
|
|
251842
|
+
(_, index2, str2) => index2 + 6 < str2.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
|
|
251843
|
+
],
|
|
251844
|
+
// normal intermediate wildcards
|
|
251845
|
+
[
|
|
251846
|
+
// Never replace escaped '*'
|
|
251847
|
+
// ignore rule '\*' will match the path '*'
|
|
251848
|
+
// 'abc.*/' -> go
|
|
251849
|
+
// 'abc.*' -> skip this rule,
|
|
251850
|
+
// coz trailing single wildcard will be handed by [trailing wildcard]
|
|
251851
|
+
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
251852
|
+
// '*.js' matches '.js'
|
|
251853
|
+
// '*.js' doesn't match 'abc'
|
|
251854
|
+
(_, p1, p2) => {
|
|
251855
|
+
const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
|
|
251856
|
+
return p1 + unescaped;
|
|
251857
|
+
}
|
|
251858
|
+
],
|
|
251859
|
+
[
|
|
251860
|
+
// unescape, revert step 3 except for back slash
|
|
251861
|
+
// For example, if a user escape a '\\*',
|
|
251862
|
+
// after step 3, the result will be '\\\\\\*'
|
|
251863
|
+
/\\\\\\(?=[$.|*+(){^])/g,
|
|
251864
|
+
() => ESCAPE2
|
|
251865
|
+
],
|
|
251866
|
+
[
|
|
251867
|
+
// '\\\\' -> '\\'
|
|
251868
|
+
/\\\\/g,
|
|
251869
|
+
() => ESCAPE2
|
|
251870
|
+
],
|
|
251871
|
+
[
|
|
251872
|
+
// > The range notation, e.g. [a-zA-Z],
|
|
251873
|
+
// > can be used to match one of the characters in a range.
|
|
251874
|
+
// `\` is escaped by step 3
|
|
251875
|
+
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
251876
|
+
(match3, leadEscape, range, endEscape, close) => leadEscape === ESCAPE2 ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
|
|
251877
|
+
],
|
|
251878
|
+
// ending
|
|
251879
|
+
[
|
|
251880
|
+
// 'js' will not match 'js.'
|
|
251881
|
+
// 'ab' will not match 'abc'
|
|
251882
|
+
/(?:[^*])$/,
|
|
251883
|
+
// WTF!
|
|
251884
|
+
// https://git-scm.com/docs/gitignore
|
|
251885
|
+
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
|
|
251886
|
+
// which re-fixes #24, #38
|
|
251887
|
+
// > If there is a separator at the end of the pattern then the pattern
|
|
251888
|
+
// > will only match directories, otherwise the pattern can match both
|
|
251889
|
+
// > files and directories.
|
|
251890
|
+
// 'js*' will not match 'a.js'
|
|
251891
|
+
// 'js/' will not match 'a.js'
|
|
251892
|
+
// 'js' will match 'a.js' and 'a.js/'
|
|
251893
|
+
(match3) => /\/$/.test(match3) ? `${match3}$` : `${match3}(?=$|\\/$)`
|
|
251894
|
+
],
|
|
251895
|
+
// trailing wildcard
|
|
251896
|
+
[
|
|
251897
|
+
/(\^|\\\/)?\\\*$/,
|
|
251898
|
+
(_, p1) => {
|
|
251899
|
+
const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
|
|
251900
|
+
return `${prefix}(?=$|\\/$)`;
|
|
251901
|
+
}
|
|
251902
|
+
]
|
|
251903
|
+
];
|
|
251904
|
+
var regexCache = /* @__PURE__ */ Object.create(null);
|
|
251905
|
+
var makeRegex = (pattern, ignoreCase2) => {
|
|
251906
|
+
let source = regexCache[pattern];
|
|
251907
|
+
if (!source) {
|
|
251908
|
+
source = REPLACERS.reduce(
|
|
251909
|
+
(prev, current) => prev.replace(current[0], current[1].bind(pattern)),
|
|
251910
|
+
pattern
|
|
251911
|
+
);
|
|
251912
|
+
regexCache[pattern] = source;
|
|
251913
|
+
}
|
|
251914
|
+
return ignoreCase2 ? new RegExp(source, "i") : new RegExp(source);
|
|
251915
|
+
};
|
|
251916
|
+
var isString3 = (subject) => typeof subject === "string";
|
|
251917
|
+
var checkPattern = (pattern) => pattern && isString3(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
|
|
251918
|
+
var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF);
|
|
251919
|
+
var IgnoreRule = class {
|
|
251920
|
+
constructor(origin, pattern, negative, regex2) {
|
|
251921
|
+
this.origin = origin;
|
|
251922
|
+
this.pattern = pattern;
|
|
251923
|
+
this.negative = negative;
|
|
251924
|
+
this.regex = regex2;
|
|
251925
|
+
}
|
|
251926
|
+
};
|
|
251927
|
+
var createRule = (pattern, ignoreCase2) => {
|
|
251928
|
+
const origin = pattern;
|
|
251929
|
+
let negative = false;
|
|
251930
|
+
if (pattern.indexOf("!") === 0) {
|
|
251931
|
+
negative = true;
|
|
251932
|
+
pattern = pattern.substr(1);
|
|
251933
|
+
}
|
|
251934
|
+
pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
251935
|
+
const regex2 = makeRegex(pattern, ignoreCase2);
|
|
251936
|
+
return new IgnoreRule(
|
|
251937
|
+
origin,
|
|
251938
|
+
pattern,
|
|
251939
|
+
negative,
|
|
251940
|
+
regex2
|
|
251941
|
+
);
|
|
251942
|
+
};
|
|
251943
|
+
var throwError2 = (message, Ctor) => {
|
|
251944
|
+
throw new Ctor(message);
|
|
251945
|
+
};
|
|
251946
|
+
var checkPath = (path38, originalPath, doThrow) => {
|
|
251947
|
+
if (!isString3(path38)) {
|
|
251948
|
+
return doThrow(
|
|
251949
|
+
`path must be a string, but got \`${originalPath}\``,
|
|
251950
|
+
TypeError
|
|
251951
|
+
);
|
|
251952
|
+
}
|
|
251953
|
+
if (!path38) {
|
|
251954
|
+
return doThrow(`path must not be empty`, TypeError);
|
|
251955
|
+
}
|
|
251956
|
+
if (checkPath.isNotRelative(path38)) {
|
|
251957
|
+
const r = "`path.relative()`d";
|
|
251958
|
+
return doThrow(
|
|
251959
|
+
`path should be a ${r} string, but got "${originalPath}"`,
|
|
251960
|
+
RangeError
|
|
251961
|
+
);
|
|
251962
|
+
}
|
|
251963
|
+
return true;
|
|
251964
|
+
};
|
|
251965
|
+
var isNotRelative = (path38) => REGEX_TEST_INVALID_PATH.test(path38);
|
|
251966
|
+
checkPath.isNotRelative = isNotRelative;
|
|
251967
|
+
checkPath.convert = (p) => p;
|
|
251968
|
+
var Ignore3 = class {
|
|
251969
|
+
constructor({
|
|
251970
|
+
ignorecase = true,
|
|
251971
|
+
ignoreCase: ignoreCase2 = ignorecase,
|
|
251972
|
+
allowRelativePaths = false
|
|
251973
|
+
} = {}) {
|
|
251974
|
+
define2(this, KEY_IGNORE, true);
|
|
251975
|
+
this._rules = [];
|
|
251976
|
+
this._ignoreCase = ignoreCase2;
|
|
251977
|
+
this._allowRelativePaths = allowRelativePaths;
|
|
251978
|
+
this._initCache();
|
|
251979
|
+
}
|
|
251980
|
+
_initCache() {
|
|
251981
|
+
this._ignoreCache = /* @__PURE__ */ Object.create(null);
|
|
251982
|
+
this._testCache = /* @__PURE__ */ Object.create(null);
|
|
251983
|
+
}
|
|
251984
|
+
_addPattern(pattern) {
|
|
251985
|
+
if (pattern && pattern[KEY_IGNORE]) {
|
|
251986
|
+
this._rules = this._rules.concat(pattern._rules);
|
|
251987
|
+
this._added = true;
|
|
251988
|
+
return;
|
|
251989
|
+
}
|
|
251990
|
+
if (checkPattern(pattern)) {
|
|
251991
|
+
const rule = createRule(pattern, this._ignoreCase);
|
|
251992
|
+
this._added = true;
|
|
251993
|
+
this._rules.push(rule);
|
|
251994
|
+
}
|
|
251995
|
+
}
|
|
251996
|
+
// @param {Array<string> | string | Ignore} pattern
|
|
251997
|
+
add(pattern) {
|
|
251998
|
+
this._added = false;
|
|
251999
|
+
makeArray(
|
|
252000
|
+
isString3(pattern) ? splitPattern(pattern) : pattern
|
|
252001
|
+
).forEach(this._addPattern, this);
|
|
252002
|
+
if (this._added) {
|
|
252003
|
+
this._initCache();
|
|
252004
|
+
}
|
|
252005
|
+
return this;
|
|
252006
|
+
}
|
|
252007
|
+
// legacy
|
|
252008
|
+
addPattern(pattern) {
|
|
252009
|
+
return this.add(pattern);
|
|
252010
|
+
}
|
|
252011
|
+
// | ignored : unignored
|
|
252012
|
+
// negative | 0:0 | 0:1 | 1:0 | 1:1
|
|
252013
|
+
// -------- | ------- | ------- | ------- | --------
|
|
252014
|
+
// 0 | TEST | TEST | SKIP | X
|
|
252015
|
+
// 1 | TESTIF | SKIP | TEST | X
|
|
252016
|
+
// - SKIP: always skip
|
|
252017
|
+
// - TEST: always test
|
|
252018
|
+
// - TESTIF: only test if checkUnignored
|
|
252019
|
+
// - X: that never happen
|
|
252020
|
+
// @param {boolean} whether should check if the path is unignored,
|
|
252021
|
+
// setting `checkUnignored` to `false` could reduce additional
|
|
252022
|
+
// path matching.
|
|
252023
|
+
// @returns {TestResult} true if a file is ignored
|
|
252024
|
+
_testOne(path38, checkUnignored) {
|
|
252025
|
+
let ignored = false;
|
|
252026
|
+
let unignored = false;
|
|
252027
|
+
this._rules.forEach((rule) => {
|
|
252028
|
+
const { negative } = rule;
|
|
252029
|
+
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
252030
|
+
return;
|
|
252031
|
+
}
|
|
252032
|
+
const matched = rule.regex.test(path38);
|
|
252033
|
+
if (matched) {
|
|
252034
|
+
ignored = !negative;
|
|
252035
|
+
unignored = negative;
|
|
252036
|
+
}
|
|
252037
|
+
});
|
|
252038
|
+
return {
|
|
252039
|
+
ignored,
|
|
252040
|
+
unignored
|
|
252041
|
+
};
|
|
252042
|
+
}
|
|
252043
|
+
// @returns {TestResult}
|
|
252044
|
+
_test(originalPath, cache3, checkUnignored, slices) {
|
|
252045
|
+
const path38 = originalPath && checkPath.convert(originalPath);
|
|
252046
|
+
checkPath(
|
|
252047
|
+
path38,
|
|
252048
|
+
originalPath,
|
|
252049
|
+
this._allowRelativePaths ? RETURN_FALSE : throwError2
|
|
252050
|
+
);
|
|
252051
|
+
return this._t(path38, cache3, checkUnignored, slices);
|
|
252052
|
+
}
|
|
252053
|
+
_t(path38, cache3, checkUnignored, slices) {
|
|
252054
|
+
if (path38 in cache3) {
|
|
252055
|
+
return cache3[path38];
|
|
252056
|
+
}
|
|
252057
|
+
if (!slices) {
|
|
252058
|
+
slices = path38.split(SLASH);
|
|
252059
|
+
}
|
|
252060
|
+
slices.pop();
|
|
252061
|
+
if (!slices.length) {
|
|
252062
|
+
return cache3[path38] = this._testOne(path38, checkUnignored);
|
|
252063
|
+
}
|
|
252064
|
+
const parent = this._t(
|
|
252065
|
+
slices.join(SLASH) + SLASH,
|
|
252066
|
+
cache3,
|
|
252067
|
+
checkUnignored,
|
|
252068
|
+
slices
|
|
252069
|
+
);
|
|
252070
|
+
return cache3[path38] = parent.ignored ? parent : this._testOne(path38, checkUnignored);
|
|
252071
|
+
}
|
|
252072
|
+
ignores(path38) {
|
|
252073
|
+
return this._test(path38, this._ignoreCache, false).ignored;
|
|
252074
|
+
}
|
|
252075
|
+
createFilter() {
|
|
252076
|
+
return (path38) => !this.ignores(path38);
|
|
252077
|
+
}
|
|
252078
|
+
filter(paths) {
|
|
252079
|
+
return makeArray(paths).filter(this.createFilter());
|
|
252080
|
+
}
|
|
252081
|
+
// @returns {TestResult}
|
|
252082
|
+
test(path38) {
|
|
252083
|
+
return this._test(path38, this._testCache, true);
|
|
252084
|
+
}
|
|
252085
|
+
};
|
|
252086
|
+
var factory = (options) => new Ignore3(options);
|
|
252087
|
+
var isPathValid = (path38) => checkPath(path38 && checkPath.convert(path38), path38, RETURN_FALSE);
|
|
252088
|
+
factory.isPathValid = isPathValid;
|
|
252089
|
+
factory.default = factory;
|
|
252090
|
+
module.exports = factory;
|
|
252091
|
+
if (
|
|
252092
|
+
// Detect `process` so that it can run in browsers.
|
|
252093
|
+
typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
|
|
252094
|
+
) {
|
|
252095
|
+
const makePosix = (str2) => /^\\\\\?\\/.test(str2) || /["<>|\u0000-\u001F]+/u.test(str2) ? str2 : str2.replace(/\\/g, "/");
|
|
252096
|
+
checkPath.convert = makePosix;
|
|
252097
|
+
const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
252098
|
+
checkPath.isNotRelative = (path38) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path38) || isNotRelative(path38);
|
|
252099
|
+
}
|
|
252100
|
+
}
|
|
252101
|
+
});
|
|
252102
|
+
|
|
251730
252103
|
// node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js
|
|
251731
252104
|
var require_slash = __commonJS({
|
|
251732
252105
|
"node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(exports, module) {
|
|
@@ -251750,7 +252123,7 @@ var require_gitignore = __commonJS({
|
|
|
251750
252123
|
var fs22 = __require("fs");
|
|
251751
252124
|
var path38 = __require("path");
|
|
251752
252125
|
var fastGlob3 = require_out4();
|
|
251753
|
-
var gitIgnore2 =
|
|
252126
|
+
var gitIgnore2 = require_ignore3();
|
|
251754
252127
|
var slash2 = require_slash();
|
|
251755
252128
|
var DEFAULT_IGNORE = [
|
|
251756
252129
|
"**/node_modules/**",
|
|
@@ -267279,7 +267652,7 @@ var import_fast_glob2, import_ignore5, ignoreFilesGlobOptions, GITIGNORE_FILES_P
|
|
|
267279
267652
|
var init_ignore = __esm({
|
|
267280
267653
|
"node_modules/.pnpm/globby@13.2.2/node_modules/globby/ignore.js"() {
|
|
267281
267654
|
import_fast_glob2 = __toESM(require_out4(), 1);
|
|
267282
|
-
import_ignore5 = __toESM(
|
|
267655
|
+
import_ignore5 = __toESM(require_ignore3(), 1);
|
|
267283
267656
|
init_slash();
|
|
267284
267657
|
init_utilities2();
|
|
267285
267658
|
ignoreFilesGlobOptions = {
|
package/manypkg/index.js
CHANGED
|
@@ -11985,9 +11985,9 @@ var require_dir_glob = __commonJS({
|
|
|
11985
11985
|
}
|
|
11986
11986
|
});
|
|
11987
11987
|
|
|
11988
|
-
// node_modules/.pnpm/ignore@5.
|
|
11988
|
+
// node_modules/.pnpm/ignore@5.3.0/node_modules/ignore/index.js
|
|
11989
11989
|
var require_ignore = __commonJS({
|
|
11990
|
-
"node_modules/.pnpm/ignore@5.
|
|
11990
|
+
"node_modules/.pnpm/ignore@5.3.0/node_modules/ignore/index.js"(exports, module) {
|
|
11991
11991
|
function makeArray(subject) {
|
|
11992
11992
|
return Array.isArray(subject) ? subject : [subject];
|
|
11993
11993
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
6
|
"keywords": [
|