0.0.1-alpha.1 • Published 3 years ago

@talltotal/eslint-plugin-talltotal v0.0.1-alpha.1

Weekly downloads
82
License
MIT
Repository
github
Last release
3 years ago

talltotal - eslint 插件

rules

import-specifier-newline

类似object-property-newline效果。

import-source-newline

from和来源之间没有注释时,不能有空行。

Installation

$ npm i eslint --save-dev
$ npm install @talltotal/eslint-plugin-talltotal --save-dev

Usage

配置插件

{
    "plugins": [
        "@talltotal/talltotal"
    ]
}

启用规则

{
    "rules": {
        "@talltotal/talltotal/import-specifier-newline": 2,
        "@talltotal/talltotal/import-source-newline": 2,
    }
}

使用推荐配置

{
    "extends": [
        "plugin:@talltotal/talltotal/recommended",
    ]
}