@bigpopakap/eslint-config

1.1.153 • Public • Published

@bigpopakap/eslint-config

Shared ESLint configurations for bigpopakap's personal projects.

Adding to a new repo

Installation

yarn add -D @bigpopakap/eslint-config

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/eslint-config/***'
  ],

  // 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"
  }
}

Package Sidebar

Install

npm i @bigpopakap/eslint-config

Weekly Downloads

14

Version

1.1.153

License

UNLICENSED

Unpacked Size

75.9 kB

Total Files

9

Last publish

Collaborators

  • bigpopakap