Skip to content

Commit

Permalink
patch release v1.4.1 (#316)
Browse files Browse the repository at this point in the history
* patch release v1.4.1

* format

* update
  • Loading branch information
ota-meshi authored Apr 7, 2022
1 parent dd1db9e commit 7a658c1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@

## v1.4.1 (2022-04-07)

#### :bug: Bug Fixes
* [#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))
* [#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))
* [#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))

#### Committers: 1
- Yosuke Ota ([@ota-meshi](https://github.com/ota-meshi))


## v1.4.0 (2022-03-06)

#### :bug: Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@intlify/eslint-plugin-vue-i18n",
"description": "ESLint plugin for Vue I18n",
"version": "1.4.0",
"version": "1.4.1",
"author": {
"name": "kazuya kawaguchi",
"email": "kawakazu80@gmail.com"
Expand Down Expand Up @@ -109,7 +109,7 @@
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
"docs": "npm run build && vuepress dev docs",
"docs:build": "npm run build && vuepress build docs",
"generate": "ts-node scripts/update.ts && npm run format",
"generate": "ts-node scripts/update.ts",
"lint": "eslint . --ext js,ts,vue,md --ignore-pattern \"/tests/fixtures\"",
"lint-fix": "eslint . --ext js,ts,vue,md --ignore-pattern \"/tests/fixtures\" --fix",
"lint:docs": "prettier docs --check",
Expand Down
14 changes: 11 additions & 3 deletions scripts/update-docs-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
* Forked by https://github.com/mysticatea/eslint-plugin-eslint-comments/tree/master/scripts/update-docs-index.js
*/
import prettier from 'prettier'
import { writeFileSync } from 'fs'
import { resolve } from 'path'
import { writeFileSync, readFileSync } from 'fs'
import { resolve, join } from 'path'
import yaml from 'js-yaml'
import type { RuleInfo } from './lib/rules'
import { withCategories } from './lib/rules'

const prettierrc = yaml.load(
readFileSync(join(__dirname, '../.prettierrc.yaml'), 'utf8')
) as prettier.Options

function toTableRow(rule: RuleInfo) {
const mark = `${rule.recommended ? ':star:' : ''}${
rule.fixable ? ':black_nib:' : ''
Expand Down Expand Up @@ -42,4 +47,7 @@ const content = `# Available Rules
${withCategories.map(toCategorySection).join('\n')}
`
writeFileSync(filePath, prettier.format(content, { filepath: filePath }))
writeFileSync(
filePath,
prettier.format(content, { filepath: filePath, ...prettierrc })
)
10 changes: 9 additions & 1 deletion scripts/update-rule-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@
import prettier from 'prettier'
import { writeFileSync, readFileSync } from 'fs'
import { join } from 'path'
import yaml from 'js-yaml'
import type { RuleInfo } from './lib/rules'
import rules from './lib/rules'
const PLACE_HOLDER = /#[^\n]*\n+> .+\n+(?:- .+\n)*\n*/u

const prettierrc = yaml.load(
readFileSync(join(__dirname, '../.prettierrc.yaml'), 'utf8')
) as prettier.Options

export function updateRuleDocs({
nextVersion
}: { nextVersion?: string } = {}): void {
Expand Down Expand Up @@ -42,7 +47,10 @@ export function updateRuleDocs({
write() {
writeFileSync(
this.filePath,
prettier.format(this.content, { filepath: this.filePath })
prettier.format(this.content, {
filepath: this.filePath,
...prettierrc
})
)
}
updateFileIntro() {
Expand Down

0 comments on commit 7a658c1

Please sign in to comment.