Skip to content

Commit f276b45

Browse files
chore: Added prettier config for eslint (#807)
1 parent d2776b6 commit f276b45

File tree

5 files changed

+53
-11
lines changed

5 files changed

+53
-11
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
module.exports = {
22
parser: '@typescript-eslint/parser',
33
plugins: ['@typescript-eslint'],
4-
extends: ['plugin:@typescript-eslint/recommended'],
4+
extends: [
5+
'plugin:@typescript-eslint/recommended',
6+
'prettier/@typescript-eslint',
7+
'plugin:prettier/recommended',
8+
],
59
rules: {
610
'@typescript-eslint/explicit-function-return-type': 'off',
711
'@typescript-eslint/no-explicit-any': 'off',

.github/workflows/main.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ jobs:
8686
shell: bash
8787

8888
- name: Lint check
89-
uses: reviewdog/action-eslint@v1
90-
with:
91-
github_token: ${{ secrets.githubToken }}
92-
reporter: github-pr-review
93-
eslint_flags: "src --ext .ts"
89+
run: npm run lint --silent -- -f stylish
9490

9591
artifact:
9692
runs-on: ubuntu-latest

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
semi: true,
3+
singleQuote: false,
4+
trailingComma: "none"
5+
};

package-lock.json

Lines changed: 40 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
"@typescript-eslint/parser": "^2.5.0",
7171
"decache": "^4.5.1",
7272
"eslint": "^6.5.1",
73+
"eslint-config-prettier": "^6.10.0",
74+
"eslint-plugin-prettier": "^3.1.2",
7375
"glob": "^7.1.4",
7476
"milligram": "^1.3.0",
7577
"mocha": "^6.2.2",

0 commit comments

Comments
 (0)