eslint-plugin-yml 1.13.1 → 1.13.2

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/meta.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export declare const name = "eslint-plugin-yml";
2
- export declare const version = "1.13.1";
2
+ export declare const version = "1.13.2";
package/lib/meta.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = "eslint-plugin-yml";
5
- exports.version = "1.13.1";
5
+ exports.version = "1.13.2";
@@ -491,7 +491,7 @@ exports.default = (0, utils_1.createRule)("sort-keys", {
491
491
  else {
492
492
  const diffIndent = nodeLocs.indentColumn - moveTargetLocs.indentColumn;
493
493
  const insertCode = `${sourceCode.text.slice(nodeLocs.range[0] + diffIndent, nodeLocs.range[1])}\n${sourceCode.text.slice(nodeLocs.range[0], nodeLocs.range[0] + diffIndent)}`;
494
- yield fixer.insertTextBeforeRange(moveTargetLocs.range, `${insertCode}${moveTargetLocs.loc.start.line === 1 ? "\n" : ""}`);
494
+ yield fixer.insertTextBeforeRange(moveTargetLocs.range, insertCode);
495
495
  const removeRange = [
496
496
  getNewlineStartIndex(nodeLocs.range[0]),
497
497
  nodeLocs.range[1],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-yml",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "This ESLint plugin provides linting rules for YAML.",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -17,6 +17,7 @@
17
17
  "clean": "rimraf .nyc_output dist coverage",
18
18
  "lint": "eslint . --ext .js,.vue,.ts,.json,.md,.yml,.yaml",
19
19
  "eslint-fix": "eslint . --ext .js,.vue,.ts,.json,.md,.yml,.yaml --fix",
20
+ "eslint-test-fix": "eslint tests/src/rules/*.ts --fix -c .eslintrc.for-vscode.js",
20
21
  "pretest:base": "cross-env DEBUG=eslint-plugin-yml*",
21
22
  "test:base": "npm run mocha -- \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
22
23
  "test": "npm run test:base",
@@ -73,7 +74,7 @@
73
74
  "@types/debug": "^4.1.5",
74
75
  "@types/eslint": "^8.0.0",
75
76
  "@types/eslint-scope": "^3.7.0",
76
- "@types/eslint-visitor-keys": "^1.0.0",
77
+ "@types/eslint-visitor-keys": "^3.0.0",
77
78
  "@types/estree": "^1.0.0",
78
79
  "@types/lodash": "^4.14.158",
79
80
  "@types/mocha": "^10.0.0",
@@ -90,7 +91,7 @@
90
91
  "eslint-config-prettier": "^9.0.0",
91
92
  "eslint-plugin-eslint-comments": "^3.2.0",
92
93
  "eslint-plugin-eslint-plugin": "^5.0.0",
93
- "eslint-plugin-eslint-rule-tester": "^0.5.1",
94
+ "eslint-plugin-eslint-rule-tester": "^0.6.0",
94
95
  "eslint-plugin-json-schema-validator": "^4.7.4",
95
96
  "eslint-plugin-jsonc": "^2.0.0",
96
97
  "eslint-plugin-markdown": "^3.0.0",