Skip to content

Commit

Permalink
feat: remove eslint-plugin-vuetify
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Jun 12, 2024
1 parent ea60e6b commit 0aa150e
Show file tree
Hide file tree
Showing 9 changed files with 672 additions and 1,180 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"@rotki/eslint-plugin": ">=0.2.1",
"eslint": ">=8.57.0",
"eslint-plugin-cypress": ">=2.15.0",
"eslint-plugin-storybook": "^0.6.15 || ^0.8.0",
"eslint-plugin-vuetify": "^1 || ^2"
"eslint-plugin-storybook": "^0.6.15 || ^0.8.0"
},
"peerDependenciesMeta": {
"@intlify/eslint-plugin-vue-i18n": {
Expand All @@ -54,9 +53,6 @@
},
"eslint-plugin-storybook": {
"optional": true
},
"eslint-plugin-vuetify": {
"optional": true
}
},
"dependencies": {
Expand Down
1,704 changes: 668 additions & 1,036 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ export * from './vue';

export * from './vue-i18n';

export * from './vuetify';

export * from './yaml';
52 changes: 0 additions & 52 deletions src/configs/vuetify.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
unicorn,
vue,
vueI18n,
vuetify,
yaml,
} from './configs';
import { combine, interopDefault, renamePluginInConfigs } from './utils';
Expand Down Expand Up @@ -71,7 +70,6 @@ export async function rotki(
typescript: enableTypeScript = isPackageExists('typescript'),
vue: enableVue = VuePackages.some(i => isPackageExists(i)),
vueI18n: enableVueI18n,
vuetify: enableVuetify,
} = options;

const stylisticOptions = options.stylistic === false
Expand Down Expand Up @@ -161,14 +159,6 @@ export async function rotki(
}));
}

if (enableVuetify) {
configs.push(vuetify({
...resolveSubOptions(options, 'vuetify'),
overrides: getOverrides(options, 'vuetify'),
typescript: !!enableTypeScript,
}));
}

if (enableVueI18n) {
configs.push(vueI18n({
...resolveSubOptions(options, 'vueI18n'),
Expand Down
16 changes: 3 additions & 13 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StorybookRules } from './vendor/rules/storybook';
import type { VueI18nRules, VuetifyRules } from './vendor/rules';
import type { VueI18nRules } from './vendor/rules';
import type { VendoredPrettierOptions } from './vendor/prettier';
import type { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
import type { ParserOptions } from '@typescript-eslint/parser';
Expand Down Expand Up @@ -60,7 +60,7 @@ export type Rules = WrapRuleConfig<
'@rotki/no-deprecated-props': RuleConfig<[]>;
'@rotki/no-deprecated-components': RuleConfig<[{ legacy?: boolean }]>;
'@rotki/no-legacy-library-import': RuleConfig<[]>;
} & VuetifyRules
}
& Prefix<VueI18nRules, '@intlify/vue-i18n/'>
& Prefix<StorybookRules, 'storybook/'>
>
Expand Down Expand Up @@ -322,20 +322,10 @@ export interface OptionsConfig extends OptionsComponentExts {
*/
rotki?: boolean;

/**
* Enable vuetify linting support.
* Requires installing:
* - `eslint-plugin-vuetify`
*
*
* @default false
*/
vuetify?: boolean | OptionsOverrides;

/**
* Enable vue-i18n linting support.
* Requires installing:
* - `eslint-plugin-vuetify`
* - `@intlify/eslint-plugin-vue-i18n`
*
*
* @default false
Expand Down
2 changes: 0 additions & 2 deletions src/vendor/rules/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export * from './vuetify';

export * from './vue-i18n';
18 changes: 0 additions & 18 deletions src/vendor/rules/vuetify.ts

This file was deleted.

42 changes: 0 additions & 42 deletions src/vendor/vuetify.d.ts

This file was deleted.

0 comments on commit 0aa150e

Please sign in to comment.