@plugjs/eslint-plugin-vue 0.1.0 → 0.1.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.
- package/README.md +27 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,18 +6,44 @@ This package exports simple configurations for linting our Vue projects.
|
|
|
6
6
|
Just add in your `eslint.config.mjs` something similar to:
|
|
7
7
|
|
|
8
8
|
```javascript
|
|
9
|
-
// import { defineConfig } from 'eslint/config'
|
|
10
9
|
import configurations from '@plugjs/eslint-plugin-vue'
|
|
11
10
|
|
|
12
11
|
export default [
|
|
13
12
|
...configurations,
|
|
14
13
|
|
|
14
|
+
// ===== DEFINE THE LOCATION OF OUR TSCONFIG.JSON FILES ======================
|
|
15
|
+
{
|
|
16
|
+
name: 'local/options',
|
|
17
|
+
|
|
18
|
+
languageOptions: {
|
|
19
|
+
parserOptions: {
|
|
20
|
+
createDefaultProgram: true,
|
|
21
|
+
project: [
|
|
22
|
+
'./tsconfig.json',
|
|
23
|
+
'./tsconfig.app.json',
|
|
24
|
+
'./tsconfig.node.json',
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// ===== PROJECT LOCAL RULES =================================================
|
|
31
|
+
// Add any extra rule not tied to a specific "files" pattern here, e.g.:
|
|
32
|
+
// {
|
|
33
|
+
// name: 'local/rules',
|
|
34
|
+
//
|
|
35
|
+
// rules: {
|
|
36
|
+
// 'camelcase': 'off',
|
|
37
|
+
// },
|
|
38
|
+
// },
|
|
39
|
+
|
|
15
40
|
// ===== IGNORED FILES =======================================================
|
|
16
41
|
// REMEMBER! Ignores *must* be in its own configuration, they can not coexist
|
|
17
42
|
// with "rules", "languageOptions", "files", ... or anything else, otherwise
|
|
18
43
|
// ESLint will blaantly ignore the ignore files!
|
|
19
44
|
{
|
|
20
45
|
name: 'local/ignores',
|
|
46
|
+
|
|
21
47
|
ignores: [
|
|
22
48
|
'dist/',
|
|
23
49
|
'public/',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugjs/eslint-plugin-vue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Shared ESLint configurations and extras for Vue",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"build": "eslint-check-deprecated-rules && eslint"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@plugjs/eslint-plugin": "^0.5.
|
|
13
|
+
"@plugjs/eslint-plugin": "^0.5.1",
|
|
14
14
|
"eslint-plugin-vue": "^10.4.0",
|
|
15
15
|
"espree": "^10.4.0",
|
|
16
16
|
"vue-eslint-parser": "^10.2.0"
|