Skip to content

totallymoney/eslint-plugin-prefer-smart-quotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-prefer-smart-quotes

Enforce the preferred 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:

npm install eslint --save-dev

Then, you can install eslint-plugin-prefer-smart-quotes

npm install eslint-plugin-prefer-smart-quotes --save-dev

Usage

Add the plugin to your eslint configuration file (.eslintrc.*):

{
    "plugins": [
        "prefer-smart-quotes"
    ]
}

To configure the plugin rules:

{
    "rules": {
        "prefer-smart-quotes/prefer": ["error", "all"]
    }
}

Acknowledgements

Thanks to eslint-plugin-no-smart-quotes for serving as the basis for this plugin.