Skip to content

Commit

Permalink
chore(deps): bump ua-parser-js from 1.0.39 to 2.0.0 (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Dec 4, 2024
1 parent 4f1bb51 commit 8cdfdb1
Show file tree
Hide file tree
Showing 23 changed files with 1,049 additions and 900 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json",
"name": "RUA dev-container",
"image": "node:21-bookworm",
"image": "node:22-bookworm",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/sshd:1": {}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- {uses: gacts/github-slug@v1, id: slug}
- {uses: actions/setup-node@v4, with: {node-version: 21, cache: 'npm'}}
- {uses: actions/setup-node@v4, with: {node-version-file: ./package.json, cache: 'npm'}}
- run: npm install
- run: >
npm version --no-git-tag-version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- {uses: actions/setup-node@v4, with: {node-version: 21, cache: 'npm'}}
- {uses: actions/setup-node@v4, with: {node-version-file: ./package.json, cache: 'npm'}}
- run: npm install
- run: npm run test

Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- {uses: actions/setup-node@v4, with: {node-version: 21, cache: 'npm'}}
- {uses: actions/setup-node@v4, with: {node-version-file: ./package.json, cache: 'npm'}}
- run: npm install
- run: npm run lint

Expand All @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- {uses: actions/setup-node@v4, with: {node-version: 21, cache: 'npm'}}
- {uses: actions/setup-node@v4, with: {node-version-file: ./package.json, cache: 'npm'}}
- run: npm install
- run: npm run build
- uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.DEFAULT_GOAL := build
.MAIN := build

NODE_IMAGE = node:21-alpine
NODE_IMAGE = node:22-alpine
RUN_ARGS = --rm -v "$(shell pwd):/src:rw" \
-t --workdir "/src" \
-u "$(shell id -u):$(shell id -g)" \
Expand Down
59 changes: 59 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import reactRefresh from 'eslint-plugin-react-refresh'
import react from 'eslint-plugin-react'
import globals from 'globals'
import tsParser from '@typescript-eslint/parser'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
{
ignores: ['dist/*'],
},
...fixupConfigRules(
compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended'
)
),
{
plugins: {
'@typescript-eslint': fixupPluginRules(typescriptEslint),
'react-refresh': reactRefresh,
react: fixupPluginRules(react),
},
languageOptions: {
globals: {
...globals.browser,
},
parser: tsParser,
ecmaVersion: 2022,
sourceType: 'module',
parserOptions: {
project: true,
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/react-in-jsx-scope': 'off',
'no-case-declarations': 'off',
},
},
]
Loading

0 comments on commit 8cdfdb1

Please sign in to comment.