mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-12 02:33:15 +08:00
* chore(deps): bump the non-breaking-changes group with 3 updates Bumps the non-breaking-changes group with 3 updates: [@changesets/cli](https://github.com/changesets/changesets), [vue](https://github.com/vuejs/core) and [@vue/shared](https://github.com/vuejs/core/tree/HEAD/packages/shared). Updates `@changesets/cli` from 2.27.8 to 2.27.9 - [Release notes](https://github.com/changesets/changesets/releases) - [Changelog](https://github.com/changesets/changesets/blob/main/docs/modifying-changelog-format.md) - [Commits](https://github.com/changesets/changesets/compare/@changesets/cli@2.27.8...@changesets/cli@2.27.9) Updates `vue` from 3.5.10 to 3.5.11 - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md) - [Commits](https://github.com/vuejs/core/compare/v3.5.10...v3.5.11) Updates `@vue/shared` from 3.5.10 to 3.5.11 - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md) - [Commits](https://github.com/vuejs/core/commits/v3.5.11/packages/shared) --- updated-dependencies: - dependency-name: "@changesets/cli" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: vue dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: "@vue/shared" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes ... Signed-off-by: dependabot[bot] <support@github.com> * chore: update deps --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
import type { Linter } from 'eslint';
|
|
|
|
import { interopDefault } from '../util';
|
|
|
|
export async function unicorn(): Promise<Linter.Config[]> {
|
|
const [pluginUnicorn] = await Promise.all([
|
|
interopDefault(import('eslint-plugin-unicorn')),
|
|
] as const);
|
|
|
|
return [
|
|
{
|
|
plugins: {
|
|
unicorn: pluginUnicorn,
|
|
},
|
|
rules: {
|
|
...pluginUnicorn.configs.recommended.rules,
|
|
|
|
'unicorn/better-regex': 'off',
|
|
'unicorn/consistent-destructuring': 'off',
|
|
'unicorn/consistent-function-scoping': 'off',
|
|
'unicorn/filename-case': 'off',
|
|
'unicorn/import-style': 'off',
|
|
'unicorn/no-array-for-each': 'off',
|
|
'unicorn/no-null': 'off',
|
|
'unicorn/no-useless-undefined': 'off',
|
|
'unicorn/prefer-at': 'off',
|
|
'unicorn/prefer-dom-node-text-content': 'off',
|
|
'unicorn/prefer-export-from': ['error', { ignoreUsedVariables: true }],
|
|
'unicorn/prefer-global-this': 'off',
|
|
'unicorn/prefer-top-level-await': 'off',
|
|
'unicorn/prevent-abbreviations': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: [
|
|
'scripts/**/*.?([cm])[jt]s?(x)',
|
|
'internal/**/*.?([cm])[jt]s?(x)',
|
|
],
|
|
rules: {
|
|
'unicorn/no-process-exit': 'off',
|
|
},
|
|
},
|
|
];
|
|
}
|