Skip to content

Instantly share code, notes, and snippets.

@antydemant
Created October 22, 2020 08:46
Show Gist options
  • Save antydemant/9c91a86258b21ceb4183efc8c53d9a56 to your computer and use it in GitHub Desktop.
Save antydemant/9c91a86258b21ceb4183efc8c53d9a56 to your computer and use it in GitHub Desktop.
ESLint + Prettier
module.exports = {
extends: ['airbnb/base', 'eslint-config-prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error',
},
};
# Ignore artifacts:
**/dist
**/coverage
**/.vscode
**/.nyc_output
**/.vs
.github
.all-contributorsrc
CONTRIBUTORS.md
{
"singleQuote": true,
"trailingComma": "es5"
}
{
"name": "boilerplate",
"version": "0.0.0",
"private": true,
"scripts": {
"eslint:check": "eslint <path_to_the_folders_to_check>",
"eslint:fix": "eslint --fix --quiet",
"eslint:changed:fix": "git diff $(git merge-base master HEAD) --name-only --diff-filter=d \"*.js\" | xargs eslint --fix --quiet",
},
"devDependencies": {
"eslint": "^7.11.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.13.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.1.4",
"prettier": "2.1.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment