Skip to content

Commit

Permalink
Use prettier to lint
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 6, 2020
1 parent 6dab8ce commit 3d1f9fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none",
"endOfLine": "lf"
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"test:update": "ava --update-snapshots",
"test:watch": "ava --watch",
"test:debug": "ava debug --break",
"lint": "eslint --ignore-path .gitignore --ext .js .",
"lint": "npm-run-all lint:*",
"lint:pretty": "npm-run-all 'prettier --check'",
"lint:js": "eslint --ignore-path .gitignore --ext .js .",
"clean": "del dist",
"build": "npm-run-all --parallel build:*",
"prebuild": "npm-run-all clean",
Expand All @@ -39,8 +41,9 @@
"postversion": "git push --follow-tags",
"example": "babel-node examples",
"example:inspect": "babel-node --inspect examples",
"pretty": "prettier --ignore-path .gitignore --write '**/*.(js|json|graphql)'",
"prettier": "prettier --ignore-path .gitignore '**/*.(js|json|graphql)'",
"format": "npm-run-all --serial pretty format:*",
"format:pretty": "npm-run-all 'prettier --write'",
"format:js": "eslint --ignore-path .gitignore --fix --ext .js .",
"report": "nyc report"
},
Expand Down

0 comments on commit 3d1f9fb

Please sign in to comment.