@anolilab/textlint-config 2.0.8 → 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,74 +1,109 @@
1
- ### @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)
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 dependency textlint-rule-no-dead-link to v4.8.0 ([1de655e](https://github.com/anolilab/javascript-style-guide/commit/1de655e00a3f952163c346ae8d032be2e1cf5a20))
17
+ * markdown lint ([24059d4](https://github.com/anolilab/javascript-style-guide/commit/24059d41ca682ca21b39ad7f6dff594be734329d))
7
18
 
8
- ### @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)
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)
10
25
 
11
26
  ### Bug Fixes
12
27
 
13
- * added funding to the package ([f90d18f](https://github.com/anolilab/javascript-style-guide/commit/f90d18f8347a4bdc395b1740c85ac74a4072297c))
28
+ - **deps:** update dependencies (non-major) ([354adee](https://github.com/anolilab/javascript-style-guide/commit/354adee555f89913a038ab67e3323ec13f51dfc2))
14
29
 
15
- ### @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)
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)
31
+
32
+ ### ⚠ BREAKING CHANGES
33
+
34
+ - moved textlint out of dependencies, to fix a bug with missing bin, no it is a peerDependencies
16
35
 
36
+ ### Features
37
+
38
+ - moved textlint out of dependencies ([b5ded20](https://github.com/anolilab/javascript-style-guide/commit/b5ded20d72e4be78ae8bfe40001695d86e0935db))
39
+
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)
17
41
 
18
42
  ### Bug Fixes
19
43
 
20
- * fixed release flow in all packages ([8c5ec13](https://github.com/anolilab/javascript-style-guide/commit/8c5ec1341e11ccf48d8d3e8f8808fb162d062d97))
44
+ - **deps:** update dependency textlint to v12.1.0 ([19b856c](https://github.com/anolilab/javascript-style-guide/commit/19b856c83ce661af9d6a1bb3a584af8ca0465188))
21
45
 
22
- ### @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)
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)
23
47
 
48
+ ### Bug Fixes
49
+
50
+ - **deps:** update dependency textlint-rule-no-dead-link to v4.8.0 ([1de655e](https://github.com/anolilab/javascript-style-guide/commit/1de655e00a3f952163c346ae8d032be2e1cf5a20))
51
+
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)
24
53
 
25
54
  ### Bug Fixes
26
55
 
27
- * **deps:** upgraded dependencies ([fa697d0](https://github.com/anolilab/javascript-style-guide/commit/fa697d09930c04b9c2ef2612b8940dba36a452c5))
56
+ - added funding to the package ([f90d18f](https://github.com/anolilab/javascript-style-guide/commit/f90d18f8347a4bdc395b1740c85ac74a4072297c))
28
57
 
29
- ### @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)
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)
59
+
60
+ ### Bug Fixes
61
+
62
+ - fixed release flow in all packages ([8c5ec13](https://github.com/anolilab/javascript-style-guide/commit/8c5ec1341e11ccf48d8d3e8f8808fb162d062d97))
63
+
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)
65
+
66
+ ### Bug Fixes
30
67
 
68
+ - **deps:** upgraded dependencies ([fa697d0](https://github.com/anolilab/javascript-style-guide/commit/fa697d09930c04b9c2ef2612b8940dba36a452c5))
69
+
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)
31
71
 
32
72
  ### Bug Fixes
33
73
 
34
- * **deps:** update dependency textlint to v12 ([3e988b6](https://github.com/anolilab/javascript-style-guide/commit/3e988b65e03bd40f4b46e58b0bf247f250d02157))
35
- * **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))
36
76
 
37
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)
38
78
 
39
-
40
79
  ### Bug Fixes
41
80
 
42
- * removed index.js 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))
43
82
 
44
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)
45
84
 
46
-
47
85
  ### Bug Fixes
48
86
 
49
- * **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))
50
88
 
51
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)
52
90
 
53
-
54
91
  ### Bug Fixes
55
92
 
56
- * 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))
57
94
 
58
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)
59
96
 
60
-
61
97
  ### ⚠ BREAKING CHANGES
62
98
 
63
- * upgraded node version to v12 and es modules
99
+ - upgraded node version to v12 and es modules
64
100
 
65
101
  ### Features
66
102
 
67
- * 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))
68
104
 
69
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)
70
106
 
71
-
72
107
  ### Bug Fixes
73
108
 
74
- * 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
@@ -17,7 +17,7 @@ Anolilab Coding Standard for text linting.
17
17
  ## Install
18
18
 
19
19
  ```bash
20
- npm install --dev-save @anolilab/textlint-config
20
+ npm install --dev-save @anolilab/textlint-config textlint
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -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": "2.0.8",
3
+ "version": "4.0.0",
4
4
  "description": "Anolilab Coding Standard for text linting.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -44,16 +44,16 @@
44
44
  "@textlint-rule/textlint-rule-no-invalid-control-character": "2.0.0",
45
45
  "@textlint-rule/textlint-rule-no-unmatched-pair": "1.0.8",
46
46
  "@textlint-rule/textlint-rule-preset-google": "0.1.2",
47
- "textlint": "12.0.2",
48
47
  "textlint-filter-rule-comments": "^1.2.2",
49
48
  "textlint-rule-abbr-within-parentheses": "1.0.2",
50
49
  "textlint-rule-alex": "3.0.0",
51
50
  "textlint-rule-apostrophe": "2.0.0",
52
51
  "textlint-rule-common-misspellings": "1.0.1",
52
+ "textlint-rule-date-weekday-mismatch": "^1.0.6",
53
53
  "textlint-rule-diacritics": "1.0.0",
54
54
  "textlint-rule-en-capitalization": "2.0.3",
55
55
  "textlint-rule-footnote-order": "1.0.3",
56
- "textlint-rule-helper": "2.2.0",
56
+ "textlint-rule-helper": "2.2.1",
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",
@@ -61,8 +61,14 @@
61
61
  "textlint-rule-write-good": "2.0.0",
62
62
  "write-good": "1.0.8"
63
63
  },
64
+ "devDependencies": {
65
+ "textlint": "^12.1.0"
66
+ },
67
+ "peerDependencies": {
68
+ "textlint": "^12.1.0"
69
+ },
64
70
  "engines": {
65
- "node": ">=12"
71
+ "node": ">=16"
66
72
  },
67
73
  "publishConfig": {
68
74
  "access": "public"