mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-19 01:43:35 +08:00
* chore(deps-dev): bump the oxc group across 1 directory with 4 updates Bumps the oxc group with 4 updates in the / directory: [@oxlint/plugins](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint-plugins), [oxfmt](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxfmt), [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint) and [oxlint-plugin-eslint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint-plugin-eslint). Updates `@oxlint/plugins` from 1.65.0 to 1.66.0 - [Release notes](https://github.com/oxc-project/oxc/releases) - [Changelog](https://github.com/oxc-project/oxc/blob/main/CHANGELOG.md) - [Commits](https://github.com/oxc-project/oxc/commits/apps_v1.66.0/npm/oxlint-plugins) Updates `oxfmt` from 0.50.0 to 0.51.0 - [Release notes](https://github.com/oxc-project/oxc/releases) - [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxfmt/CHANGELOG.md) - [Commits](https://github.com/oxc-project/oxc/commits/oxfmt_v0.51.0/npm/oxfmt) Updates `oxlint` from 1.65.0 to 1.66.0 - [Release notes](https://github.com/oxc-project/oxc/releases) - [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md) - [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.66.0/npm/oxlint) Updates `oxlint-plugin-eslint` from 1.65.0 to 1.66.0 - [Release notes](https://github.com/oxc-project/oxc/releases) - [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint-plugin-eslint/CHANGELOG.md) - [Commits](https://github.com/oxc-project/oxc/commits/apps_v1.66.0/npm/oxlint-plugin-eslint) --- updated-dependencies: - dependency-name: "@oxlint/plugins" dependency-version: 1.66.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: oxc - dependency-name: oxfmt dependency-version: 0.51.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: oxc - dependency-name: oxlint dependency-version: 1.66.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: oxc - dependency-name: oxlint-plugin-eslint dependency-version: 1.66.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: oxc ... Signed-off-by: dependabot[bot] <support@github.com> * style: ues native newline-after-import --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
75 lines
2.6 KiB
JavaScript
75 lines
2.6 KiB
JavaScript
// oxlint-disable simple-import-sort/imports
|
|
import js from '@eslint/js';
|
|
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
import tsParser from '@typescript-eslint/parser';
|
|
// import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
import eslintPluginYml from 'eslint-plugin-yml';
|
|
import { defineConfig } from 'eslint/config';
|
|
import globals from 'globals';
|
|
|
|
const SOURCE_FILES_GLOB = '**/*.?([cm])[jt]s?(x)';
|
|
|
|
export default defineConfig([
|
|
{
|
|
ignores: ['**/coverage', '**/.vscode', '**/docker-compose.yml', '!.github', 'assets/build', 'lib/routes-deprecated', 'lib/router.js', 'dist', 'dist-lib', 'dist-worker'],
|
|
},
|
|
{
|
|
files: [SOURCE_FILES_GLOB],
|
|
plugins: {
|
|
'@typescript-eslint': typescriptEslint,
|
|
js,
|
|
},
|
|
// extends: [typescriptEslint.configs['flat/recommended'], typescriptEslint.configs['flat/stylistic'], n.configs['flat/recommended-script']],
|
|
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
...globals.browser,
|
|
},
|
|
|
|
parser: tsParser,
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
|
|
linterOptions: {
|
|
reportUnusedDisableDirectives: false,
|
|
},
|
|
|
|
rules: {
|
|
// #region typescript
|
|
/*
|
|
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
|
|
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'@typescript-eslint/consistent-indexed-object-style': 'off', // stylistic
|
|
'@typescript-eslint/consistent-type-definitions': 'off', // stylistic
|
|
'@typescript-eslint/no-empty-function': 'off', // stylistic && tests
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
|
|
'@typescript-eslint/no-inferrable-types': ['error', { ignoreParameters: true, ignoreProperties: true }],
|
|
'@typescript-eslint/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
|
|
'@typescript-eslint/no-unused-vars': ['error', { args: 'after-used', argsIgnorePattern: '^_' }],
|
|
*/
|
|
// #endregion
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.yaml', '**/*.yml'],
|
|
ignores: ['pnpm-lock.yaml'],
|
|
plugins: {
|
|
yml: eslintPluginYml,
|
|
},
|
|
language: 'yml/yaml',
|
|
rules: {
|
|
'lines-around-comment': ['error', { beforeBlockComment: false }],
|
|
|
|
'yml/indent': ['error', 4, { indicatorValueIndent: 2 }],
|
|
|
|
'yml/no-empty-mapping-value': 'off',
|
|
|
|
'yml/quotes': ['error', { prefer: 'single' }],
|
|
},
|
|
},
|
|
]);
|