Skip to content

molee1905/eslint-plugin-sm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-sm

eslint plugin for sm

Installation

You'll first need to install ESLint:

$ npm i eslint -g

Next, install eslint-plugin-sm:

$ npm install eslint-plugin-sm -g

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-sm globally.

Usage

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

{
    "plugins": [
        "sm"
    ]
}

Then configure the rules you want to use under the rules section. For now, the fix only support "always" option.

{
    "rules": {
        "sm/no-tabs": "error",
        "sm/newline-after-var": ["error", "always"]
    }
}

Example

with shareable config: eslint-config-sm and this plugin:

{
    root: true,
    "plugins": [
        "sm"
    ],
    "rules": {
        "sm/no-tabs": "error",
        "sm/newline-after-var": ["error", "always"],
        "sm/no-zepto-ajax": "error"
    },
    extends: "sm"
}

About

eslint plugin for sm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published