diff options
author | mhatvan <markus_hatvan@aon.at> | 2021-08-04 17:44:54 +0200 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-08-04 15:57:58 +0000 |
commit | 13f6d34cefb3bc5e3ba65a959304d4465f0ee92a (patch) | |
tree | 7739098f6f25140fa96877e2d05f98b5929f90f2 /.eslintrc.js | |
parent | Bump tar from 4.4.10 to 4.4.15 (diff) | |
download | ferdium-server-13f6d34cefb3bc5e3ba65a959304d4465f0ee92a.tar.gz ferdium-server-13f6d34cefb3bc5e3ba65a959304d4465f0ee92a.tar.zst ferdium-server-13f6d34cefb3bc5e3ba65a959304d4465f0ee92a.zip |
chore: improve dev setup
- upgrade uuid, eslint, husky
- improve .eslintrc.js and correct lint script
- update uuid imports to conform to v8
- add .prettierrc.js for consistent formatting
- file changes due to lint --fix
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 066d415..d3bc05b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js | |||
@@ -1,12 +1,11 @@ | |||
1 | module.exports = { | 1 | module.exports = { |
2 | root: true, | ||
2 | env: { | 3 | env: { |
3 | commonjs: true, | 4 | commonjs: true, |
4 | es6: true, | 5 | es6: true, |
5 | node: true, | 6 | node: true, |
6 | }, | 7 | }, |
7 | extends: [ | 8 | extends: ['airbnb-base'], |
8 | 'airbnb-base', | ||
9 | ], | ||
10 | globals: { | 9 | globals: { |
11 | Atomics: 'readonly', | 10 | Atomics: 'readonly', |
12 | SharedArrayBuffer: 'readonly', | 11 | SharedArrayBuffer: 'readonly', |
@@ -21,8 +20,14 @@ module.exports = { | |||
21 | ecmaVersion: 2018, | 20 | ecmaVersion: 2018, |
22 | }, | 21 | }, |
23 | rules: { | 22 | rules: { |
24 | "class-methods-use-this": 'off', | 23 | 'arrow-parens': 0, |
25 | "no-restricted-syntax": 'off', | 24 | 'class-methods-use-this': 0, |
26 | "max-len": 0, | 25 | eqeqeq: 1, |
26 | 'implicit-arrow-linebreak': 0, | ||
27 | 'max-len': 0, | ||
28 | 'no-await-in-loop': 1, | ||
29 | 'no-restricted-syntax': 0, | ||
30 | 'operator-linebreak': 0, | ||
31 | 'object-curly-newline': 0, | ||
27 | }, | 32 | }, |
28 | }; | 33 | }; |