Skip to content

support eslint --fix in 'no-raw-text' rule #202

Closed
@shota-kizawa

Description

@shota-kizawa

This issue is a request to add a fix option to the no-raw-text rule.

For exmaple,

module.export = {
  extends: [
    'eslint:recommended',
    'plugin:@intlify/vue-i18n/recommended'
  ],
  rules: {
  },
  settings: {
    'vue-i18n': {
    }
  }
}

and run

eslint --config ./.eslintrc.js --ext .vue,.ts,.js . --fix",

before

<template>
  <p>hello</p>
</template>

after

<template>
  <p>{{ $t('hello') }}</p>
</template>

<i18n>
{
  "": {
     "": "hello"	
  }
}
</i18n>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions