File tree Expand file tree Collapse file tree 5 files changed +238
-138
lines changed Expand file tree Collapse file tree 5 files changed +238
-138
lines changed Original file line number Diff line number Diff line change @@ -5,27 +5,15 @@ module.exports = {
5
5
env : {
6
6
browser : true ,
7
7
} ,
8
- extends : [ 'airbnb-base' , 'plugin:vue/recommended' ] ,
8
+ extends : [
9
+ "eslint:recommended" ,
10
+ "plugin:@typescript-eslint/eslint-recommended" ,
11
+ "plugin:@typescript-eslint/recommended"
12
+ ] ,
9
13
// required to lint *.vue files
10
- plugins : [ 'html ' ] ,
14
+ plugins : [ '@typescript-eslint ' ] ,
11
15
// add your custom rules here
12
16
rules : {
13
- // don't require .vue extension when importing
14
- 'import/extensions' : [
15
- 'error' ,
16
- 'always' ,
17
- {
18
- js : 'never' ,
19
- vue : 'never' ,
20
- } ,
21
- ] ,
22
- // allow optionalDependencies
23
- 'import/no-extraneous-dependencies' : [
24
- 'error' ,
25
- {
26
- optionalDependencies : [ 'test/unit/index.js' ] ,
27
- } ,
28
- ] ,
29
17
// allow debugger during development
30
18
'no-debugger' : process . env . NODE_ENV === 'production' ? 2 : 0 ,
31
19
'arrow-parens' : 'off' ,
Original file line number Diff line number Diff line change 9
9
"license" : " MIT" ,
10
10
"scripts" : {
11
11
"build" : " node build.js" ,
12
- "lint" : " eslint --ext .js,.vue src" ,
12
+ "lint" : " eslint --ext .ts src" ,
13
13
"docs:dev" : " vuepress dev docs" ,
14
14
"docs:build" : " vuepress build docs" ,
15
15
"test" : " jest"
24
24
"devDependencies" : {
25
25
"@interactjs/types" : " ^1.10.17" ,
26
26
"@tsconfig/recommended" : " ^1.0.1" ,
27
+ "@typescript-eslint/eslint-plugin" : " ^5.40.1" ,
28
+ "@typescript-eslint/parser" : " ^5.40.1" ,
27
29
"esbuild" : " ^0.15.11" ,
28
30
"eslint" : " ^8.25.0" ,
29
31
"eslint-config-airbnb-base" : " ^15.0.0" ,
33
35
"eslint-plugin-import" : " ^2.26.0" ,
34
36
"eslint-plugin-vue" : " ^9.6.0" ,
35
37
"typescript" : " ^4.8.4" ,
36
- "vuepress" : " ^1.5.0 "
38
+ "vuepress" : " ^1.9.7 "
37
39
},
38
40
"engines" : {
39
41
"node" : " >= 14.0.0" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import resizable from './directives/resizable';
9
9
export { DraggingMixin } ;
10
10
export { ResizingMixin } ;
11
11
12
- const VueInteract : any = {
12
+ const VueInteract = {
13
13
install : ( Vue : Vue ) => {
14
14
if ( Vue . vueInteractInstalled ) {
15
15
return ;
Original file line number Diff line number Diff line change
1
+ /* eslint-disable */
1
2
import Vue from 'vue' ;
2
3
3
4
declare global {
4
5
interface Vue {
5
6
vueInteractInstalled ?: boolean ;
6
7
$interact : any | null ;
7
8
}
8
- }
9
+ }
10
+
11
+ /* eslint-disable */
You can’t perform that action at this time.
0 commit comments