Skip to content

weaselandfox/eslint-config-wslfx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-wslfx

Weasel & Fox ESlint config

Usage

  1. Install this package:
yarn add -D eslint-config-wslfx
  1. Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-wslfx@latest" peerDependencies

If using npm 5+, use this shortcut

npx install-peerdeps --dev eslint-config-wslfx
  1. Create .eslintrc.js configuration file:
module.exports = {
  extends: ['wslfx']
}
  1. Add lint scripts to package.json:
"scripts": {
  "lint": "yarn eslint .",
  "lint:fix": "yarn lint --fix"
}
  1. Run yarn lint to lint your code.
  2. Run yarn lint:fix to lint, format and fix your code.

Releases

No releases published

Packages

No packages published