slopless 0.2.11 → 0.2.12

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.
@@ -1,6 +1,9 @@
1
1
  import { StringSource } from "textlint-util-to-string";
2
2
  export function sourceText(node) {
3
- const source = new StringSource(node);
3
+ // textlint-util-to-string has not updated its public type for textlint 15.7's
4
+ // readonly children, but it only reads the node at runtime.
5
+ const source = new StringSource(node // type-coverage:ignore-line
6
+ );
4
7
  return {
5
8
  originalEndFor: (end) => source.originalIndexFromIndex(end, true) ?? end,
6
9
  originalStartFor: (start) => source.originalIndexFromIndex(start) ?? start,
@@ -1 +1 @@
1
- {"version":3,"file":"traverse.js","sourceRoot":"","sources":["../../../src/shared/text/traverse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAQvD,MAAM,UAAU,UAAU,CAAC,IAAmB;IAC5C,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;IAEtC,OAAO;QACL,cAAc,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,GAAG;QACxE,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,KAAK;QAC1E,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;KACxB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"traverse.js","sourceRoot":"","sources":["../../../src/shared/text/traverse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAQvD,MAAM,UAAU,UAAU,CAAC,IAAmB;IAC5C,8EAA8E;IAC9E,4DAA4D;IAC5D,MAAM,MAAM,GAAG,IAAI,YAAY,CAC7B,IAAqD,CAAC,4BAA4B;KACnF,CAAC;IAEF,OAAO;QACL,cAAc,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,GAAG;QACxE,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,KAAK;QAC1E,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;KACxB,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slopless",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Deterministic textlint rules for detecting slop in prose.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "packageManager": "pnpm@10.32.0",
16
16
  "main": "./dist/index.js",
17
17
  "engines": {
18
- "node": ">=22.0.0"
18
+ "node": ">=22.13.0"
19
19
  },
20
20
  "scripts": {
21
21
  "build": "rm -rf dist && tsc -p tsconfig.json && chmod +x dist/cli.js",
@@ -105,34 +105,34 @@
105
105
  },
106
106
  "dependencies": {
107
107
  "@lunarisapp/readability": "^1.1.0",
108
- "@textlint/ast-node-types": "15.6.1",
109
- "@textlint/types": "15.6.1",
108
+ "@textlint/ast-node-types": "15.7.1",
109
+ "@textlint/types": "15.7.1",
110
110
  "sentence-splitter": "5.0.1",
111
- "textlint": "15.6.1",
111
+ "textlint": "15.7.1",
112
112
  "textlint-filter-rule-comments": "^1.3.0",
113
113
  "textlint-rule-helper": "2.5.0",
114
114
  "textlint-util-to-string": "3.3.4"
115
115
  },
116
116
  "devDependencies": {
117
- "@double-great/stylelint-a11y": "3.4.12",
117
+ "@double-great/stylelint-a11y": "3.4.13",
118
118
  "@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
119
- "@types/node": "^24.10.1",
120
- "@typescript-eslint/eslint-plugin": "8.59.3",
121
- "@typescript-eslint/parser": "8.59.3",
119
+ "@types/node": "22.19.19",
120
+ "@typescript-eslint/eslint-plugin": "8.59.4",
121
+ "@typescript-eslint/parser": "8.59.4",
122
122
  "cspell": "10.0.0",
123
- "eslint": "9.39.1",
123
+ "eslint": "10.4.0",
124
124
  "eslint-plugin-import-x": "4.16.2",
125
125
  "eslint-plugin-regexp": "3.1.0",
126
126
  "eslint-plugin-sonarjs": "4.0.3",
127
127
  "eslint-plugin-unicorn": "64.0.0",
128
128
  "g3ts-eslint-plugin-style-policy": "0.1.3",
129
- "jscpd": "4.1.1",
129
+ "jscpd": "4.2.3",
130
130
  "prettier": "3.8.3",
131
- "stylelint": "17.11.0",
131
+ "stylelint": "17.12.0",
132
132
  "stylelint-config-standard": "40.0.0",
133
133
  "stylelint-config-tailwindcss": "1.0.1",
134
134
  "syncpack": "15.3.1",
135
135
  "type-coverage": "2.29.7",
136
- "typescript": "5.9.3"
136
+ "typescript": "6.0.3"
137
137
  }
138
138
  }