From a159e37a6e97537b66e34ca966297189e89ccc9f Mon Sep 17 00:00:00 2001 From: shubhadip Date: Sat, 4 Nov 2023 16:37:48 +0530 Subject: [PATCH] refactor: eslint changes --- .eslintrc.js => .eslintrc.cjs | 0 babel.config.js | 6 ------ commitlint.config.js => commitlint.config.cjs | 0 index.html | 13 +++++++++++++ package.json | 6 +++--- public/assets/icons/chevron-down.svg | 1 - public/favicon.ico | Bin 4286 -> 0 bytes public/index.html | 18 ------------------ public/vite.svg | 1 + src/App.vue | 4 ++-- src/components/datepicker/DateInput.vue | 5 +++-- src/main.ts | 6 ++++++ 12 files changed, 28 insertions(+), 32 deletions(-) rename .eslintrc.js => .eslintrc.cjs (100%) delete mode 100644 babel.config.js rename commitlint.config.js => commitlint.config.cjs (100%) create mode 100644 index.html delete mode 100644 public/assets/icons/chevron-down.svg delete mode 100644 public/favicon.ico delete mode 100644 public/index.html create mode 100644 public/vite.svg diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index d25d19a..0000000 --- a/babel.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - presets: ['@babel/preset-typescript', '@babel/preset-env'], - plugins: [ - '@babel/plugin-transform-runtime' - ] -}; diff --git a/commitlint.config.js b/commitlint.config.cjs similarity index 100% rename from commitlint.config.js rename to commitlint.config.cjs diff --git a/index.html b/index.html new file mode 100644 index 0000000..dde16aa --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite + Vue + TS + + +
+ + + diff --git a/package.json b/package.json index 73eb29d..328917b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": [ diff --git a/public/assets/icons/chevron-down.svg b/public/assets/icons/chevron-down.svg deleted file mode 100644 index 278c6a3..0000000 --- a/public/assets/icons/chevron-down.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4286 zcmds*O-Phc6o&64GDVCEQHxsW(p4>LW*W<827=Unuo8sGpRux(DN@jWP-e29Wl%wj zY84_aq9}^Am9-cWTD5GGEo#+5Fi2wX_P*bo+xO!)p*7B;iKlbFd(U~_d(U?#hLj56 zPhFkj-|A6~Qk#@g^#D^U0XT1cu=c-vu1+SElX9NR;kzAUV(q0|dl0|%h|dI$%VICy zJnu2^L*Te9JrJMGh%-P79CL0}dq92RGU6gI{v2~|)p}sG5x0U*z<8U;Ij*hB9z?ei z@g6Xq-pDoPl=MANPiR7%172VA%r)kevtV-_5H*QJKFmd;8yA$98zCxBZYXTNZ#QFk2(TX0;Y2dt&WitL#$96|gJY=3xX zpCoi|YNzgO3R`f@IiEeSmKrPSf#h#Qd<$%Ej^RIeeYfsxhPMOG`S`Pz8q``=511zm zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp= zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8 zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 52cb3e9..0000000 --- a/public/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - <%= htmlWebpackPlugin.options.title %> - - - -
- - - diff --git a/public/vite.svg b/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index b83c779..9c2bbf2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,9 @@