mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-08-06 11:01:55 +00:00
Merge pull request #1957 from acelaya-forks/oxlint-only
Update to coding standard 4.0.0
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -11,7 +11,6 @@ jobs:
|
|||||||
ci:
|
ci:
|
||||||
uses: shlinkio/github-actions/.github/workflows/web-app-ci.yml@main
|
uses: shlinkio/github-actions/.github/workflows/web-app-ci.yml@main
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 26.x
|
||||||
publish-coverage: true
|
publish-coverage: true
|
||||||
install-playwright: true
|
install-playwright: true
|
||||||
cs-script: true
|
|
||||||
|
|||||||
2
.github/workflows/publish-release.yml
vendored
2
.github/workflows/publish-release.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 24.14
|
node-version: 24.14
|
||||||
- name: Generate release assets
|
- name: Generate release assets
|
||||||
run: npm ci && VERSION=${GITHUB_REF#refs/tags/v} npm run build:dist
|
run: npm ci && VERSION=${GITHUB_REF#refs/tags/v} node --run build:dist
|
||||||
- name: Publish release with assets
|
- name: Publish release with assets
|
||||||
uses: docker://antonyurchenko/git-release:latest
|
uses: docker://antonyurchenko/git-release:latest
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ If you need to host shlink-web-client yourself and serve it from a subpath, foll
|
|||||||
* For classic hosting:
|
* For classic hosting:
|
||||||
* Download [node](https://nodejs.org/en/download/package-manager/) 10.15 or later.
|
* Download [node](https://nodejs.org/en/download/package-manager/) 10.15 or later.
|
||||||
* Install project dependencies by running `npm install`.
|
* Install project dependencies by running `npm install`.
|
||||||
* Build the project by running `npm run build`.
|
* Build the project by running `node --run build`.
|
||||||
* Once the command finishes, you will have a `build` folder with all the static assets you need to run shlink-web-client. Just place them wherever you want them to be served from.
|
* Once the command finishes, you will have a `build` folder with all the static assets you need to run shlink-web-client. Just place them wherever you want them to be served from.
|
||||||
* For docker image:
|
* For docker image:
|
||||||
* Download [docker](https://docs.docker.com/install/).
|
* Download [docker](https://docs.docker.com/install/).
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM mcr.microsoft.com/playwright:v1.61.1-noble
|
FROM mcr.microsoft.com/playwright:v1.62.0-noble
|
||||||
|
|
||||||
ENV TINI_VERSION v0.19.0
|
ENV TINI_VERSION v0.19.0
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: ./dev.Dockerfile
|
dockerfile: ./dev.Dockerfile
|
||||||
working_dir: /home/shlink/www
|
working_dir: /home/shlink/www
|
||||||
command: /bin/sh -c "npm install && npm run start"
|
command: /bin/sh -c "npm install && node --run start"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/home/shlink/www
|
- ./:/home/shlink/www
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// @ts-expect-error This lib does not expose type definitions
|
// @ts-expect-error This lib does not expose type definitions
|
||||||
import shlink from '@shlinkio/eslint-config-js-coding-standard/oxc/oxfmt';
|
import { oxfmt as shlink } from '@shlinkio/eslint-config-js-coding-standard';
|
||||||
|
|
||||||
export default shlink;
|
export default shlink;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// @ts-expect-error This lib does not expose type definitions
|
// @ts-expect-error This lib does not expose type definitions
|
||||||
import shlink from '@shlinkio/eslint-config-js-coding-standard/oxc/oxlint';
|
import { oxlint as shlink } from '@shlinkio/eslint-config-js-coding-standard';
|
||||||
import { defineConfig } from 'oxlint';
|
import { defineConfig } from 'oxlint';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|||||||
63
package-lock.json
generated
63
package-lock.json
generated
@@ -38,7 +38,7 @@
|
|||||||
"workbox-strategies": "^7.4.0"
|
"workbox-strategies": "^7.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@shlinkio/eslint-config-js-coding-standard": "~3.9.2",
|
"@shlinkio/eslint-config-js-coding-standard": "~4.0.0",
|
||||||
"@tailwindcss/vite": "^4.3.3",
|
"@tailwindcss/vite": "^4.3.3",
|
||||||
"@testing-library/jest-dom": "^7.0.0",
|
"@testing-library/jest-dom": "^7.0.0",
|
||||||
"@testing-library/react": "^16.3.2",
|
"@testing-library/react": "^16.3.2",
|
||||||
@@ -3315,62 +3315,15 @@
|
|||||||
"integrity": "sha512-3iCyKtxv/EAPhSv9Ht7KYu8sQOT4uj1zwSsXQCC7VeILuLhAW9SBdtJvjCI95rIYeGYto2fwW4QPghy9Qw2XCA=="
|
"integrity": "sha512-3iCyKtxv/EAPhSv9Ht7KYu8sQOT4uj1zwSsXQCC7VeILuLhAW9SBdtJvjCI95rIYeGYto2fwW4QPghy9Qw2XCA=="
|
||||||
},
|
},
|
||||||
"node_modules/@shlinkio/eslint-config-js-coding-standard": {
|
"node_modules/@shlinkio/eslint-config-js-coding-standard": {
|
||||||
"version": "3.9.2",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-3.9.2.tgz",
|
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-4.0.0.tgz",
|
||||||
"integrity": "sha512-G1/ZEfSgHETuN0UyaTyGtJPVkQ7YCVKlAN+np76uWQ7ZpG8+O94g5zwAMZoobd8P/TS/bDNqJPIs5GkUtrtptA==",
|
"integrity": "sha512-D6T2Y8eCFC6p/Vg69yxQUo8a1F1JxOssktpaO8oSjrsW7UJbbfUyvWU8r11pasvU+7xpgtG7WD1IN4mVv38f0g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@stylistic/eslint-plugin": ">=4.2.0",
|
|
||||||
"eslint": "^10.0.0 || ^9.20.1",
|
|
||||||
"eslint-plugin-import": "^2.31.0",
|
|
||||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
||||||
"eslint-plugin-react": "^7.34.2",
|
|
||||||
"eslint-plugin-react-compiler": "*",
|
|
||||||
"eslint-plugin-react-hooks": "^7.0.0",
|
|
||||||
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
||||||
"oxfmt": ">=0.60.0",
|
"oxfmt": ">=0.60.0",
|
||||||
"oxlint": "^1.75.0",
|
"oxlint": "^1.75.0",
|
||||||
"oxlint-tsgolint": "^7.0.2001",
|
"oxlint-tsgolint": "^7.0.2001"
|
||||||
"typescript-eslint": "^8.65.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@stylistic/eslint-plugin": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"eslint": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"eslint-plugin-import": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"eslint-plugin-jsx-a11y": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"eslint-plugin-react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"eslint-plugin-react-compiler": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"eslint-plugin-react-hooks": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"eslint-plugin-simple-import-sort": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"oxfmt": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"oxlint": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"oxlint-tsgolint": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"typescript-eslint": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@shlinkio/shlink-frontend-kit": {
|
"node_modules/@shlinkio/shlink-frontend-kit": {
|
||||||
@@ -11133,9 +11086,9 @@
|
|||||||
"integrity": "sha512-3iCyKtxv/EAPhSv9Ht7KYu8sQOT4uj1zwSsXQCC7VeILuLhAW9SBdtJvjCI95rIYeGYto2fwW4QPghy9Qw2XCA=="
|
"integrity": "sha512-3iCyKtxv/EAPhSv9Ht7KYu8sQOT4uj1zwSsXQCC7VeILuLhAW9SBdtJvjCI95rIYeGYto2fwW4QPghy9Qw2XCA=="
|
||||||
},
|
},
|
||||||
"@shlinkio/eslint-config-js-coding-standard": {
|
"@shlinkio/eslint-config-js-coding-standard": {
|
||||||
"version": "3.9.2",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-3.9.2.tgz",
|
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-4.0.0.tgz",
|
||||||
"integrity": "sha512-G1/ZEfSgHETuN0UyaTyGtJPVkQ7YCVKlAN+np76uWQ7ZpG8+O94g5zwAMZoobd8P/TS/bDNqJPIs5GkUtrtptA==",
|
"integrity": "sha512-D6T2Y8eCFC6p/Vg69yxQUo8a1F1JxOssktpaO8oSjrsW7UJbbfUyvWU8r11pasvU+7xpgtG7WD1IN4mVv38f0g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
"workbox-strategies": "^7.4.0"
|
"workbox-strategies": "^7.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@shlinkio/eslint-config-js-coding-standard": "~3.9.2",
|
"@shlinkio/eslint-config-js-coding-standard": "~4.0.0",
|
||||||
"@tailwindcss/vite": "^4.3.3",
|
"@tailwindcss/vite": "^4.3.3",
|
||||||
"@testing-library/jest-dom": "^7.0.0",
|
"@testing-library/jest-dom": "^7.0.0",
|
||||||
"@testing-library/react": "^16.3.2",
|
"@testing-library/react": "^16.3.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user