Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [22.x, 24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
Expand All @@ -25,19 +25,17 @@ jobs:
npm run lint
npm test
- name: Install Playwright Browsers
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '20.x' }}
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '22.x' }}
run: npx playwright install --with-deps
- name: Runtime test
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '20.x' }}
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '22.x' }}
run: |
npm run build
npm run test-runtime
- name: Generate Coverage
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '20.x' }}
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '22.x' }}
run: npm run cov
- name: Coveralls
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '20.x' }}
uses: coverallsapp/github-action@master
- uses: qltysh/qlty-action/coverage@v1
with:
path-to-lcov: ./coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
files: target/lcov.info
1 change: 0 additions & 1 deletion .prettierrc.cjs

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import config from '@riotjs/prettier-config'
export default config
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Compiler logo](https://raw.githubusercontent.com/riot/branding/main/compiler/compiler-horizontal.svg)](https://github.com/riot/compiler/)

[![Build Status][ci-image]][ci-url]
[![Issue Count][codeclimate-image]][codeclimate-url]
[![Issue Count][qlty-image]][qlty-url]
[![Coverage Status][coverage-image]][coverage-url]
[![NPM version][npm-version-image]][npm-url]
[![NPM downloads][npm-downloads-image]][npm-url]
Expand Down Expand Up @@ -117,7 +117,7 @@ in the tag source code for example
[npm-version-image]: https://img.shields.io/npm/v/@riotjs/compiler.svg?style=flat-square
[npm-downloads-image]: https://img.shields.io/npm/dm/@riotjs/compiler.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@riotjs/compiler
[coverage-image]: https://img.shields.io/coveralls/riot/compiler/main.svg?style=flat-square
[coverage-url]: https://coveralls.io/r/riot/compiler?branch=main
[codeclimate-image]: https://api.codeclimate.com/v1/badges/37de24282e8d113bb0cc/maintainability
[codeclimate-url]: https://codeclimate.com/github/riot/compiler
[coverage-image]: https://qlty.sh/gh/riot/projects/compiler/coverage.svg
[coverage-url]: https://qlty.sh/gh/riot/projects/compiler
[qlty-image]: https://qlty.sh/gh/riot/projects/compiler/maintainability.svg
[qlty-url]: https://qlty.sh/gh/riot/projects/compiler
2 changes: 1 addition & 1 deletion build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default {
input: './src/index.js',
onwarn: function (error) {
if (/external dependency|Circular dependency/.test(error.message)) return
console.error(error.message) // eslint-disable-line
console.error(error.message)
},
output: {
banner: '/* Riot Compiler, @license MIT */',
Expand Down
12 changes: 12 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'eslint/config'
import riotEslintConfig from 'eslint-config-riot'

export default defineConfig([
{ extends: [riotEslintConfig] },
{
rules: {
'fp/no-mutating-methods': 0,
'jsdoc/no-undefined-types': 0,
},
},
])
Loading
Loading