Skip to content

Commit

Permalink
Integrate prettier to the project and ci and prettify project (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
matux authored Mar 7, 2024
1 parent 71b5e3a commit 443290f
Show file tree
Hide file tree
Showing 174 changed files with 7,821 additions and 5,670 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,14 @@ jobs:
- name: npm install
run: npm install

- name: Lint
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
prettier: true
eslint: true
eslint_args: '--max-warnings 0'
eslint_extensions: js

- name: Run tests
run: npm run test_ci
14 changes: 7 additions & 7 deletions .lgtm.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
path_classifiers:
generated:
- release
- dist
docs:
- examples
test:
- test
generated:
- release
- dist
docs:
- examples
test:
- test
18 changes: 18 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.github
.next
.yalc
build
bundles
coverage
dist
lib
node_modules
out
public
release
vendor

# ignore prettifying examples for now due to
# 1. there being minified snippets all over the place and
# 2. some tests fail cause they depend on some sources being exactly as they are
examples
39 changes: 39 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"[github-actions-workflow]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[json5]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"files.trimTrailingWhitespace": true,
"prettier.useEditorConfig": false
}
Loading

0 comments on commit 443290f

Please sign in to comment.