Coder Social home page Coder Social logo

eslint-config-deriv's Introduction

eslint-config-deriv

This package provides Deriv's .eslintrc as an extensible shared config.

installation

For deriv-com:

  1. remove the below packages from package.json in root and also each packages:

    • "eslint-import-resolver-node": "^0.3.6"
    • "@typescript-eslint/eslint-plugin": "^5.9.0"
    • "@typescript-eslint/parser": "^5.9.0"
    • "eslint": "^7.32.0"
    • "eslint-loader": "^4.0.2"
    • "eslint-plugin-deprecation": "^1.3.2"
    • "eslint-plugin-import": "^2.25.4"
    • "eslint-plugin-jest": "^26.1.4"
    • "eslint-plugin-react": "^7.28.0"
    • "eslint-plugin-react-hooks": "^4.5.0"
    • "eslint-webpack-plugin": "^3.1.1"
  2. Install the latest version:

npm i -D eslint-config-deriv

For deriv-app:

  1. remove the below packages from package.json:

    • "@typescript-eslint/eslint-plugin": "^5.8.0"
    • "@typescript-eslint/parser": "^5.8.0"
    • "eslint": "^7.18.0"
    • "eslint-config-airbnb-base": "^14.2.1"
    • "eslint-config-binary": "^1.0.2"
    • "eslint-config-prettier": "^7.2.0"
    • "eslint-formatter-pretty": "^4.0.0"
    • "eslint-import-resolver-typescript": "^2.7.1"
    • "eslint-import-resolver-webpack": "^0.13.0"
    • "eslint-plugin-import": "^2.23.4"
    • "eslint-plugin-jest-dom": "^3.8.1"
    • "eslint-plugin-prettier": "^3.3.1"
    • "eslint-plugin-react": "^7.22.0"
    • "eslint-plugin-react-hooks": "^4.2.0"
    • "eslint-plugin-testing-library": "^4.2.0"
  2. add the below to the devDependencies of the root package.json:

"eslint-config-deriv": "^1.0.0-beta.2"
  1. run npm run i and then npm run bootstrap

Usage

For deriv-com:

inside .eslinrc remove plugins , rules , env, parser , and settings and then change "extends" like this:

"extends": ["eslint:recommended", "deriv"]

and to test if it's working run the bellow command:

npm run eslint

For deriv-app:

inside .eslinrc remove everything except overrides and add this at the top :

"extends": ["deriv"]

and to test if it's working run the bellow command:

npm run test:eslint-all

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.