Skip to content

Commit

Permalink
feat(eslint-config): setup rules below, no semi and single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
trylovetom committed Mar 3, 2020
1 parent 37343a3 commit 0d399ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/ESLintConfig/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
"env": {
"node": true,
"jest": true
},
"rules": {
"semi": [2, "never"],
"quotes": [2, "single"]
}
}
2 changes: 1 addition & 1 deletion packages/ESLintConfig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo '**/node_modules/**
```json
{
"scripts": {
"format": "prettier **/*.{js,json,ts,md,yaml} !**/dist/** !./dist/** --write && yarn lint --fix",
"format": "prettier **/*.{js,json,ts,md,yaml} !**/dist/** !./dist/** --write --no-semi --single-quote && yarn lint --fix",
"lint": "eslint **/*.js"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ESLintConfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "git+https://github.com/AllJointTW/AllJointNext.git"
},
"scripts": {
"format": "prettier **/*.{js,json,ts,md,yaml} !**/dist/** !./dist/** --write",
"format": "prettier **/*.{js,json,ts,md,yaml} !**/dist/** !./dist/** --write --no-semi --single-quote",
"lint": ":"
},
"dependencies": {
Expand Down

0 comments on commit 0d399ba

Please sign in to comment.