Skip to content

Commit

Permalink
feat(ui): fix configuration so that prettier runs correctly on all fi…
Browse files Browse the repository at this point in the history
…les (#1274)
  • Loading branch information
lucapette authored and tchiotludo committed Apr 4, 2023
1 parent adafdcb commit 1d6bf79
Show file tree
Hide file tree
Showing 96 changed files with 3,291 additions and 4,154 deletions.
17 changes: 15 additions & 2 deletions client/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,29 @@
"node": true,
"browser": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"babelrc": false,
"configFile": false,
"presets": ["@babel/preset-react"]
},
"sourceType": "module",
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
/*
* ENFORCING OPTIONS
* =================
Expand Down
5 changes: 1 addition & 4 deletions client/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"parser": "babel",
"trailingComma": "none",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"extends": ["plugin:prettier/recommended"],
"printWidth": 100,
"arrowParens": "avoid",
"bracketSpacing": true,
"jsxBracketSameLine": false

"bracketSameLine": false
}
Loading

0 comments on commit 1d6bf79

Please sign in to comment.