chore: Remove unused eslint-rules & lint files

This commit is contained in:
Braks
2022-04-11 11:30:10 +02:00
parent 103fc71857
commit f011ea61b1
5 changed files with 11 additions and 19 deletions
-10
View File
@@ -1,14 +1,4 @@
const baseRules = {
'@typescript-eslint/triple-slash-reference': 0,
'no-console': 0,
'vue/valid-v-slot': [
'error',
{
allowModifiers: true,
},
],
'no-unused-expressions': ['off', { allowTernary: true }],
'no-use-before-define': 0,
'chai-friendly/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
}
+2
View File
@@ -11,7 +11,9 @@ export type NodeHandleBounds = {
target?: HandleElement[]
}
// eslint-disable-next-line no-use-before-define
type WidthFunc = <Data = ElementData>(node: GraphNode<Data>) => number | string | void
// eslint-disable-next-line no-use-before-define
type HeightFunc = <Data = ElementData>(node: GraphNode<Data>) => number | string | void
export interface Node<Data = ElementData> extends Element<Data> {
@@ -30,7 +30,6 @@ describe('test store action setElements', () => {
})
it('parses elements to flow-elements', () => {
console.log(store.getEdges)
store.getEdges.forEach((edge) => expect(isEdge(edge)).to.be.true)
store.getNodes.forEach((node) => expect(isNode(node)).to.be.true)
})
@@ -6,9 +6,7 @@ describe('test store state', () => {
const { store: initial } = useVueFlow()
beforeEach(() => ({ store } = useVueFlow()))
it('has any initial state', () => {
expect(store).to.exist
})
it('has any initial state', () => expect(store).to.exist)
it('has default initial state', () => {
Object.keys(store).forEach((state) => {
@@ -39,9 +39,12 @@ describe('Render VueFlow', () => {
cy.get('.vue-flow__node').each((node) => expect(elements.some((el) => el.label === node.text())).to.be.true))
it('renders nodes at correct position', () =>
cy.get('.vue-flow__node').each((node) => {
expect(
elements.filter(isNode).some((el) => el.position.x === node.position().left && el.position.y === node.position().top),
).to.be.true
}))
cy
.get('.vue-flow__node')
.each(
(node) =>
expect(
elements.filter(isNode).some((el) => el.position.x === node.position().left && el.position.y === node.position().top),
).to.be.true,
))
})