1.0.0 • Published 5 years ago
@wheatfu/eslint-config v1.0.0
eslint-config
A strict TypeScript ESLint Shareable Config for instead of TSlint
instructions
规则根据@waiting/eslint-config fork,并根据自己项目进行修改
Features
@waiting/eslint-config/recommendedextends and customize fromeslint-plugin-importeslint-plugin-nodeeslint-plugin-unicorneslint:recommended@typescript-eslint/recommended@typescript-eslint/recommended-requiring-type-checking
@waiting/eslint-configextends@waiting/eslint-config/strictand more strict rules enabled
Install
npm i -D @waiting/eslint-config eslintUsage
Shareable configs are designed to work with the extends feature of .eslintrc.* files.
You can learn more about
Shareable Configs on the
official ESLint website.
Add this to your .eslintrc.* file:
.eslintrc.ymlextends: '@waiting/eslint-config'.eslintrc.json{ "extends": "@waiting/eslint-config" }
You can override settings from the shareable config by adding them directly into your
.eslintrc.* file.
And add file .eslintrc.yml under the folder such as ./test for fast linting with less strict rules:
# .eslintrc.yml
extends: '@waiting/eslint-config/recommended'Linting
eslint --fix src/**/*.ts
eslint src/**/*.{ts,js}Learn more
License
Languages
1.0.0
5 years ago