Commit 2754ba42 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

fix: [eslint] Add prettier config in the eslintrc

parent e6b78eb43579
Pipeline #17600 passed with stages
in 3 minutes and 37 seconds
......@@ -22,7 +22,7 @@ module.exports = {
parser: 'babel-eslint',
plugins: ['import', 'react', 'react-hooks'],
plugins: ['import', 'react', 'react-hooks', 'prettier'],
env: {
browser: true,
......@@ -64,6 +64,7 @@ module.exports = {
// If adding a typescript-eslint version of an existing ESLint rule,
// make sure to disable the ESLint rule here.
rules: {
"prettier/prettier": "error",
// TypeScript's `noFallthroughCasesInSwitch` option is more robust (#6906)
'default-case': 'off',
// 'tsc' already handles this (https://github.com/typescript-eslint/typescript-eslint/issues/291)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment