npm.io
1.0.4 • Published 6 years ago

eslint-config-paraply

Licence
MIT
Version
1.0.4
Deps
0
Size
6 kB
Vulns
0
Weekly
0
  1. Run npx install-peerdeps --dev eslint-config-jorgy

  2. Install ESLint plugin for VSCode

  3. Add these options to your VSCode settings:

    // This one is deprecated
    "eslint.autoFixOnSave": true,
    // Use this next one instead
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true
    },
    "[javascript]": {
      "editor.formatOnSave": false,
    },
    "[javascriptreact]": {
      "editor.formatOnSave": false
    },
    "[typescript]": {
      "editor.formatOnSave": false,
    },
    "prettier.disableLanguages": ["js"],
  4. Add .eslintrc to your project. ESLint has made it next to impossible to use shared configs/plugins globally, so sadly forced to using them locally. Put this in the file:

    {
      "extends": ["jorgy"],
      "rules": {
        // Put your overrides here
      }
    }