@anolilab/textlint-config 4.0.2 → 4.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### @anolilab/textlint-config [4.0.3](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@4.0.2...@anolilab/textlint-config@4.0.3) (2022-05-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update all deps of the package and fixes found code style issues ([2776ecd](https://github.com/anolilab/javascript-style-guide/commit/2776ecd44d35f1d317abf367e69fef24dbd00335))
7
+
1
8
  ### @anolilab/textlint-config [4.0.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@4.0.1...@anolilab/textlint-config@4.0.2) (2022-05-07)
2
9
 
3
10
 
@@ -1,16 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import { existsSync, writeFile } from "node:fs";
4
+ import { join, resolve } from "node:path";
5
+ import { promisify } from "node:util";
6
+
7
+ // eslint-disable-next-line no-undef
3
8
  if (process.env.CI) {
9
+ // eslint-disable-next-line no-undef
4
10
  process.exit(0);
5
11
  }
6
12
 
7
- import { writeFile, existsSync } from "fs";
8
- import { resolve, join } from "path";
9
- import { promisify } from "util";
10
-
11
13
  const writeFileAsync = promisify(writeFile);
12
14
 
13
15
  // get the path to the host project.
16
+ // eslint-disable-next-line no-undef
14
17
  const projectPath = resolve(process.cwd(), "..", "..", "..");
15
18
 
16
19
  console.log("Configuring @anolilab/textlint-config", projectPath, "\n");
@@ -187,7 +190,7 @@ const writeTextlintIgnore = () => {
187
190
  const content = "";
188
191
 
189
192
  if (existsSync(eslintPath)) {
190
- console.warn(`⚠️ .textlintignore already exists;`);
193
+ console.warn("⚠️ .textlintignore already exists;");
191
194
 
192
195
  return Promise.resolve();
193
196
  }
@@ -202,11 +205,13 @@ const writeTextlintIgnore = () => {
202
205
 
203
206
  console.log("😎 Everything went well, have fun!");
204
207
 
208
+ // eslint-disable-next-line no-undef
205
209
  process.exit(0);
206
- } catch (err) {
210
+ } catch (error) {
207
211
  console.log("😬 something went wrong:");
208
- console.error(err.message);
212
+ console.error(error.message);
209
213
 
214
+ // eslint-disable-next-line no-undef
210
215
  process.exit(1);
211
216
  }
212
217
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/textlint-config",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Anolilab Coding Standard for text linting.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -57,9 +57,11 @@
57
57
  "textlint-rule-no-dead-link": "4.8.0",
58
58
  "textlint-rule-no-empty-section": "1.1.0",
59
59
  "textlint-rule-no-todo": "2.0.1",
60
- "textlint-rule-terminology": "2.1.6",
60
+ "textlint-rule-terminology": "3.0.0",
61
61
  "textlint-rule-write-good": "2.0.0",
62
- "write-good": "1.0.8"
62
+ "write-good": "1.0.8",
63
+ "@textlint/types": "^12.1.1",
64
+ "@textlint/ast-node-types": "^12.1.1"
63
65
  },
64
66
  "devDependencies": {
65
67
  "textlint": "^12.1.1"