npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

smash-middleware-eslint

0.0.22 • Public • Published

smash-middleware-eslint

An ESLint middleware for smash-cli.

使用

.smash/task.yml 文件中加入以下配置,

# 初始化ESLint配置 
init:
  name: smash-middleware-eslint
    options: --init
 
# 查找错误 
check:
  name: smash-middleware-eslint
    options:
      - ./
      - --ext .jsx,.js
 
# 查找并修复错误 
lint:
  name: smash-middleware-eslint
    options: ./ --ext .jsx,.js --fix

然后,执行以下命令来运行任务:

$ smash run lint # 也可以是init、check任务 

options 参数与 ESLint 的 ESLint 命令行 options 规则 一致 。

链接

install

npm i smash-middleware-eslint

Downloadsweekly downloads

56

version

0.0.22

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability