Added prettier and eslint

This commit is contained in:
mrfry 2020-10-01 14:34:52 +02:00
parent 793454acfb
commit d8ef7cdcb0
2 changed files with 28 additions and 0 deletions

21
.eslintrc.js Normal file
View file

@ -0,0 +1,21 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
parser: 'babel-eslint',
extends: ['eslint:recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
rules: {
'no-undef': ['warn'],
eqeqeq: ['warn', 'smart'],
'no-unused-vars': 'off',
'no-prototype-builtins': 'off',
'id-length': ['error', { exceptions: ['x'] }],
},
}