Skip to content

Commit 7a658c1

Browse files
authored
patch release v1.4.1 (#316)
* patch release v1.4.1 * format * update
1 parent dd1db9e commit 7a658c1

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11

2+
## v1.4.1 (2022-04-07)
3+
4+
#### :bug: Bug Fixes
5+
* [#315](https://github.com/intlify/eslint-plugin-vue-i18n/pull/315) Fix crash with null value in no-raw-text rule ([@ota-meshi](https://github.com/ota-meshi))
6+
* [#313](https://github.com/intlify/eslint-plugin-vue-i18n/pull/313) Fix false positives in no-missing-keys ([@ota-meshi](https://github.com/ota-meshi))
7+
* [#312](https://github.com/intlify/eslint-plugin-vue-i18n/pull/312) Fix false negatives when using parsers other than vue-eslint-parser in no-missing-keys ([@ota-meshi](https://github.com/ota-meshi))
8+
9+
#### Committers: 1
10+
- Yosuke Ota ([@ota-meshi](https://github.com/ota-meshi))
11+
12+
213
## v1.4.0 (2022-03-06)
314

415
#### :bug: Bug Fixes

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@intlify/eslint-plugin-vue-i18n",
33
"description": "ESLint plugin for Vue I18n",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"author": {
66
"name": "kazuya kawaguchi",
77
"email": "[email protected]"
@@ -109,7 +109,7 @@
109109
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
110110
"docs": "npm run build && vuepress dev docs",
111111
"docs:build": "npm run build && vuepress build docs",
112-
"generate": "ts-node scripts/update.ts && npm run format",
112+
"generate": "ts-node scripts/update.ts",
113113
"lint": "eslint . --ext js,ts,vue,md --ignore-pattern \"/tests/fixtures\"",
114114
"lint-fix": "eslint . --ext js,ts,vue,md --ignore-pattern \"/tests/fixtures\" --fix",
115115
"lint:docs": "prettier docs --check",

scripts/update-docs-index.ts

+11-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@
44
* Forked by https://github.com/mysticatea/eslint-plugin-eslint-comments/tree/master/scripts/update-docs-index.js
55
*/
66
import prettier from 'prettier'
7-
import { writeFileSync } from 'fs'
8-
import { resolve } from 'path'
7+
import { writeFileSync, readFileSync } from 'fs'
8+
import { resolve, join } from 'path'
9+
import yaml from 'js-yaml'
910
import type { RuleInfo } from './lib/rules'
1011
import { withCategories } from './lib/rules'
1112

13+
const prettierrc = yaml.load(
14+
readFileSync(join(__dirname, '../.prettierrc.yaml'), 'utf8')
15+
) as prettier.Options
16+
1217
function toTableRow(rule: RuleInfo) {
1318
const mark = `${rule.recommended ? ':star:' : ''}${
1419
rule.fixable ? ':black_nib:' : ''
@@ -42,4 +47,7 @@ const content = `# Available Rules
4247
4348
${withCategories.map(toCategorySection).join('\n')}
4449
`
45-
writeFileSync(filePath, prettier.format(content, { filepath: filePath }))
50+
writeFileSync(
51+
filePath,
52+
prettier.format(content, { filepath: filePath, ...prettierrc })
53+
)

scripts/update-rule-docs.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
import prettier from 'prettier'
77
import { writeFileSync, readFileSync } from 'fs'
88
import { join } from 'path'
9+
import yaml from 'js-yaml'
910
import type { RuleInfo } from './lib/rules'
1011
import rules from './lib/rules'
1112
const PLACE_HOLDER = /#[^\n]*\n+> .+\n+(?:- .+\n)*\n*/u
1213

14+
const prettierrc = yaml.load(
15+
readFileSync(join(__dirname, '../.prettierrc.yaml'), 'utf8')
16+
) as prettier.Options
17+
1318
export function updateRuleDocs({
1419
nextVersion
1520
}: { nextVersion?: string } = {}): void {
@@ -42,7 +47,10 @@ export function updateRuleDocs({
4247
write() {
4348
writeFileSync(
4449
this.filePath,
45-
prettier.format(this.content, { filepath: this.filePath })
50+
prettier.format(this.content, {
51+
filepath: this.filePath,
52+
...prettierrc
53+
})
4654
)
4755
}
4856
updateFileIntro() {

0 commit comments

Comments
 (0)