Skip to content

Commit

Permalink
ci: add js linting
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Feb 10, 2024
1 parent 0a9047f commit 91c470e
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8
27 changes: 27 additions & 0 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: JavaScript
on:
push:
paths:
- '**/*.js'
- '**/*.ts'
branches:
- main
pull_request:
paths:
- '**/*.js'
- '**/*.ts'

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Biome CLI
uses: biomejs/setup-biome@v2
with:
version: latest

- name: Run Biome
run: biome ci .
19 changes: 19 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"files": {
"ignore": ["src/Resources/public", "src/Resources/app/storefront/dist"]
},
"javascript": {
"formatter": {
"indentStyle": "space",
"indentWidth": 4,
"quoteStyle": "single"
}
},
"json": {
"formatter": {
"indentStyle": "space",
"indentWidth": 4
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ Shopware.Component.override('sw-mail-template-list', {
getListColumns() {
const columns = this.$super('getListColumns');

columns.unshift({
property: 'froshTemplateMail',
label: 'sw-mail-template.list.columnTemplateMail',
allowResize: true,
}, {
property: 'technicalName',
label: 'sw-mail-template.list.columnTechnicalName',
allowResize: true,
visible: false,
});
columns.unshift(
{
property: 'froshTemplateMail',
label: 'sw-mail-template.list.columnTemplateMail',
allowResize: true,
},
{
property: 'technicalName',
label: 'sw-mail-template.list.columnTechnicalName',
allowResize: true,
visible: false,
},
);

return columns;
},
Expand Down

0 comments on commit 91c470e

Please sign in to comment.