@krosoft/tooling-eslint-vue 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +5 -0
  2. package/index.js +23 -0
  3. package/package.json +25 -0
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # krosoft-tooling-eslint-vue
2
+
3
+ [![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
4
+
5
+ Krosoft ESLint shared config for Vue.
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ import pluginVue from 'eslint-plugin-vue';
2
+ import tseslint from 'typescript-eslint';
3
+ import { createBaseConfig } from '@krosoft/tooling-eslint';
4
+
5
+ /**
6
+ * @param {{ tsconfigRootDir: string, project?: string[] }} options
7
+ * @returns {import("typescript-eslint").ConfigArray}
8
+ */
9
+ export function createVueConfig(options) {
10
+ return tseslint.config(
11
+ ...createBaseConfig(options),
12
+ ...pluginVue.configs['flat/recommended'],
13
+ {
14
+ files: ['**/*.{ts,vue}'],
15
+ rules: {
16
+ 'vue/multi-word-component-names': 'warn',
17
+ 'vue/component-api-style': ['error', ['script-setup']],
18
+ 'vue/define-macros-order': 'error',
19
+ 'vue/no-unused-vars': 'error',
20
+ },
21
+ },
22
+ );
23
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@krosoft/tooling-eslint-vue",
3
+ "version": "0.0.1",
4
+ "description": "Krosoft ESLint shared config for Vue",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./index.js"
8
+ },
9
+ "files": [
10
+ "index.js"
11
+ ],
12
+ "peerDependencies": {
13
+ "@krosoft/tooling-eslint": "*",
14
+ "eslint": ">=9.0.0",
15
+ "eslint-plugin-vue": ">=9.0.0",
16
+ "typescript-eslint": ">=8.0.0"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/krosoft-dev/krosoft-tooling-eslint-vue.git"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ }
25
+ }