Skip to content

Commit

Permalink
chore: initialize eslint setup
Browse files Browse the repository at this point in the history
  • Loading branch information
uoon-dev committed Aug 19, 2021
1 parent ace6519 commit d6905c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore
node_modules
build

# Ignore files
*.html
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80,
"arrowParens": "avoid"
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"lint": "eslint './**/*.+(js|ts)?(x)'"
"lint": "eslint './**/*.+(js|ts)?(x)'",
"format": "prettier --check . --ignore-path ./.prettierignore",
"format-fix": "prettier --write . --ignore-path ./.prettierignore"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.4",
Expand Down

0 comments on commit d6905c4

Please sign in to comment.