Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule: no-raw-text - Identify raw text defined in the script #451

Open
AvinashRavula opened this issue Nov 15, 2023 · 0 comments
Open

Rule: no-raw-text - Identify raw text defined in the script #451

AvinashRavula opened this issue Nov 15, 2023 · 0 comments

Comments

@AvinashRavula
Copy link

What rule do you want to change?
no-raw-text

Does this change cause the rule to produce more or fewer warnings?
more

How will the change be implemented? (New option, new default behavior, etc.)?
new default behavior

Please provide some example code that this change will affect:

<template>
   <p>
      {{ computedValue }}
   </p>
</template>

<script>
export default {
   props: {
      isChecked: {
         type: Boolean,
         default: true
      }
   }
   computed: {
      computedValue() {
         return this.isChecked ? 'Hello' : 'World';
      }
   }
}

What does the rule currently do for this code?
Does not detect the Hello and World strings as raw text.

What will the rule do after it's changed?
Detects the Hello and World texts as raw text.

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant