Skip to content

smanwaring/eslint-plugin-punctuation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-punctuation

Linting rules for using appropriate punctuation symbols (like the apostrophe symbol instead of a single quote) in string literals.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-punctuation:

$ npm install eslint-plugin-punctuation --save-dev

Usage

Add punctuation to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["punctuation"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "punctuation/prefer-apostrophe-in-string-literal": "error"
  }
}

Supported Rules

  • prefer-apostrophe-in-string-literal

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published