Skip to content

Commit

Permalink
fix: remove extraneous eslint disables and standardize format
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielwarner committed Sep 13, 2024
1 parent c5a8d28 commit 0559a5a
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 34 deletions.
3 changes: 1 addition & 2 deletions es-ds-docs/pages/atoms/color.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
// eslint-disable-next-line import/no-self-import
const docSource = await import('./color.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
docCode.value = $prism.normalizeCode(docSource.default);
$prism.highlight();
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/atoms/corners.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-self-import */
// eslint-disable-next-line import/no-self-import
const docSource = await import('./corners.vue?raw');
/* eslint-enable import/no-self-import */
docCode.value = $prism.normalizeCode(docSource.default);
$prism.highlight();
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/atoms/typography.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,8 @@ const { $prism } = useNuxtApp();
const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
// eslint-disable-next-line import/no-self-import
const docSource = await import('./typography.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
docCode.value = $prism.normalizeCode(docSource.default);
$prism.highlight();
}
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/molecules/accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-accordion-list.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./accordion.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
1 change: 0 additions & 1 deletion es-ds-docs/pages/molecules/badge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
// eslint-disable-next-line import/no-unresolved
const compSource = await import('@energysage/es-ds-components/components/es-badge.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./badge.vue?raw');
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/molecules/breadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-breadcrumbs.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./breadcrumbs.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/molecules/collapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-collapse.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./collapse.vue?raw');
/* eslint-enable import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/molecules/file-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-file-input.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./file-input.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/molecules/modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-modal.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./modal.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/molecules/progress-circle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ const propTableWidths = {
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-progress-circle.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./progress-circle.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
4 changes: 1 addition & 3 deletions es-ds-docs/pages/molecules/radio-button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,14 @@ const radioButtonGroupComponentCode = ref('');
const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const radioButtonComponentSource = await import(
'@energysage/es-ds-components/components/es-radio-button.vue?raw'
);
// eslint-disable-next-line max-len
const radioButtonGroupComponentSource = await import(
'@energysage/es-ds-components/components/es-radio-button-group.vue?raw'
);
// eslint-disable-next-line import/no-self-import
const docSource = await import('./radio-button.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
radioButtonComponentCode.value = $prism.normalizeCode(radioButtonComponentSource.default);
radioButtonGroupComponentCode.value = $prism.normalizeCode(radioButtonGroupComponentSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/molecules/tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-tabs.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./tabs.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/molecules/text-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-form-input.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./text-input.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/organisms/carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-carousel.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./carousel.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/organisms/error-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-error-page.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./error-page.vue?raw');
/* eslint-enable import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/organisms/reviews-io-card-carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ const docCode = ref('');
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-reviews-io-card-carousel.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./reviews-io-card-carousel.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down
3 changes: 1 addition & 2 deletions es-ds-docs/pages/organisms/support-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ const slotTableRows = [
onMounted(async () => {
if ($prism) {
/* eslint-disable import/no-webpack-loader-syntax, import/no-self-import */
const compSource = await import('@energysage/es-ds-components/components/es-support-card.vue?raw');
// eslint-disable-next-line import/no-self-import
const docSource = await import('./support-card.vue?raw');
/* eslint-enable import/no-webpack-loader-syntax, import/no-self-import */
compCode.value = $prism.normalizeCode(compSource.default);
docCode.value = $prism.normalizeCode(docSource.default);
Expand Down

0 comments on commit 0559a5a

Please sign in to comment.