Skip to content

Commit 8ac7883

Browse files
committed
chore: cleanup files and lint
1 parent 5f8b97d commit 8ac7883

39 files changed

+24721
-19670
lines changed

Diff for: .eslintrc

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"@antfu",
5+
"plugin:prettier/recommended",
6+
"plugin:cypress/recommended"
7+
],
8+
"plugins": [
9+
"prettier"
10+
],
11+
"rules": {
12+
"curly": [
13+
"error",
14+
"all"
15+
],
16+
"vue/no-setup-props-destructure": 0,
17+
"no-console": [
18+
"error",
19+
{
20+
"allow": [
21+
"warn",
22+
"error"
23+
]
24+
}
25+
],
26+
"unused-imports/no-unused-vars": 0,
27+
"@typescript-eslint/no-use-before-define": 0,
28+
"eqeqeq": 0,
29+
"@typescript-eslint/no-unused-vars": [
30+
"error",
31+
{
32+
"argsIgnorePattern": "^_",
33+
"varsIgnorePattern": "^_"
34+
}
35+
],
36+
"prettier/prettier": [
37+
"error",
38+
{
39+
"singleQuote": true,
40+
"trailingComma": "all",
41+
"semi": false,
42+
"quoteProps": "consistent",
43+
"bracketSpacing": true,
44+
"printWidth": 130
45+
}
46+
],
47+
"antfu/if-newline": 0,
48+
"antfu/generic-spacing": 0,
49+
// typescript
50+
"@typescript-eslint/no-empty-interface": "off",
51+
"@typescript-eslint/ban-types": "off",
52+
// stylistic
53+
"@stylistic/ts/member-delimiter-style": "off",
54+
"@stylistic/ts/brace-style": "off",
55+
"@stylistic/js/operator-linebreak": "off",
56+
"@stylistic/ts/indent": "off"
57+
}
58+
}

Diff for: .eslintrc.js

-39
This file was deleted.

Diff for: .prettierrc

-8
This file was deleted.

Diff for: cypress/integration/1-tests/draggable.spec.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
/// <reference types="cypress" />
22
describe('draggable', () => {
33
beforeEach(() => {
4-
cy.visit('http://localhost:3000');
5-
});
4+
cy.visit('http://localhost:3000')
5+
})
66

77
it('Displays the example page and moves boxes around', () => {
8-
cy.get('#app').should('be.visible');
8+
cy.get('#app').should('be.visible')
99
cy.get('#app')
1010
.get('.wrapper-box')
1111
.should('have.length.at.least', 1)
1212
.should('have.class', 'revue-draggable')
1313
.each((el) => {
14-
const originalPosition = el.position();
15-
const box = Cypress.$(el)[0];
16-
const coords = { x: 200, y: 300 };
17-
box.dispatchEvent(new MouseEvent('mousedown'));
18-
box.dispatchEvent(new MouseEvent('mousemove', { x: 10, y: 0 }));
14+
const originalPosition = el.position()
15+
const box = Cypress.$(el)[0]
16+
const coords = { x: 200, y: 300 }
17+
box.dispatchEvent(new MouseEvent('mousedown'))
18+
box.dispatchEvent(new MouseEvent('mousemove', { x: 10, y: 0 }))
1919
box.dispatchEvent(
2020
new MouseEvent('mousemove', {
2121
clientX: coords.x + 10,
22-
clientY: coords.y + 10
23-
})
24-
);
25-
expect(el.position()).exist;
26-
expect(originalPosition).not.eq(el.position());
27-
box.dispatchEvent(new MouseEvent('mouseup'));
28-
});
29-
});
30-
});
22+
clientY: coords.y + 10,
23+
}),
24+
)
25+
expect(el.position()).exist
26+
expect(originalPosition).not.eq(el.position())
27+
box.dispatchEvent(new MouseEvent('mouseup'))
28+
})
29+
})
30+
})

Diff for: docs/nuxt.config.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import theme from '@nuxt/content-theme-docs';
1+
import theme from '@nuxt/content-theme-docs'
22

33
export default theme({
44
docs: {
5-
primaryColor: '#426dbe'
5+
primaryColor: '#426dbe',
66
},
77
loading: { color: '#00CD81' },
88
i18n: {
@@ -11,9 +11,9 @@ export default theme({
1111
code: 'en',
1212
iso: 'en-US',
1313
file: 'en-US.js',
14-
name: 'English'
15-
}
14+
name: 'English',
15+
},
1616
],
17-
defaultLocale: 'en'
18-
}
19-
});
17+
defaultLocale: 'en',
18+
},
19+
})

0 commit comments

Comments
 (0)