Skip to content

Commit 62ab288

Browse files
feat: Integrate eslint into script
1 parent 1ef94a9 commit 62ab288

File tree

5 files changed

+23
-17
lines changed

5 files changed

+23
-17
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ module.exports = {
6363
'vue/html-indent': 'off',
6464
'vue/max-attributes-per-line': 'off',
6565
'no-spaced-func': 'off',
66-
'@typescript-eslint/consistent-type-imports': 'error',
6766
'vuejs-accessibility/form-control-has-label': 'off',
6867
'vue/first-attribute-linebreak': 'off',
6968
indent: ['off'],

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"dev": "vite",
1111
"build": "vite build && vue-tsc",
1212
"types": "vue-tsc ",
13-
"preview": "vite preview"
13+
"preview": "vite preview",
14+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
1415
},
1516
"repository": {
1617
"type": "git",
@@ -29,7 +30,13 @@
2930
},
3031
"homepage": "https://github.com/KeyValueSoftwareSystems/siren-vue-inbox#readme",
3132
"devDependencies": {
33+
"@types/node": "^20.2.5",
34+
"@typescript-eslint/parser": "^7.5.0",
3235
"@vitejs/plugin-vue": "^5.0.4",
36+
"@vue/eslint-config-airbnb": "^8.0.0",
37+
"@vue/eslint-config-prettier": "^9.0.0",
38+
"@vue/eslint-config-typescript": "^13.0.0",
39+
"eslint-plugin-vue": "^9.24.0",
3340
"path": "^0.12.7",
3441
"typescript": "^5.3.3",
3542
"vite": "^5.1.6",

src/components/SirenInbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<template>
22
Siren
3-
</template>
3+
</template>

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import SirenInbox from "./components/SirenInbox.vue";
1+
import SirenInbox from './components/SirenInbox.vue';
22

33
export { SirenInbox };

vite.config.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
import { defineConfig } from "vite";
2-
import path from "path";
3-
import vue from "@vitejs/plugin-vue";
4-
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
1+
import { defineConfig } from 'vite';
2+
import path from 'path';
3+
import vue from '@vitejs/plugin-vue';
4+
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
55

66
export default defineConfig({
77
plugins: [vue(), cssInjectedByJsPlugin()],
88
build: {
99
lib: {
10-
entry: path.resolve(__dirname, "src/index.ts"),
11-
name: "Siren",
12-
fileName: "@siren/vue-inbox",
10+
entry: path.resolve(__dirname, 'src/index.ts'),
11+
name: 'Siren',
12+
fileName: '@siren/vue-inbox'
1313
},
1414
rollupOptions: {
15-
external: ["vue"],
15+
external: ['vue'],
1616
output: {
1717
globals: {
18-
vue: "Vue",
19-
},
20-
},
21-
},
22-
},
18+
vue: 'Vue'
19+
}
20+
}
21+
}
22+
}
2323
});

0 commit comments

Comments
 (0)