Skip to content

✨ Our common eslint and prettier configurations

License

Notifications You must be signed in to change notification settings

YieldStudio/eslint-config

Repository files navigation

@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.