Skip to content

Instantly share code, notes, and snippets.

@a-eid a-eid/.estlint.js
Created May 1, 2018

Embed
What would you like to do?
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
jest: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
sourceType: "module",
},
plugins: ["react"],
rules: {
"react/prop-types": ["off"],
indent: ["error", 2],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "never"],
"no-console": ["warn", { allow: ["info", "error"] }],
"arrow-parens": ["error", "always"],
},
}
// yarn add eslint babel-eslint eslint-plugin-react --dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.