0.0.9 • Published 6 months ago

@jkx5/eslint-config-js v0.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

eslint-config-js

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

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-js

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

# with pnpm
$ pnpm add -D @jkx5/eslint-config-js
  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-js

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

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

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: ["@jkx5/eslint-config-js"],
};

4. Update package.json

Add npm commands to the scripts section in package.json file

{
  "eslint:check": "eslint \"src/**/*.js\"",
  "eslint:fix": "eslint \"src/**/*.js\" --fix"
}
0.0.9

6 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

10 months ago

0.0.1

10 months ago