@coralic/eslint-config-base

1.0.0 • Public • Published

@coralic/eslint-config-base

ESLint configuration for non-typescript projects

If you need Typescript & React, see @coralic/eslint-config.

Usage

Install packages

Install the correct versions of each package, which are listed by the command:

yarn info "@coralic/eslint-config-base@latest" peerDependencies

Then run yarn add --dev <dependency>@<version> for each listed peer dependency.

If using npm 5+, use also this shortcut

npx install-peerdeps --dev @coralic/eslint-config-base

If using yarn, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly.

Configure ESLint

Create a .eslintrc file in the root of your project's directory (it should live where package.json does). Your .eslintrc file should look like this:

{
  "extends": ["@coralic/eslint-config-base"]
}

Configure Prettier

Create .prettierrc.js and add the following:

module.exports = require('@coralic/eslint-config-base/lib/prettier-config')

Package Sidebar

Install

npm i @coralic/eslint-config-base

Homepage

coralic.com

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

60.8 kB

Total Files

18

Last publish

Collaborators

  • florentinw