Skip to content

Commit

Permalink
:q
Browse files Browse the repository at this point in the history
:x
  • Loading branch information
arcticShadow committed Nov 15, 2023
1 parent 3dd4867 commit 220c438
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-sonarjs": "^0.17.0",
Expand Down
8 changes: 8 additions & 0 deletions src/addons/prettier-align.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* combine this with your extension of node/browsers/index etc
*
* This disabled conflicting rules so you can use prettier to format separately from eslint (i.e. editor plugin)
*/
module.exports = {
extends: ["eslint-config-prettier"],
};
6 changes: 6 additions & 0 deletions src/addons/prettier-format.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* combine this in your local config with index/node/browser etc as required.
*/
module.export = {
extends: ["plugin:prettier/recommended"],
};
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module.exports = {
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended",
"plugin:prettier/recommended",
],
env: {
es2021: true,
Expand Down

0 comments on commit 220c438

Please sign in to comment.