Adjust code to airbnb style guide, including eslint rules and prettier configuration for code base

This commit is contained in:
Victor Hagelbäck 2021-01-22 15:49:02 +01:00
parent 1b55cabf63
commit 281acd6ad8
23 changed files with 919 additions and 2225 deletions

16
.prettierrc.js Normal file
View file

@ -0,0 +1,16 @@
module.exports = {
endOfLine: 'lf',
printWidth: 100,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'none',
overrides: [
{
files: '*.js, *.jsx',
options: {
trailingComma: 'all' // or es5
}
}
]
};