https://github.com/seleb/eslint-plugin-no-smart-quotes
Prevent the use of curly quote/apostrophe characters
https://github.com/seleb/eslint-plugin-no-smart-quotes
eslint eslint-plugin javascript quotes smart-quotes
Last synced: 2 months ago
JSON representation
Prevent the use of curly quote/apostrophe characters
- Host: GitHub
- URL: https://github.com/seleb/eslint-plugin-no-smart-quotes
- Owner: seleb
- License: mit
- Created: 2019-03-30T02:51:57.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-22T22:25:13.000Z (12 months ago)
- Last Synced: 2024-12-09T21:51:04.663Z (11 months ago)
- Topics: eslint, eslint-plugin, javascript, quotes, smart-quotes
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-plugin-no-smart-quotes
- Size: 365 KB
- Stars: 12
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-no-smart-quotes
Prevent the use of curly quote/apostrophe characters
**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line.
## Installation
You'll first need to install [ESLint](http://eslint.org):
```sh
npm i -D eslint
```Next, install `eslint-plugin-no-smart-quotes`:
```sh
npm i -D eslint-plugin-no-smart-quotes
```**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-no-smart-quotes` globally.
## Usage
Add `no-smart-quotes` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"no-smart-quotes"
]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"no-smart-quotes/no-smart-quotes": "error"
}
}
```