Giter Club home page Giter Club logo

eslint-config-feedzai's Introduction

eslint-config-feedzai

Build Status

This repository contains the ESLint configuration used across products at Feedzai. We share this configuration to promote the use of linters in JavaScript and to share our conventions and best practices in the hope of inspiring others when defining their configurations.

This repo includes two distinct ESLint configurations:

  • @feedzai/eslint-config-feedzai- This configuration contains our ESLint rules, including the ones for ECMAScript 6+. If you're using React in your projects please check the @feedzai/eslint-config-feedzai-react. This packages requires eslint and eslint-plugin-import.

  • @feedzai/eslint-config-feedzai-react - This configuration extends the @feedzai/eslint-config-feedzai and includes the rules for React, a11y and Jest. This package requires eslint, @feedzai/eslint-config-feedzai, eslint-plugin-import, eslint-plugin-jest, eslint-plugin-jsx-a11y and eslint-plugin-react.

Usage

Installing package dependencies

In order to list the correct versions of each package you could use this command:

npm info "@feedzai/eslint-config-feedzai@latest" peerDependencies

After this command, you can install those packages manually or if you're using the npm version > 5 you could use this shortcut:

npx install-peerdeps --dev @feedzai/eslint-config-feedzai-react

If you want to do all manually you should use:

npm install --save-dev @feedzai/eslint-config-feedzai eslint@^#.#.# eslint-plugin-import@^#.#.#

or :

npm install --save-dev @feedzai/eslint-config-feedzai-react eslint@^#.#.# @feedzai/eslint-config-feedzai@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-jest@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-react@^#.#.#

Using Feedzai's ESLint configurations in your .eslintrc file

Add "extends": "@feedzai/eslint-config-feedzai" for JavaScript projects or "extends": "@feedzai/eslint-config-feedzai-react" for React projects to your .eslintrc file.

Development tasks

You can check if those packages follow our coding style conventions by using npm run lint in the root folder of each package.

Deployment tasks

The available commands are:

  • deploy:major - creates a git tag and publish the X.0.0 version. This command should be executed only in the master branch.
  • deploy:minor - creates a git tag and publish the X.Y.0 version. This command should be executed in the hot-fix branches (hf-X.x.x).
  • deploy:patch - creates a git tag and publish the X.Y.Z version. This command should be executed in the hot-fix branches (hf-X.x.x).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.