Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump the dev-npm group with 4 updates #248

Merged
merged 3 commits into from
Apr 8, 2024
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
2 changes: 1 addition & 1 deletion apps/api/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
files: ^(apps/api/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
12 changes: 0 additions & 12 deletions apps/extension/.eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions apps/extension/.eslintrc.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions apps/extension/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ node_modules
.env.*
!.env.example

/.wxt
/.output

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
Expand Down
1 change: 0 additions & 1 deletion apps/extension/.prettierrc

This file was deleted.

14 changes: 14 additions & 0 deletions apps/extension/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import svelte, { webextensions } from '@yd/config/eslint/svelte';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
...svelte,
{
languageOptions: {
globals: {
...webextensions
}
},
ignores: ['.wxt/', '.output/']
}
];
6 changes: 4 additions & 2 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name": "@yd/extension",
"private": true,
"version": "0.3.2",
"license": "MIT",
"type": "module",
"description": "YouTube Downloader browser extension.",
"author": "Jordan Shatford <[email protected]>",
"scripts": {
Expand All @@ -15,7 +17,7 @@
"package:chrome": "wxt zip --browser chrome",
"package:firefox": "wxt zip --browser firefox",
"check": "svelte-check --tsconfig ./tsconfig.json",
"lint": "prettier --check . && eslint .",
"lint": "prettier --check . && eslint . --ignore-pattern '.{wxt,output}/*'",
"format": "prettier --write .",
"postinstall": "wxt prepare"
},
Expand All @@ -36,7 +38,7 @@
"svelte-check": "^3.6.9",
"tailwindcss": "^3.4.3",
"tslib": "^2.6.2",
"typescript": "^5.4.3",
"typescript": "^5.4.4",
"wxt": "^0.17.12"
}
}
2 changes: 1 addition & 1 deletion apps/extension/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
Expand Down
4 changes: 4 additions & 0 deletions apps/extension/prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import svelte from '@yd/config/prettier/svelte';

/** @type {import("prettier").Config} */
export default svelte;
13 changes: 0 additions & 13 deletions apps/web/.eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions apps/web/.eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/.prettierrc

This file was deleted.

9 changes: 9 additions & 0 deletions apps/web/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import svelte from '@yd/config/eslint/svelte';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
...svelte,
{
ignores: ['build/', '.svelte-kit/']
}
];
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"lint": "eslint .",
"format": "prettier --write ."
},
"dependencies": {
Expand All @@ -29,7 +29,7 @@
"svelte-check": "^3.6.9",
"tailwindcss": "^3.4.3",
"tslib": "^2.6.2",
"typescript": "^5.4.3",
"typescript": "^5.4.4",
"vite": "^5.2.8"
}
}
4 changes: 4 additions & 0 deletions apps/web/prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import svelte from '@yd/config/prettier/svelte';

/** @type {import("prettier").Config} */
export default svelte;
4 changes: 3 additions & 1 deletion apps/web/src/lib/components/NotFound.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

<div class="-mt-16 grid h-screen place-content-center px-4">
<div class="text-center">
<h1 class="text-7xl font-black text-gray-300 dark:text-gray-600">{title}</h1>
<h1 class="text-7xl font-black text-gray-300 dark:text-gray-600">
{title}
</h1>
<p class="text-2xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl">
{subtitle}
</p>
Expand Down
8 changes: 6 additions & 2 deletions apps/web/src/lib/stores/downloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ function createDownloadsStore() {
});

try {
const result = await DownloadsService.postDownloads({ requestBody: download });
const result = await DownloadsService.postDownloads({
requestBody: download
});
updateDownload(result.video.id, result);
} catch (err) {
handleError(download.video.id, `Failed to add '${video.title}' to downloads.`, err);
Expand All @@ -51,7 +53,9 @@ function createDownloadsStore() {
const download = get(DOWNLOADS)[id];

try {
const result = await DownloadsService.putDownloads({ requestBody: download });
const result = await DownloadsService.putDownloads({
requestBody: download
});
updateDownload(result.video.id, result);
} catch (err) {
handleError(download.video.id, `Failed to restart '${download.video.title}' download.`, err);
Expand Down
4 changes: 3 additions & 1 deletion apps/web/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import preset from '@yd/config/tailwind';

/** @type {import('tailwindcss').Config} */
export default {
presets: [require('@yd/config/tailwind')]
presets: [preset]
};
5 changes: 0 additions & 5 deletions packages/client/.eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions packages/client/.eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion packages/client/.prettierrc

This file was deleted.

9 changes: 9 additions & 0 deletions packages/client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import typescript from '@yd/config/eslint/typescript';

/** @type {import('eslint').Linter.FlatConfig} */
export default [
...typescript,
{
ignores: ['dist/**/*', 'src/generated/**/*']
}
];
1 change: 1 addition & 0 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "1.1.1",
"license": "MIT",
"type": "module",
"main": "./src/index.ts",
"scripts": {
"build": "tsc --project tsconfig.json",
Expand Down
4 changes: 4 additions & 0 deletions packages/client/prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import base from '@yd/config/prettier/base';

/** @type {import("prettier").Config} */
export default base;
4 changes: 0 additions & 4 deletions packages/config/.eslintrc.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions packages/config/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import config from './eslint/typescript.js';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default config;
37 changes: 25 additions & 12 deletions packages/config/eslint/svelte.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: [require.resolve('./typescript.js'), 'plugin:svelte/recommended'],
parserOptions: {
extraFileExtensions: ['.svelte']
import globals from 'globals';
import tseslint from 'typescript-eslint';
import eslintPluginSvelte from 'eslint-plugin-svelte';
import eslintTypeScript from './typescript.js';
import svelte from 'svelte-eslint-parser';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default tseslint.config(
...eslintTypeScript,
...eslintPluginSvelte.configs['flat/recommended'],
{
languageOptions: {
parserOptions: {
extraFileExtensions: ['**/*.svelte']
}
}
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
{
files: ['**/*.svelte'],
languageOptions: {
parser: svelte,
parserOptions: {
parser: '@typescript-eslint/parser'
parser: tseslint.parser
}
}
]
};
}
);

export const webextensions = globals.webextensions;
47 changes: 33 additions & 14 deletions packages/config/eslint/typescript.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
import eslint from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-config-prettier';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
prettier,
{
languageOptions: {
globals: {
...globals.browser,
...globals.es2017,
...globals.node
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
}
},
ignores: [
'.DS_Store',
'node_modules/*',
'.env',
'.env.*',
'!.env.sample',
'pnpm-lock.yaml',
'package-lock.json',
'yarn.lock'
]
}
};
);
13 changes: 7 additions & 6 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "1.0.0",
"license": "MIT",
"type": "module",
"exports": {
"./eslint/typescript": "./eslint/typescript.js",
"./eslint/svelte": "./eslint/svelte.js",
Expand All @@ -11,21 +12,21 @@
"./tailwind": "./tailwind/base.js",
"./tsconfig": "./tsconfig/base.json"
},
"prettier": "./prettier/base",
"scripts": {
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-tailwindcss": "^0.5.13",
"tailwindcss": "^3.4.3"
"svelte-eslint-parser": "^0.34.0",
"tailwindcss": "^3.4.3",
"typescript-eslint": "^7.5.0"
}
}
4 changes: 4 additions & 0 deletions packages/config/prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import base from './prettier/base.js';

/** @type {import("prettier").Config} */
export default base;
2 changes: 1 addition & 1 deletion packages/config/prettier/base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import("prettier").Config} */
module.exports = {
export default {
useTabs: true,
singleQuote: true,
trailingComma: 'none',
Expand Down
6 changes: 4 additions & 2 deletions packages/config/prettier/svelte.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import base from './base.js';

/** @type {import("prettier").Config} */
module.exports = {
...require('./base'),
export default {
...base,
plugins: ['prettier-plugin-svelte', 'prettier-plugin-tailwindcss'],
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }]
};
3 changes: 2 additions & 1 deletion packages/config/tailwind/base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import colors from 'tailwindcss/colors';
import forms from '@tailwindcss/forms';

/** @type {import('tailwindcss').Config} */
export default {
Expand Down Expand Up @@ -38,5 +39,5 @@ export default {
textColor: ['responsive', 'dark', 'group-hover', 'focus-within', 'hover', 'focus', 'disabled']
}
},
plugins: [require('@tailwindcss/forms')]
plugins: [forms]
};
Loading
Loading