Skip to content

Instantly share code, notes, and snippets.

@wutangpaul
Created August 27, 2019 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wutangpaul/3a5058553637c89901ac0b88e6969113 to your computer and use it in GitHub Desktop.
Save wutangpaul/3a5058553637c89901ac0b88e6969113 to your computer and use it in GitHub Desktop.
My eslint/Airbnb setup to work with out of the box Prettier
module.exports = {
env: {
commonjs: true,
es6: true,
node: true
},
extends: "airbnb-base",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parserOptions: {
ecmaVersion: 2018
},
rules: {
quotes: [2, "double", "avoid-escape"],
"prefer-arrow-callback": 0,
"func-names": 0,
"space-before-function-paren": 0
}
};
{
"name": "my-son-is-also-called-bort",
"version": "1.0.0",
"description": "We need more BORT licence plates",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Paul McClean",
"license": "ISC",
"devDependencies": {
"eslint": "^6.2.2",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment