@tsslint/config 1.5.2 → 1.5.3
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/lib/plugins/ignore.js +5 -3
- package/package.json +3 -3
package/lib/plugins/ignore.js
CHANGED
|
@@ -6,9 +6,11 @@ function create(cmdOption, reportsUnusedComments) {
|
|
|
6
6
|
const mode = typeof cmdOption === 'string' ? 'singleLine' : 'multiLine';
|
|
7
7
|
const [cmd, endCmd] = Array.isArray(cmdOption) ? cmdOption : [cmdOption, undefined];
|
|
8
8
|
const cmdText = cmd.replace(/\?/g, '');
|
|
9
|
-
const withRuleId = '
|
|
10
|
-
const
|
|
11
|
-
const
|
|
9
|
+
const withRuleId = '[ \\t]*(?<ruleId>\\w\\S*)?';
|
|
10
|
+
const header = '^\\s*';
|
|
11
|
+
const ending = '([ \\t]+[^\\r\\n]*)?$';
|
|
12
|
+
const reg = new RegExp(`${header}${cmd}${withRuleId}${ending}`);
|
|
13
|
+
const endReg = endCmd ? new RegExp(`${header}${endCmd}${withRuleId}${ending}`) : undefined;
|
|
12
14
|
const completeReg1 = /^\s*\/\/(\s*)([\S]*)?$/;
|
|
13
15
|
const completeReg2 = new RegExp(`//\\s*${cmd}(\\S*)?$`);
|
|
14
16
|
return ({ typescript: ts, languageService }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/config",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"directory": "packages/config"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tsslint/types": "1.5.
|
|
15
|
+
"@tsslint/types": "1.5.3",
|
|
16
16
|
"ts-api-utils": "^2.0.0"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "563035c62d04ff2a5c393f4a37ab9635960de1d6"
|
|
19
19
|
}
|