@yieldstudio/eslint-config

2.0.0-pre.1 • Public • Published

@yieldstudio/eslint-config

Our base eslint and prettier configurations.

Latest Version Total Downloads

We use both to lint our code:

  • eslint for code-quality.
  • prettier for formatting.

Our eslint config is mainly based on Airbnb's eslint config.

Installation

yarn add --dev @yieldstudio/eslint-config eslint prettier

Extend the shared eslint config in your .eslintrc.js:

// .eslintrc.js

module.exports = {
  extends: '@yieldstudio/eslint-config', 
  // Your project-specific config
};

Available eslint configs:

Config For what ?
@yieldstudio/eslint-config Javascript project
@yieldstudio/eslint-config/react React project
@yieldstudio/eslint-config/react-native React Native project
@yieldstudio/eslint-config/next Next.js project

Extend the shared prettier config in your .prettierrc.js:

// .prettierrc.js
module.exports = require("@yieldstudio/eslint-config/prettier.config");

Credits

License

The MIT License (MIT). Please see License File for more information.

Package Sidebar

Install

npm i @yieldstudio/eslint-config

Weekly Downloads

10

Version

2.0.0-pre.1

License

MIT

Unpacked Size

7.72 kB

Total Files

9

Last publish

Collaborators

  • jsanchezporro
  • jameshemery