@tak-ps/vue-tabler 3.87.4 → 4.0.0

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.
package/eslint.config.js CHANGED
@@ -1,23 +1,24 @@
1
- import js from "@eslint/js";
2
- import globals from "globals"
3
- import eslintPluginVue from 'eslint-plugin-vue'
1
+ import globals from 'globals';
2
+ import js from '@eslint/js';
3
+ import eslintPluginVue from 'eslint-plugin-vue';
4
4
  import ts from 'typescript-eslint';
5
5
 
6
- export default [
6
+ export default ts.config(
7
7
  js.configs.recommended,
8
8
  ...ts.configs.recommended,
9
9
  ...eslintPluginVue.configs['flat/recommended'],
10
- {
10
+ {
11
11
  languageOptions: {
12
- globals: {
13
- ...globals.browser,
14
- },
12
+ sourceType: 'module',
15
13
  parserOptions: {
16
14
  parser: '@typescript-eslint/parser'
15
+ },
16
+ globals: {
17
+ ...globals.browser
17
18
  }
18
19
  },
19
20
  rules: {
20
- "vue/html-indent": ["error", 4],
21
+ "vue/html-indent": ["error", 4],
21
22
  "vue/html-quotes": ["error", "single", { "avoidEscape": false } ],
22
23
  "vue/multi-word-component-names": 1,
23
24
  "vue/no-multiple-template-root": 0,
@@ -25,4 +26,4 @@ export default [
25
26
  "vue/require-v-for-key": 0
26
27
  }
27
28
  }
28
- ]
29
+ )
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.87.4",
5
- "lib": "lib.js",
6
- "main": "lib.js",
7
- "module": "lib.js",
4
+ "version": "4.0.0",
5
+ "lib": "lib.ts",
6
+ "main": "lib.ts",
7
+ "module": "lib.ts",
8
8
  "exports": {
9
- ".": "./lib.js"
9
+ ".": "./lib.ts"
10
10
  },
11
11
  "description": "Tabler UI components for Vue3",
12
12
  "scripts": {
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "lint": "eslint lib.js components/"
14
+ "check": "vue-tsc --noEmit",
15
+ "lint": "eslint lib.ts components/"
15
16
  },
16
17
  "repository": {
17
18
  "type": "git",
@@ -29,12 +30,16 @@
29
30
  "typescript-eslint": "^8.36.0",
30
31
  "vue": "^3.5.12"
31
32
  },
33
+ "peerDependencies": {
34
+ "vue-router": "^4.0.0"
35
+ },
32
36
  "devDependencies": {
33
37
  "@babel/eslint-parser": "^7.22.15",
34
38
  "@typescript-eslint/parser": "^8.8.1",
35
39
  "@vue/cli-plugin-babel": "^5.0.8",
36
40
  "eslint": "^9.12.0",
37
41
  "eslint-plugin-vue": "^10.0.0",
38
- "globals": "^16.3.0"
42
+ "globals": "^16.3.0",
43
+ "vue-tsc": "^3.2.1"
39
44
  }
40
45
  }
package/tsconfig.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "esnext",
4
+ "module": "esnext",
5
+ "strict": true,
6
+ "jsx": "preserve",
7
+ "moduleResolution": "node",
8
+ "skipLibCheck": true,
9
+ "esModuleInterop": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "useDefineForClassFields": true,
13
+ "sourceMap": true,
14
+ "baseUrl": ".",
15
+ "types": [],
16
+ "paths": {
17
+ "@/*": [
18
+ "src/*"
19
+ ]
20
+ }
21
+ },
22
+ "include": [
23
+ "lib.ts",
24
+ "components/**/*.vue",
25
+ "components/**/*.ts"
26
+ ],
27
+ "exclude": [
28
+ "node_modules"
29
+ ]
30
+ }
File without changes