Skip to content

Commit

Permalink
fix: adds editor config and tweaks ci names
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonmarcello committed Oct 23, 2024
1 parent 6c0c6d0 commit 27f83a9
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 22 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true
indent_style = space
indent_size = 2
charset = utf-8

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ jobs:
- name: Install Dependencies
run: npm i

- name: Build
run: npm run build
- run: npm run build
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ jobs:
- name: Install Dependencies
run: npm i

- name: Lint
run: npm run lint
- run: npm run lint
10 changes: 5 additions & 5 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Publish to NPM registry
# Setup .npmrc file on the fly
- uses: actions/setup-node@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"
node-version-file: '.nvmrc'
registry-url: "https://registry.npmjs.org"

- run: npm i
- run: npm run build
- run: npm publish --access public
Expand Down
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"formulahendry.auto-rename-tag",
"stylelint.vscode-stylelint"
"stylelint.vscode-stylelint",
"EditorConfig.EditorConfig"
]
}
11 changes: 0 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"eslint.format.enable": true,
"eslint.nodePath": "",
"eslint.packageManager": "npm",
"files.associations": {
"*.js": "javascriptreact",
"*.jsx": "javascriptreact",
"*.json": "json",
},
"javascript.updateImportsOnFileMove.enabled": "always",
"stylelint.validate": ["css", "scss"]
}

0 comments on commit 27f83a9

Please sign in to comment.