@enormora/eslint-config-vue-ts 0.0.4 → 0.0.5

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 (2) hide show
  1. package/package.json +3 -3
  2. package/readme.md +29 -0
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Christian Rackerseder <github@echooff.de>"
5
5
  ],
6
6
  "dependencies": {
7
- "@typescript-eslint/parser": "8.39.0",
7
+ "@typescript-eslint/parser": "8.40.0",
8
8
  "eslint-plugin-vue": "10.4.0",
9
9
  "globals": "16.3.0",
10
10
  "vue-eslint-parser": "10.2.0"
@@ -14,12 +14,12 @@
14
14
  "main": "vue-ts.js",
15
15
  "name": "@enormora/eslint-config-vue-ts",
16
16
  "peerDependencies": {
17
- "@enormora/eslint-config-typescript": "0.0.22"
17
+ "@enormora/eslint-config-typescript": "0.0.23"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "git://github.com/enormora/eslint-config.git"
22
22
  },
23
23
  "type": "module",
24
- "version": "0.0.4"
24
+ "version": "0.0.5"
25
25
  }
package/readme.md ADDED
@@ -0,0 +1,29 @@
1
+ # `@enormora/eslint-config-vue-ts`
2
+
3
+ Config preset for Vue with TypeScript, enabling specific rules and compiler settings.
4
+
5
+ ## Install & Setup
6
+
7
+ Install the `@enormora/eslint-config-vue-ts`, the base preset and the TypeScript package via npm:
8
+
9
+ ```bash
10
+ npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-typescript @enormora/eslint-config-vue-ts
11
+ ```
12
+
13
+ Create an ESLint configuration file (e.g., `eslint.config.js`) in your project and add the base and react config to the configuration array:
14
+
15
+ ```javascript
16
+ import { baseConfig } from '@enormora/eslint-config-base';
17
+ import { vueConfig } from '@enormora/eslint-config-vue-ts';
18
+
19
+ export default [
20
+ {
21
+ ignores: ['dist/**/*']
22
+ },
23
+ baseConfig,
24
+ {
25
+ ...vueConfig,
26
+ files: ['src/**/*.vue']
27
+ }
28
+ ];
29
+ ```