Skip to content

Commit

Permalink
refactor: eslint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhadip committed Nov 4, 2023
1 parent d260e23 commit a159e37
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 32 deletions.
File renamed without changes.
6 changes: 0 additions & 6 deletions babel.config.js

This file was deleted.

File renamed without changes.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"src/*",
"types/*"
],
"type": "module",
"module": "dist/vue3-datepicker.js",
"scripts": {
"dev": "vite",
"dev": "vite --config vite.config.project.ts",
"cz": "git-cz",
"precommit": "lint-staged",
"build": "vue-tsc && vite build --config vite.config.project.ts",
Expand Down Expand Up @@ -64,8 +65,7 @@
"vue-tsc": "^1.8.5"
},
"lint-staged": {
"*.ts": "eslint --cache --fix",
"*.vue": "eslint --cache --fix"
"*.ts": "eslint --cache --fix"
},
"types": "./types/index.d.ts",
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion public/assets/icons/chevron-down.svg

This file was deleted.

Binary file removed public/favicon.ico
Binary file not shown.
18 changes: 0 additions & 18 deletions public/index.html

This file was deleted.

1 change: 1 addition & 0 deletions public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div class="page-wrapper">
<div class="page-head md-hidden">
<a href="https://github.com/shubhadip/vuejs3-datepicker">
<!-- <a href="https://github.com/shubhadip/vuejs3-datepicker">
<img src="./assets/github.svg" alt="vuejs3-datepicker" />
</a>
</a> -->
<span
class="hamburger-icon md-hidden"
:class="{ active: isHamburgerOpen }"
Expand Down
5 changes: 3 additions & 2 deletions src/components/datepicker/DateInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<script lang="ts">
import { computed, defineComponent, ref, watch } from 'vue';
import IconView from '../iconview/IconView.vue';
import { formatDate, stringToDate } from './utils/DateUtils';
import { formatDate, stringToDate } from './utils/DateUtils.ts';
export default defineComponent({
name: 'DateInput',
Expand All @@ -85,6 +85,7 @@ export default defineComponent({
},
resetTypedDate: {
type: [Date as new () => Date],
default: new Date()
},
format: {
type: [String, Function],
Expand Down Expand Up @@ -303,4 +304,4 @@ export default defineComponent({
.cursor-na {
cursor: 'not-allowed';
}
</style>
</style>
6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// import { createApp } from 'vue'
// import './style.css'
// import App from './App.vue'

// createApp(App).mount('#app')

import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
Expand Down

0 comments on commit a159e37

Please sign in to comment.