Skip to content

Instantly share code, notes, and snippets.

@aclisp
Created July 7, 2020 07:55
Show Gist options
  • Save aclisp/a157ce95a877c1e293718ca28486b079 to your computer and use it in GitHub Desktop.
Save aclisp/a157ce95a877c1e293718ca28486b079 to your computer and use it in GitHub Desktop.
搭建开发环境 yarn typescript eslint standard

安装

  • npm install --global yarn
  • yarn init
  • yarn add eslint typescript standard --dev
  • eslint --init
  • 调整 tsconfig.json 和 .eslintrc.json

运行

  • standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin **/*.ts
  • tsc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment