Skip to content

Commit

Permalink
style: add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
martiliones committed Jan 26, 2024
1 parent 6f0f330 commit d3b4876
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ module.exports = {
node: true,
jest: true,
},
extends: [
'airbnb-base',
],
extends: ['airbnb-base', 'prettier'],
rules: {
'no-restricted-syntax': 'off',
'no-console': 'off',
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
package-lock.json
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
48 changes: 45 additions & 3 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"author": "ADAMANT Foundation <[email protected]> (https://adamant.im)",
"license": "GPL-3.0",
"scripts": {
"format": "prettier . --write",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "npx eslint -f visualstudio .",
"lint:fix": "npx eslint -f visualstudio --fix"
Expand All @@ -27,7 +28,9 @@
"devDependencies": {
"eslint": "^8.16.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0"
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.26.0",
"prettier": "3.2.4"
},
"dependencies": {
"@stablelib/utf8": "^1.0.1",
Expand Down

0 comments on commit d3b4876

Please sign in to comment.