eslint-config-expane

0.3.0 • Public • Published

eslint-config-expane

Installation

  • install config via yarn add --dev eslint-config-expane prettier eslint
  • if TypeScript is not installed yet, install it via yarn add --dev typescript
  • add .eslintrc.js file to project root:
module.exports = {
  extends: ['expane'],
}
  • install husky and lint-staged to auto-lint on git commit: yarn add --dev husky lint-staged
  • add somewhere to package.json:
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{ts,tsx}": [
      "eslint --fix",
      "tsc --noEmit"
    ]
  }, 

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-expane

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

2.47 kB

Total Files

4

Last publish

Collaborators

  • todorone