Created
October 22, 2020 08:46
-
-
Save antydemant/9c91a86258b21ceb4183efc8c53d9a56 to your computer and use it in GitHub Desktop.
ESLint + Prettier
This file contains hidden or 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 = { | |
extends: ['airbnb/base', 'eslint-config-prettier'], | |
plugins: ['prettier'], | |
rules: { | |
'prettier/prettier': 'error', | |
}, | |
}; |
This file contains hidden or 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
# Ignore artifacts: | |
**/dist | |
**/coverage | |
**/.vscode | |
**/.nyc_output | |
**/.vs | |
.github | |
.all-contributorsrc | |
CONTRIBUTORS.md |
This file contains hidden or 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
{ | |
"singleQuote": true, | |
"trailingComma": "es5" | |
} |
This file contains hidden or 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": "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