0.0.7 • Published 3 years ago

eslint-config-fespsp v0.0.7

Weekly downloads
5
License
ISC
Repository
-
Last release
3 years ago

1. Create .eslintrc.js:

module.exports = {
  root: true,
  extends: [require('fespsp').eslint],
  rules: {
    // Custom Rules
    // ...
  }
};

2. Create .lintstagedrc

{
  "**/*.{js,jsx,ts,tsx,vue}": "eslint"
}

3. Create .eslintignore

node_modules

4. Add lint command

Add "lint": "eslint --ext .js,.jsx,.ts,.tsx,.vue ." to package.json's scripts

yarn lint:check full code yarn lint --fix:automatically fix most problems with full code