1.0.0 • Published 2 years ago

@hoodoo/eslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Generic linting rules for all of your favorite js frameworks.

Installation

yarn add -D @hoodoo/eslint-config

Create a .eslintrc.js file to your project that looks something like this

module.exports = {
  extends: '@hoodoo/eslint-config',
}

and in your package.json add this line "prettier": "@hoodoo/prettier-config",

Now to get your editor to format your code for you on save follow the steps below.

VSCode

To get your linter working properly and linting your code on save, you'll need to disable or uninstall Prettier and have ESLint enabled in your VSCode plugins.

Settings

{
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  },
  "eslint.format.enable": true,
  "eslint.lintTask.enable": true,
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
}

IntelliJ

Here's a quick guide on how to setup File Watchers.