Skip to content

Instantly share code, notes, and snippets.

@MostlyFocusedMike
Last active January 20, 2019 00:01
Show Gist options
  • Save MostlyFocusedMike/a498952c5e46d160b1ce72195e88a356 to your computer and use it in GitHub Desktop.
Save MostlyFocusedMike/a498952c5e46d160b1ce72195e88a356 to your computer and use it in GitHub Desktop.
Just my goto for eslint configs
module.exports = {
"extends": "airbnb-base",
env: {
browser: true,
node: true,
es6: true,
jquery: true,
},
rules: {
"indent": ["error", 4],
"no-underscore-dangle": "off",
"no-unused-vars": ["warn", { "vars": "local" }],
"no-plusplus": 0,
"max-len": ["warn", 180],
"one-var": 0,
"no-console": "off",
"arrow-body-style": "off",
"global-require": "off",
},
parser: "babel-eslint", // this lets us use ES6+ things in react like `= () => {}`
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment