Skip to content

Instantly share code, notes, and snippets.

@sinpaout
Created October 24, 2019 02:25
Show Gist options
  • Save sinpaout/7c92574b2b72090a63cf4cb2be32de2a to your computer and use it in GitHub Desktop.
Save sinpaout/7c92574b2b72090a63cf4cb2be32de2a to your computer and use it in GitHub Desktop.
Sample eslint included prettier for react project
{
"env": {
"browser": true,
"es6": true
},
"globals": {
"APP": true,
"jQuery": true,
"$": true,
},
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"standard",
"eslint:recommended",
"prettier",
"prettier/react",
"plugin:react/recommended"
],
"plugins": [
"prettier",
"cypress"
],
"rules": {
"no-console": "warn",
"comma-dangle": ["error", "always-multiline"],
"prettier/prettier": "error",
"react/prop-types": "off",
"react/display-name": "off",
"react/jsx-key": "error",
"react/no-unescaped-entities": "off",
"react/no-unknown-property": ["error", {"ignore": ["class"]}]
},
"parser": "babel-eslint",
"settings": {
"react": {
"version": "detect"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment