Header Ads

Install eslint in vs code

Install eslint in vs code

Install eslint in vs code

Install eslint in visual studio code easy

Eslint is not new for React Native apps, but I admit that getting eslint to work seamlessly in React Native is not so trivial (yet?) and couldn’t find simple documentation on how to do this. 

You will install 
- bable-eslint 
- eslint
- eslint-plugin-react

Install eslint, run terminal and paste

npm install --save-dev babel-eslint eslint eslint-plugin-react

Goto project workspace, and create file .eslintrc and paste text 

{
    "parser": "babel-eslint",
    "env": {
        "browser": true
    },
    "plugins": [
        "react"
    ],
    "extends": [
        "eslint:recommended",
        "plugin:react/recommended"
    ],
    "rules": {
        // overrides
    }
}

Goto Eslint Docs: http://eslint.org/docs/rules/

Thank you for reading, like panpage and share website

1 comment: