refactor: Clear unused ESLint directives from FE packages (no-changelog) (#6811)
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
"build:storybook": "storybook build",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"format": "prettier --write . --ignore-path ../../.prettierignore",
|
||||
"lint": "eslint --quiet --ext .js,.ts,.vue src",
|
||||
"lintfix": "eslint --ext .js,.ts,.vue src --fix"
|
||||
"lint": "eslint src --ext .js,.ts,.vue --quiet --report-unused-disable-directives",
|
||||
"lintfix": "eslint src --ext .js,.ts,.vue --fix --report-unused-disable-directives"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "1.x",
|
||||
|
||||
@@ -40,14 +40,12 @@ export default defineComponent({
|
||||
classes() {
|
||||
const applied = [];
|
||||
if (this.align) {
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
applied.push(`align-${this.align}`);
|
||||
}
|
||||
if (this.color) {
|
||||
applied.push(this.color);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
applied.push(`size-${this.size}`);
|
||||
|
||||
applied.push(this.bold ? 'bold' : 'regular');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment */
|
||||
import type { StoryFn } from '@storybook/vue3';
|
||||
import N8nRecycleScroller from './RecycleScroller.vue';
|
||||
import type { ComponentInstance } from 'vue';
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
/* eslint-disable @typescript-eslint/unbound-method */
|
||||
import type { PropType } from 'vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
|
||||
@@ -50,7 +50,6 @@ export default defineComponent({
|
||||
classes() {
|
||||
const applied = [];
|
||||
if (this.align) {
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
applied.push(`align-${this.align}`);
|
||||
}
|
||||
if (this.color) {
|
||||
@@ -61,7 +60,6 @@ export default defineComponent({
|
||||
applied.push('compact');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
applied.push(`size-${this.size}`);
|
||||
|
||||
applied.push(this.bold ? 'bold' : 'regular');
|
||||
|
||||
@@ -133,7 +133,6 @@ export default defineComponent({
|
||||
return user.email;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
return `${user.fullName} (${user.email})`;
|
||||
},
|
||||
},
|
||||
|
||||
@@ -70,7 +70,7 @@ export default defineComponent({
|
||||
},
|
||||
beforeUnmount() {
|
||||
if (this.enabled) {
|
||||
this.observer?.disconnect(); // eslint-disable-line
|
||||
this.observer?.disconnect();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
|
||||
/**
|
||||
* Get a deeply nested value based on a given path string
|
||||
|
||||
Reference in New Issue
Block a user