@aerian/eslint-config-node

13.2.0 • Public • Published

@aerian/eslint-config-node

This is a sharable ESLint config for node. If you're using TypeScript, add @aerian/eslint-config-typescript too.

If you're using Preact, try @aerian/eslint-config-preact

To install, run:

#npm
npm i -D eslint prettier @aerian/eslint-config-react

#yarn
yarn add -D  eslint prettier @aerian/eslint-config-react

To use it, create the following .eslintrc.json:

{
    "extends": ["@aerian/eslint-config-node"]
}

..or if you're using TypeScript:

{
    "extends": [
        "@aerian/eslint-config-node",
        "@aerian/eslint-config-typescript"
    ]
}

The base formatting uses Prettier, which parses and reformats your code. It runs this through ESLint, so you can run use eslint . --fix to apply Prettier formatting as well as ESLint rules.

Readme

Keywords

Package Sidebar

Install

npm i @aerian/eslint-config-node

Weekly Downloads

51

Version

13.2.0

License

MIT

Unpacked Size

2.71 kB

Total Files

4

Last publish

Collaborators

  • ascorbic
  • s-unya
  • davinux
  • darren.ivey