aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-24 18:39:00 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-24 18:39:00 +0200
commit10b3d9a17e42df812ec766e49ef8f870dbbf9ca5 (patch)
tree50d8670f00688a6379c6b98b7d8ba6debf9e9575
parent55167daca58078919647283f89c060b15da200c7 (diff)
build: override operator-linebreak rule
This rule was in conflict with Prettier.
-rw-r--r--.eslintrc.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 2811fa2..813c5d7 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -3,12 +3,17 @@ module.exports = {
browser: true,
es2021: true,
},
- extends: ["airbnb-base"],
+ extends: ['airbnb-base'],
parserOptions: {
ecmaVersion: 12,
- sourceType: "module",
+ sourceType: 'module',
},
rules: {
- "import/no-extraneous-dependencies": ["error", { devDependencies: true }],
+ 'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
+ 'operator-linebreak': [
+ 'error',
+ 'after',
+ { overrides: { '?': 'before', ':': 'before' } },
+ ],
},
};