Formats files in `src` with [prettier for consistent code style](https://prettier.io/docs/en/why-prettier) and adds npm script Related to https://github.com/webrecorder/replayweb.page/issues/201
25 lines
440 B
JavaScript
25 lines
440 B
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"prettier"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"no-restricted-globals": [
|
|
2,
|
|
"event", "error"
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
]
|
|
}
|
|
};
|