aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-27 15:58:44 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-27 15:58:44 +0200
commit4e7d48b96d900119af3dcacd15a97f36a9d693af (patch)
tree6a363e09be465fd47a26806b906274d9dfe1f8ad /.eslintrc.js
parent5c5633c53f53b703425bd19dd3f6836a049d093e (diff)
build(eslint): update rules to avoid conflicts with Prettier
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js13
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': [