Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-no-smart-quotes

seleb71.5kMIT1.4.2

Prevent the use of curly quote/apostrophe characters

eslint, eslintplugin, eslint-plugin, quotes, smart-quotes

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:

npm i -D eslint

Next, install eslint-plugin-no-smart-quotes:

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:

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

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

{
    "rules": {
        "no-smart-quotes/no-smart-quotes": "error"
    }
}

changelog

1.4.2 (2024-10-22)

Bug Fixes

1.4.1 (2024-10-22)

Bug Fixes

1.4.0 (2024-10-22)

Features

1.3.0 (2021-10-23)

Features

  • add support for vue text if vue parser is available (5d48c7d), closes #11

1.2.2 (2021-02-23)

  • test release

1.2.1 (2021-02-23)

1.2.0 (2021-02-23)

Features

  • add support for JSXText (874ac64), closes #5

1.1.0 (2020-05-13)

Features

1.0.2 (2019-08-27)

  • updated dependencies

1.0.1 (2019-07-13)

  • updated dependencies

1.0.0 (2019-03-30)

  • initial release