2.0.3 • Published 4 years ago

eslint-config-bigpopakap v2.0.3

Weekly downloads
-
License
-
Repository
github
Last release
4 years ago

eslint-config-bigpopakap

Shared ESLint configurations for bigpopakap's personal projects.

Adding to a new repo

Installation

yarn add -D eslint-config-bigpopakap

Running

Examples of how to run the linter:

yarn eslint-bigpopakap
yarn eslint-bigpopakap --fix

Configuration

Add the following .eslintrc.js to your project:

module.exports = {
  extends: [
    // Update to `/node`, `/react`, or another flavor, depending on what kind of project you have.
    'bigpopakap/base'
  ],

  // Optional, but useful to help ESLint resolve absolute path imports,
  // matching whatever path is in your `tsconfig.json#compilerOptions#baseUrl`.
  settings: {
    "import/resolver": {
      node: {
        paths: ["src"]
      }
    },
  }
};

Useful scripts

You may want to add the following scripts to your package.json:

{
  "scripts": {
    "lint": "npm-run-all -c lint:*",
    "lintfix": "npm-run-all -c lint:*:fix",
    "lint:js": "yarn eslint-bigpopakap",
    "lint:js:fix": "yarn lint:js --fix",
  }
}