parent
be837515fe
commit
b39d7caf31
|
@ -0,0 +1,40 @@
|
|||
name: Linting
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint-eslint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
run: npm run eslint -- "**/*.js"
|
||||
|
||||
lint-prettier:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run Prettier
|
||||
run: npm run prettier -- --check "**/*.{js,css,md}"
|
|
@ -110,6 +110,7 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
node_modules/
|
||||
dist/
|
|
@ -28,8 +28,8 @@ class NotEnoughEventsFromDaySummaryTileView extends TemplateView {
|
|||
},
|
||||
[
|
||||
t.if(
|
||||
(vm) => !!daySummaryMessage,
|
||||
(t, vm) =>
|
||||
(/*vm*/) => !!daySummaryMessage,
|
||||
(t /*, vm*/) =>
|
||||
t.p(
|
||||
{
|
||||
className: 'NotEnoughEventsFromDaySummaryTileView_summaryMessage',
|
||||
|
|
|
@ -48,7 +48,7 @@ class RoomCardView extends TemplateView {
|
|||
t.view(new AvatarView(avatarViewModel, 24)),
|
||||
t.if(
|
||||
(vm) => vm.name,
|
||||
(t, vm) =>
|
||||
(t /*, vm*/) =>
|
||||
t.h4(
|
||||
{
|
||||
className: 'RoomCardView_headerTitle',
|
||||
|
|
Loading…
Reference in New Issue