From 4e7d48b96d900119af3dcacd15a97f36a9d693af Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 27 Oct 2021 15:58:44 +0200 Subject: build(eslint): update rules to avoid conflicts with Prettier --- .eslintrc.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.eslintrc.js') 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': [ -- cgit v1.2.3