eslint-plugin-vietnamese
v1.3.1
Published
## Installation
Downloads
265
Readme
ESLinting to avoid inline styles
Installation
You'll first need to install ESlint
$ npm i eslint --save-dev
Next, install npm i eslint-plugin-vietnamese
:
$ npm install eslint-plugin-vietnamese --save-dev
Usage
Add eslint-plugin-vietnamese
to the plugins section of your .eslintrc
configuration file:
{
"plugins": ["vietnamese"],
"rules": {
"vietnamese/vietnamese-words": "error"
}
}
Test
class Component extends React.Component {
render() {
<div>
<span style={{ height: 40 }}>Tôi là người Việt Nam</span>
</div>;
}
}