mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added prettier and eslint
This commit is contained in:
parent
793454acfb
commit
d8ef7cdcb0
2 changed files with 28 additions and 0 deletions
21
.eslintrc.js
Normal file
21
.eslintrc.js
Normal 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'] }],
|
||||||
|
},
|
||||||
|
}
|
7
.prettierrc.js
Normal file
7
.prettierrc.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
module.exports = {
|
||||||
|
trailingComma: 'es5',
|
||||||
|
tabWidth: 2,
|
||||||
|
semi: false,
|
||||||
|
singleQuote: true,
|
||||||
|
arrowParens: 'always',
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue