@anolilab/textlint-config 3.0.1 → 4.0.0

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,99 +1,109 @@
1
- ### @anolilab/textlint-config [3.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@3.0.0...@anolilab/textlint-config@3.0.1) (2022-01-15)
1
+ ## @anolilab/textlint-config [4.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@3.0.1...@anolilab/textlint-config@4.0.0) (2022-02-15)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * remove old node version from our supported versions
7
+
8
+ Signed-off-by: prisis <d.bannert@anolilab.de>
9
+
10
+ ### Features
11
+
12
+ * added textlint-rule-date-weekday-mismatch rule ([6809cc5](https://github.com/anolilab/javascript-style-guide/commit/6809cc58812884ec70ab5d98594a5d0b95989cbf))
2
13
 
3
14
 
4
15
  ### Bug Fixes
5
16
 
6
- * **deps:** update dependencies (non-major) ([354adee](https://github.com/anolilab/javascript-style-guide/commit/354adee555f89913a038ab67e3323ec13f51dfc2))
17
+ * markdown lint ([24059d4](https://github.com/anolilab/javascript-style-guide/commit/24059d41ca682ca21b39ad7f6dff594be734329d))
7
18
 
8
- ## @anolilab/textlint-config [3.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.9...@anolilab/textlint-config@3.0.0) (2021-12-12)
9
19
 
20
+ ### Performance Improvements
21
+
22
+ * support for v12, v14 was removed from our supported versions of node ([83d6a80](https://github.com/anolilab/javascript-style-guide/commit/83d6a8058ed7791135aff03d4cd734327bb1b694))
23
+
24
+ ### @anolilab/textlint-config [3.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@3.0.0...@anolilab/textlint-config@3.0.1) (2022-01-15)
25
+
26
+ ### Bug Fixes
27
+
28
+ - **deps:** update dependencies (non-major) ([354adee](https://github.com/anolilab/javascript-style-guide/commit/354adee555f89913a038ab67e3323ec13f51dfc2))
29
+
30
+ ## @anolilab/textlint-config [3.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.9...@anolilab/textlint-config@3.0.0) (2021-12-12)
10
31
 
11
32
  ### ⚠ BREAKING CHANGES
12
33
 
13
- * moved textlint out of dependencies, to fix a bug with missing bin, no it is a peerDependencies
34
+ - moved textlint out of dependencies, to fix a bug with missing bin, no it is a peerDependencies
14
35
 
15
36
  ### Features
16
37
 
17
- * moved textlint out of dependencies ([b5ded20](https://github.com/anolilab/javascript-style-guide/commit/b5ded20d72e4be78ae8bfe40001695d86e0935db))
38
+ - moved textlint out of dependencies ([b5ded20](https://github.com/anolilab/javascript-style-guide/commit/b5ded20d72e4be78ae8bfe40001695d86e0935db))
18
39
 
19
40
  ### @anolilab/textlint-config [2.0.9](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.8...@anolilab/textlint-config@2.0.9) (2021-12-02)
20
41
 
21
-
22
42
  ### Bug Fixes
23
43
 
24
- * **deps:** update dependency textlint to v12.1.0 ([19b856c](https://github.com/anolilab/javascript-style-guide/commit/19b856c83ce661af9d6a1bb3a584af8ca0465188))
44
+ - **deps:** update dependency textlint to v12.1.0 ([19b856c](https://github.com/anolilab/javascript-style-guide/commit/19b856c83ce661af9d6a1bb3a584af8ca0465188))
25
45
 
26
46
  ### @anolilab/textlint-config [2.0.8](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.7...@anolilab/textlint-config@2.0.8) (2021-11-08)
27
47
 
28
-
29
48
  ### Bug Fixes
30
49
 
31
- * **deps:** update dependency textlint-rule-no-dead-link to v4.8.0 ([1de655e](https://github.com/anolilab/javascript-style-guide/commit/1de655e00a3f952163c346ae8d032be2e1cf5a20))
50
+ - **deps:** update dependency textlint-rule-no-dead-link to v4.8.0 ([1de655e](https://github.com/anolilab/javascript-style-guide/commit/1de655e00a3f952163c346ae8d032be2e1cf5a20))
32
51
 
33
52
  ### @anolilab/textlint-config [2.0.7](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.6...@anolilab/textlint-config@2.0.7) (2021-09-02)
34
53
 
35
-
36
54
  ### Bug Fixes
37
55
 
38
- * added funding to the package ([f90d18f](https://github.com/anolilab/javascript-style-guide/commit/f90d18f8347a4bdc395b1740c85ac74a4072297c))
56
+ - added funding to the package ([f90d18f](https://github.com/anolilab/javascript-style-guide/commit/f90d18f8347a4bdc395b1740c85ac74a4072297c))
39
57
 
40
58
  ### @anolilab/textlint-config [2.0.6](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.5...@anolilab/textlint-config@2.0.6) (2021-09-02)
41
59
 
42
-
43
60
  ### Bug Fixes
44
61
 
45
- * fixed release flow in all packages ([8c5ec13](https://github.com/anolilab/javascript-style-guide/commit/8c5ec1341e11ccf48d8d3e8f8808fb162d062d97))
62
+ - fixed release flow in all packages ([8c5ec13](https://github.com/anolilab/javascript-style-guide/commit/8c5ec1341e11ccf48d8d3e8f8808fb162d062d97))
46
63
 
47
64
  ### @anolilab/textlint-config [2.0.5](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.4...@anolilab/textlint-config@2.0.5) (2021-07-21)
48
65
 
49
-
50
66
  ### Bug Fixes
51
67
 
52
- * **deps:** upgraded dependencies ([fa697d0](https://github.com/anolilab/javascript-style-guide/commit/fa697d09930c04b9c2ef2612b8940dba36a452c5))
68
+ - **deps:** upgraded dependencies ([fa697d0](https://github.com/anolilab/javascript-style-guide/commit/fa697d09930c04b9c2ef2612b8940dba36a452c5))
53
69
 
54
70
  ### @anolilab/textlint-config [2.0.4](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.3...@anolilab/textlint-config@2.0.4) (2021-06-09)
55
71
 
56
-
57
72
  ### Bug Fixes
58
73
 
59
- * **deps:** update dependency textlint to v12 ([3e988b6](https://github.com/anolilab/javascript-style-guide/commit/3e988b65e03bd40f4b46e58b0bf247f250d02157))
60
- * **deps:** update dependency textlint-rule-write-good to v2 ([5b0521b](https://github.com/anolilab/javascript-style-guide/commit/5b0521bf2ce14a7cb7b8a76022ae637577a036a5))
74
+ - **deps:** update dependency textlint to v12 ([3e988b6](https://github.com/anolilab/javascript-style-guide/commit/3e988b65e03bd40f4b46e58b0bf247f250d02157))
75
+ - **deps:** update dependency textlint-rule-write-good to v2 ([5b0521b](https://github.com/anolilab/javascript-style-guide/commit/5b0521bf2ce14a7cb7b8a76022ae637577a036a5))
61
76
 
62
77
  ### @anolilab/textlint-config [2.0.3](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.2...@anolilab/textlint-config@2.0.3) (2021-05-04)
63
78
 
64
-
65
79
  ### Bug Fixes
66
80
 
67
- * removed index.cjs from text-lint ([e5ab6d6](https://github.com/anolilab/javascript-style-guide/commit/e5ab6d6a9214b288646d471e19afff163ac5cf57))
81
+ - removed index.cjs from text-lint ([e5ab6d6](https://github.com/anolilab/javascript-style-guide/commit/e5ab6d6a9214b288646d471e19afff163ac5cf57))
68
82
 
69
83
  ### @anolilab/textlint-config [2.0.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.1...@anolilab/textlint-config@2.0.2) (2021-05-04)
70
84
 
71
-
72
85
  ### Bug Fixes
73
86
 
74
- * **deps:** update dependency @textlint-rule/textlint-rule-no-invalid-control-character to v2 ([b2935fa](https://github.com/anolilab/javascript-style-guide/commit/b2935fad068cdaa02300926ec9403b6435948377))
87
+ - **deps:** update dependency @textlint-rule/textlint-rule-no-invalid-control-character to v2 ([b2935fa](https://github.com/anolilab/javascript-style-guide/commit/b2935fad068cdaa02300926ec9403b6435948377))
75
88
 
76
89
  ### @anolilab/textlint-config [2.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@2.0.0...@anolilab/textlint-config@2.0.1) (2021-04-20)
77
90
 
78
-
79
91
  ### Bug Fixes
80
92
 
81
- * added missing exit code to process.exit ([a94e9ed](https://github.com/anolilab/javascript-style-guide/commit/a94e9edfae21dbf9219c1c709d5aba95f9910d68))
93
+ - added missing exit code to process.exit ([a94e9ed](https://github.com/anolilab/javascript-style-guide/commit/a94e9edfae21dbf9219c1c709d5aba95f9910d68))
82
94
 
83
95
  ## @anolilab/textlint-config [2.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@1.0.1...@anolilab/textlint-config@2.0.0) (2021-04-19)
84
96
 
85
-
86
97
  ### ⚠ BREAKING CHANGES
87
98
 
88
- * upgraded node version to v12 and es modules
99
+ - upgraded node version to v12 and es modules
89
100
 
90
101
  ### Features
91
102
 
92
- * added more tests ([0535ce4](https://github.com/anolilab/javascript-style-guide/commit/0535ce477766e80286e7f6aecf10bae33b5be594))
103
+ - added more tests ([0535ce4](https://github.com/anolilab/javascript-style-guide/commit/0535ce477766e80286e7f6aecf10bae33b5be594))
93
104
 
94
105
  ### @anolilab/textlint-config [1.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/textlint-config@1.0.0...@anolilab/textlint-config@1.0.1) (2021-02-15)
95
106
 
96
-
97
107
  ### Bug Fixes
98
108
 
99
- * removed wrong keyword ([5f001fa](https://github.com/anolilab/javascript-style-guide/commit/5f001fae7f0d3902b2ac88342dc86b7835983d08))
109
+ - removed wrong keyword ([5f001fa](https://github.com/anolilab/javascript-style-guide/commit/5f001fae7f0d3902b2ac88342dc86b7835983d08))
package/README.md CHANGED
@@ -177,23 +177,20 @@ If you already have a `.textlintrc`, then you can extend the `.textlintrc`, with
177
177
  ## Supported Node.js Versions
178
178
 
179
179
  Libraries in this ecosystem make the best effort to track
180
- [Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a
180
+ [Node.js release schedule](https://nodejs.org/en/about/releases/). Heres [a
181
181
  post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).
182
182
 
183
- Contributing
184
- ------------
183
+ ## Contributing
185
184
 
186
185
  If you would like to help take a look at the [list of issues](https://github.com/anolilab/javascript-style-guide/issues) and check our [Contributing](.github/CONTRIBUTING.md) guild.
187
186
 
188
187
  > **Note:** please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
189
188
 
190
- Credits
191
- -------------
189
+ ## Credits
192
190
 
193
- - [Daniel Bannert](https://github.com/prisis)
194
- - [All Contributors](https://github.com/anolilab/javascript-style-guide/graphs/contributors)
191
+ - [Daniel Bannert](https://github.com/prisis)
192
+ - [All Contributors](https://github.com/anolilab/javascript-style-guide/graphs/contributors)
195
193
 
196
- License
197
- -------------
194
+ ## License
198
195
 
199
196
  The anolilab javascript-style-guide is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT)
@@ -4,16 +4,16 @@ if (process.env.CI) {
4
4
  process.exit(0);
5
5
  }
6
6
 
7
- import { writeFile, existsSync } from 'fs';
8
- import { resolve, join } from 'path';
9
- import { promisify } from 'util';
7
+ import { writeFile, existsSync } from "fs";
8
+ import { resolve, join } from "path";
9
+ import { promisify } from "util";
10
10
 
11
11
  const writeFileAsync = promisify(writeFile);
12
12
 
13
13
  // get the path to the host project.
14
- const projectPath = resolve(process.cwd(), '..', '..', '..');
14
+ const projectPath = resolve(process.cwd(), "..", "..", "..");
15
15
 
16
- console.log('Configuring @anolilab/textlint-config', projectPath, '\n');
16
+ console.log("Configuring @anolilab/textlint-config", projectPath, "\n");
17
17
 
18
18
  /**
19
19
  * Writes .textlintrc if it doesn't exist. Warns if it exists.
@@ -25,40 +25,37 @@ const writeTextlintRc = () => {
25
25
  "comments": true
26
26
  },
27
27
  "rules": {
28
- "en-capitalization": true,
29
- "footnote-order": true,
30
- "no-todo": true,
31
- "no-dead-link": {
32
- "ignore": [
33
- "bc_data_*",
34
- ]
35
- },
36
- "no-empty-section": true,
37
- "terminology": true,
38
- "apostrophe": true,
39
- "diacritics": true,
40
28
  "@textlint-rule/no-invalid-control-character": true,
41
29
  "@textlint-rule/no-unmatched-pair": true,
30
+ "@textlint-rule/preset-google": true,
42
31
  "abbr-within-parentheses": true,
32
+ "apostrophe": true,
43
33
  "alex": {
44
34
  "allow": [
45
- "period",
35
+ "attack",
46
36
  "european",
37
+ "execute"
38
+ "executed",
39
+ "execution",
47
40
  "failure",
48
41
  "fore",
49
- "attack",
50
- "execution",
51
- "executed",
42
+ "period",
52
43
  "remain",
53
- "execute"
54
44
  ]
55
45
  },
56
- "@textlint-rule/preset-google": true,
57
- "write-good": {
58
- "passive": false,
59
- "eprime": false,
60
- },
61
46
  "common-misspellings": true,
47
+ "date-weekday-mismatch": true
48
+ "diacritics": true,
49
+ "en-capitalization": true,
50
+ "footnote-order": true,
51
+ "no-dead-link": {
52
+ "ignore": [
53
+ "bc_data_*",
54
+ ]
55
+ },
56
+ "no-empty-section": true,
57
+ "no-todo": true,
58
+ "terminology": true,
62
59
  "terminology": {
63
60
  "defaultTerms": false,
64
61
  "terms": [
@@ -162,6 +159,10 @@ const writeTextlintRc = () => {
162
159
  ["it is", "it's"],
163
160
  ["It is", "It's"],
164
161
  ]
162
+ },
163
+ "write-good": {
164
+ "passive": false,
165
+ "eprime": false,
165
166
  }
166
167
  }
167
168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/textlint-config",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "Anolilab Coding Standard for text linting.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -49,6 +49,7 @@
49
49
  "textlint-rule-alex": "3.0.0",
50
50
  "textlint-rule-apostrophe": "2.0.0",
51
51
  "textlint-rule-common-misspellings": "1.0.1",
52
+ "textlint-rule-date-weekday-mismatch": "^1.0.6",
52
53
  "textlint-rule-diacritics": "1.0.0",
53
54
  "textlint-rule-en-capitalization": "2.0.3",
54
55
  "textlint-rule-footnote-order": "1.0.3",
@@ -67,7 +68,7 @@
67
68
  "textlint": "^12.1.0"
68
69
  },
69
70
  "engines": {
70
- "node": ">=12"
71
+ "node": ">=16"
71
72
  },
72
73
  "publishConfig": {
73
74
  "access": "public"