Last active
April 1, 2021 14:02
-
-
Save faisalmahmud/3d5946a7923434671c1ca17a5740aa4e to your computer and use it in GitHub Desktop.
Template for .eslintrc.js, .prettierrc.js, settings.json in VS Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: "babel-eslint", | |
plugins: ["react", "prettier"], | |
rules: { | |
"prettier/prettier": "error" | |
}, | |
parserOptions: { | |
ecmaFeatures: { | |
jsx: true, | |
modules: true | |
} | |
}, | |
extends: ["eslint:recommended", "plugin:react/recommended", "airbnb-base"] | |
}; | |
// npm install --save-dev babel-eslint eslint-config-airbnb-base eslint-plugin-react | |
// yarn add --dev babel-eslint eslint-config-airbnb-base eslint-plugin-react |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
printWidth: 80, | |
parser: "flow" | |
}; | |
// npm install --save-dev prettier eslint-plugin-prettier eslint-config-prettier | |
// yarn add --dev prettier eslint-plugin-prettier eslint-config-prettier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"javascript.format.enable": false, | |
"prettier.eslintIntegration": true, | |
"[javascript]": { | |
"editor.formatOnSave": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment