Last active
November 18, 2022 18:21
-
-
Save grahamb/048fd56dbc14c3e9a84dd9e41bb14d2c to your computer and use it in GitHub Desktop.
Basic Node Prettier/ESLint bootstrap
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
Show hidden characters
{ | |
"extends": [ | |
"unobtrusive" | |
], | |
"parserOptions": { | |
"ecmaVersion": 2022 | |
}, | |
"plugins": [ | |
"import" | |
], | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"rules": { | |
"import/no-unresolved": 2, | |
"import/no-commonjs": 2, | |
"import/extensions": [ | |
2, | |
"ignorePackages" | |
] | |
} | |
} |
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", | |
"tabWidth": 2 | |
} |
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
#!/bin/sh | |
npm i --save-dev prettier eslint eslint-config-unobtrusive eslint-plugin-import |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment