mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
@ -1,67 +1,71 @@
|
|||||||
//@ts-check
|
//@ts-check
|
||||||
|
|
||||||
import eslint from '@eslint/js';
|
import eslint from '@eslint/js';
|
||||||
import tseslint from 'typescript-eslint';
|
import prettier from 'eslint-plugin-prettier/recommended';
|
||||||
import stylistic from "@stylistic/eslint-plugin-js"
|
import stylistic from '@stylistic/eslint-plugin-js';
|
||||||
import * as importPlugin from "eslint-plugin-import"
|
import tsEslint from 'typescript-eslint';
|
||||||
|
|
||||||
export default tseslint.config(
|
import * as importPlugin from 'eslint-plugin-import';
|
||||||
|
|
||||||
|
export default tsEslint.config(
|
||||||
eslint.configs.recommended,
|
eslint.configs.recommended,
|
||||||
tseslint.configs.eslintRecommended,
|
tsEslint.configs.eslintRecommended,
|
||||||
...tseslint.configs.recommendedTypeChecked,
|
...tsEslint.configs.recommendedTypeChecked,
|
||||||
{ ignores: ["dist", "node_modules", "*.config.*js"] },
|
prettier,
|
||||||
|
{ ignores: ['dist', 'node_modules', '*.config.*js'] },
|
||||||
{
|
{
|
||||||
plugins: {
|
plugins: {
|
||||||
stylistic,
|
stylistic,
|
||||||
importPlugin
|
importPlugin
|
||||||
},
|
},
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parser: tseslint.parser,
|
parser: tsEslint.parser,
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: true,
|
project: true,
|
||||||
sourceType: "module",
|
sourceType: 'module',
|
||||||
ecmaVersion: "latest"
|
ecmaVersion: 'latest'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
"stylistic/arrow-parens": ["error", "always"],
|
'stylistic/arrow-parens': ['error', 'always'],
|
||||||
"stylistic/object-curly-spacing": ["error", "always"],
|
'stylistic/object-curly-spacing': ['error', 'always'],
|
||||||
"@typescript-eslint/no-floating-promises": "off",
|
'prettier/prettier': ['error', { singleQuote: true, semi: true, tabWidth: 2, trailingComma: 'all', quoteProps: 'preserve' }],
|
||||||
"@typescript-eslint/no-misused-promises": ["off", { checksVoidReturn: false }],
|
'@typescript-eslint/no-floating-promises': 'off',
|
||||||
|
'@typescript-eslint/no-misused-promises': ['off', { checksVoidReturn: false }],
|
||||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
||||||
"@typescript-eslint/no-non-null-assertion": "off",
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||||
"importPlugin/first": "error",
|
'importPlugin/first': 'error',
|
||||||
"importPlugin/newline-after-import": "off",
|
'importPlugin/newline-after-import': 'off',
|
||||||
"importPlugin/no-default-export": "off",
|
'importPlugin/no-default-export': 'off',
|
||||||
"importPlugin/no-duplicates": "error",
|
'importPlugin/no-duplicates': 'error',
|
||||||
"importPlugin/no-unresolved": ["error", { ignore: ['^virtual:', '\\?inline$', '\\?raw$', '\\?asset&asarUnpack'] }],
|
'importPlugin/no-unresolved': ['error', { ignore: ['^virtual:', '\\?inline$', '\\?raw$', '\\?asset&asarUnpack'] }],
|
||||||
"importPlugin/order": ["error", {
|
'importPlugin/order': ['error', {
|
||||||
'groups': ['builtin', 'external', ['internal', 'index', 'sibling'], 'parent', 'type'],
|
'groups': ['builtin', 'external', ['internal', 'index', 'sibling'], 'parent', 'type'],
|
||||||
'newlines-between': 'always-and-inside-groups',
|
'newlines-between': 'always-and-inside-groups',
|
||||||
'alphabetize': { order: 'ignore', caseInsensitive: false }
|
'alphabetize': { order: 'ignore', caseInsensitive: false }
|
||||||
}],
|
}],
|
||||||
"importPlugin/prefer-default-export": "off",
|
'importPlugin/prefer-default-export': 'off',
|
||||||
"camelcase": ["error", { properties: "never" }],
|
'camelcase': ['error', { properties: 'never' }],
|
||||||
"class-methods-use-this": "off",
|
'class-methods-use-this': 'off',
|
||||||
"stylistic/lines-around-comment": ["error", {
|
'stylistic/lines-around-comment': ['error', {
|
||||||
beforeBlockComment: false,
|
beforeBlockComment: false,
|
||||||
afterBlockComment: false,
|
afterBlockComment: false,
|
||||||
beforeLineComment: false,
|
beforeLineComment: false,
|
||||||
afterLineComment: false,
|
afterLineComment: false,
|
||||||
}],
|
}],
|
||||||
"stylistic/max-len": "off",
|
'stylistic/max-len': 'off',
|
||||||
"stylistic/no-mixed-operators": "error",
|
'stylistic/no-mixed-operators': 'error',
|
||||||
"stylistic/no-multi-spaces": ["error", { ignoreEOLComments: true }],
|
'stylistic/no-multi-spaces': ['error', { ignoreEOLComments: true }],
|
||||||
"stylistic/no-tabs": "error",
|
'stylistic/no-tabs': 'error',
|
||||||
"no-void": "error",
|
'no-void': 'error',
|
||||||
"no-empty": "off",
|
'no-empty': 'off',
|
||||||
"prefer-promise-reject-errors": "off",
|
'prefer-promise-reject-errors': 'off',
|
||||||
"stylistic/quotes": ["error", "single", {
|
'stylistic/quotes': ['error', 'single', {
|
||||||
avoidEscape: true,
|
avoidEscape: true,
|
||||||
allowTemplateLiterals: false,
|
allowTemplateLiterals: false,
|
||||||
}],
|
}],
|
||||||
"stylistic/quote-props": ["error", "consistent"],
|
'stylistic/quote-props': ['error', 'consistent'],
|
||||||
"stylistic/semi": ["error", "always"],
|
'stylistic/semi': ['error', 'always'],
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
'import/parsers': {
|
'import/parsers': {
|
||||||
|
|||||||
@ -229,9 +229,11 @@
|
|||||||
"electron-vite": "2.3.0",
|
"electron-vite": "2.3.0",
|
||||||
"esbuild": "0.24.0",
|
"esbuild": "0.24.0",
|
||||||
"eslint": "9.12.0",
|
"eslint": "9.12.0",
|
||||||
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
||||||
"eslint-import-resolver-typescript": "3.6.3",
|
"eslint-import-resolver-typescript": "3.6.3",
|
||||||
"eslint-plugin-import": "2.31.0",
|
"eslint-plugin-import": "2.31.0",
|
||||||
|
"eslint-plugin-prettier": "5.2.1",
|
||||||
"glob": "11.0.0",
|
"glob": "11.0.0",
|
||||||
"node-gyp": "10.2.0",
|
"node-gyp": "10.2.0",
|
||||||
"playwright": "1.48.0",
|
"playwright": "1.48.0",
|
||||||
|
|||||||
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
@ -235,6 +235,9 @@ importers:
|
|||||||
eslint:
|
eslint:
|
||||||
specifier: 9.12.0
|
specifier: 9.12.0
|
||||||
version: 9.12.0
|
version: 9.12.0
|
||||||
|
eslint-config-prettier:
|
||||||
|
specifier: 9.1.0
|
||||||
|
version: 9.1.0(eslint@9.12.0)
|
||||||
eslint-import-resolver-exports:
|
eslint-import-resolver-exports:
|
||||||
specifier: 1.0.0-beta.5
|
specifier: 1.0.0-beta.5
|
||||||
version: 1.0.0-beta.5(eslint-plugin-import@2.31.0)(eslint@9.12.0)
|
version: 1.0.0-beta.5(eslint-plugin-import@2.31.0)(eslint@9.12.0)
|
||||||
@ -244,6 +247,9 @@ importers:
|
|||||||
eslint-plugin-import:
|
eslint-plugin-import:
|
||||||
specifier: 2.31.0
|
specifier: 2.31.0
|
||||||
version: 2.31.0(@typescript-eslint/parser@8.8.1(eslint@9.12.0)(typescript@5.6.3))(eslint-import-resolver-typescript@3.6.3)(eslint@9.12.0)
|
version: 2.31.0(@typescript-eslint/parser@8.8.1(eslint@9.12.0)(typescript@5.6.3))(eslint-import-resolver-typescript@3.6.3)(eslint@9.12.0)
|
||||||
|
eslint-plugin-prettier:
|
||||||
|
specifier: 5.2.1
|
||||||
|
version: 5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.12.0))(eslint@9.12.0)(prettier@3.3.3)
|
||||||
glob:
|
glob:
|
||||||
specifier: 11.0.0
|
specifier: 11.0.0
|
||||||
version: 11.0.0
|
version: 11.0.0
|
||||||
@ -908,6 +914,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
|
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
|
|
||||||
|
'@pkgr/core@0.1.1':
|
||||||
|
resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==}
|
||||||
|
engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
|
||||||
|
|
||||||
'@playwright/test@1.48.0':
|
'@playwright/test@1.48.0':
|
||||||
resolution: {integrity: sha512-W5lhqPUVPqhtc/ySvZI5Q8X2ztBOUgZ8LbAFy0JQgrXZs2xaILrUcNO3rQjwbLPfGK13+rZsDa1FpG+tqYkT5w==}
|
resolution: {integrity: sha512-W5lhqPUVPqhtc/ySvZI5Q8X2ztBOUgZ8LbAFy0JQgrXZs2xaILrUcNO3rQjwbLPfGK13+rZsDa1FpG+tqYkT5w==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
@ -4582,6 +4592,8 @@ snapshots:
|
|||||||
'@pkgjs/parseargs@0.11.0':
|
'@pkgjs/parseargs@0.11.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
'@pkgr/core@0.1.1': {}
|
||||||
|
|
||||||
'@playwright/test@1.48.0':
|
'@playwright/test@1.48.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
playwright: 1.48.0
|
playwright: 1.48.0
|
||||||
|
|||||||
Reference in New Issue
Block a user