tldr-lint 0.0.16 → 0.0.17

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.
Files changed (2) hide show
  1. package/lib/tldr-parser.js +2 -2
  2. package/package.json +11 -8
@@ -700,7 +700,7 @@ break;
700
700
  case 7:
701
701
  if (this.topState() === "title") {
702
702
  yy_.yytext = this.matches[1];
703
- if (this.matches[1].match(/([^\w+\[. -])|(\.$)/)) yy.error(yy_.yylloc, 'TLDR013');
703
+ if (this.matches[1].match(/([^\w+\[\]}. -])|(\.$)/)) yy.error(yy_.yylloc, 'TLDR013');
704
704
  this.checkTrailingWhitespace(this.matches[2], yy_.yylloc);
705
705
  this.checkNewline(this.matches[3], yy_.yylloc);
706
706
  this.popState();
@@ -882,4 +882,4 @@ exports.main = function commonjsMain (args) {
882
882
  if (typeof module !== 'undefined' && require.main === module) {
883
883
  exports.main(process.argv.slice(1));
884
884
  }
885
- }
885
+ }
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "tldr-lint",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "A linting tool to validate tldr pages",
5
- "repository": "tldr-pages/tldr-lint",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/tldr-pages/tldr-lint.git"
8
+ },
6
9
  "scripts": {
7
10
  "jison": "jison tldr.yy tldr.l -o lib/tldr-parser.js",
8
11
  "lint": "eslint lib specs",
@@ -37,15 +40,15 @@
37
40
  },
38
41
  "license": "MIT",
39
42
  "dependencies": {
40
- "commander": "^12.0.0"
43
+ "commander": "^13.0.0"
41
44
  },
42
45
  "devDependencies": {
43
- "concurrently": "^9.0.0",
44
- "eslint": "^9.4.0",
46
+ "concurrently": "^9.1.2",
47
+ "eslint": "^9.17.0",
45
48
  "eslint-config-eslint": "^11.0.0",
46
- "eslint-plugin-jest": "^28.5.0",
47
- "husky": "^9.0.6",
48
- "jest": "^29.1.2",
49
+ "eslint-plugin-jest": "^28.10.0",
50
+ "husky": "^9.1.7",
51
+ "jest": "^29.7.0",
49
52
  "jison": "^0.4.18",
50
53
  "onchange": "^7.1.0"
51
54
  },