Created
August 27, 2019 08:15
-
-
Save wutangpaul/3a5058553637c89901ac0b88e6969113 to your computer and use it in GitHub Desktop.
My eslint/Airbnb setup to work with out of the box 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
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 | |
} | |
}; |
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
{ | |
"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