2.0.0-pre.1 • Published 10 months ago

@yieldstudio/eslint-config v2.0.0-pre.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

ConfigFor what ?
@yieldstudio/eslint-configJavascript project
@yieldstudio/eslint-config/reactReact project
@yieldstudio/eslint-config/react-nativeReact Native project
@yieldstudio/eslint-config/nextNext.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.