eslint-plugin-strictstrings

1.0.1 • Public • Published

eslint-plugin-strictstrings

enforce no spaces in single quotes and spaces in double quotes

example eslint config

{
    "plugins": [
        "strictstrings"
    ],
    "rules": {
        "strictstrings/single-quotes-no-space": [
            "error",
            "never"
        ],
        "strictstrings/double-quotes-space": [
            "error",
            "always"
        ]
    }
}

Rules

Single Quotes

incorrect - 'some string'

incorrect - 'some-string '

correct - 'some-string'

correct - 'some_string'


Double Quotes

correct - "some string"

correct - "some-string "

incorrect - "some-string"

incorrect - "some_string"

Package Sidebar

Install

npm i eslint-plugin-strictstrings

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.77 kB

Total Files

4

Last publish

Collaborators

  • 404invalid-user