1.0.1 • Published 1 year ago

eslint-plugin-strictstrings v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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"

1.0.1

1 year ago

1.0.0

1 year ago