@jkx5/eslint-config-base

0.0.9 • Public • Published

eslint-config-base

npm i -D eslint @jkx5/eslint-config-base

Shared ESLint configuration for JavaScript projects

This ESLint configuration deactivates all formatting rules of ESLint and makes sure that Prettier is used for code beautifying.

Integrate into new project

  1. Install this package as devDependency
# with Yarn
$ yarn add -D @jkx5/eslint-config-base

# with npm
$ npm i -D @jkx5/eslint-config-base

# with pnpm
$ pnpm add -D @jkx5/eslint-config-base
  1. Install peer dependencies of this package in your project as devDependencies

Therefore, you can make use of the tool install-peerdeps:

# with Yarn
$ yarn dlx install-peerdeps --dev @jkx5/eslint-config-base

# with npm
$ npx install-peerdeps --dev @jkx5/eslint-config-base

#with pnpm
$ pnpm dlx install-peerdeps --dev @jkx5/eslint-config-base

Instead, you can do this manually by adding all entries part of the peerDependencies property (see package.json).

  1. Use ESLint config in your project

Create a .eslintrc.js file in project root with the following content:

module.exports = {
  extends: ["eslint:recommended", "@jkx5/eslint-config-base"],
};

/@jkx5/eslint-config-base/

    Package Sidebar

    Install

    npm i @jkx5/eslint-config-base

    Weekly Downloads

    2

    Version

    0.0.9

    License

    ISC

    Unpacked Size

    2.75 kB

    Total Files

    3

    Last publish

    Collaborators

    • jacekkoziol