diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-10-27 15:58:44 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-10-27 15:58:44 +0200 |
| commit | 4e7d48b96d900119af3dcacd15a97f36a9d693af (patch) | |
| tree | 6a363e09be465fd47a26806b906274d9dfe1f8ad | |
| parent | 5c5633c53f53b703425bd19dd3f6836a049d093e (diff) | |
build(eslint): update rules to avoid conflicts with Prettier
| -rw-r--r-- | .eslintrc.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 5e6f754..cd682a8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,6 +9,19 @@ module.exports = { sourceType: 'module', }, rules: { + 'arrow-body-style': ['error', 'as-needed'], + 'comma-dangle': [ + 'error', + { + arrays: 'always-multiline', + exports: 'always-multiline', + imports: 'always-multiline', + objects: 'always-multiline', + functions: 'never', + }, + ], + 'function-paren-newline': ['error', 'multiline-arguments'], + 'implicit-arrow-linebreak': 'off', 'import/no-extraneous-dependencies': ['error', { devDependencies: true }], 'object-curly-newline': 'off', 'operator-linebreak': [ |
