@bitfactory/eslint-config 1.2.3 → 1.2.4
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 +22 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,25 @@ module.exports = {
|
|
|
59
59
|
};
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
> **_NOTE:_** Vue3 needs some extra configuration
|
|
63
|
+
|
|
64
|
+
```shell
|
|
65
|
+
npm install @vue/eslint-config-typescript --save-exact --save-dev
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
And set the following extend in `.eslintrc.js`:
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
module.exports = {
|
|
72
|
+
extends: [
|
|
73
|
+
'@bitfactory/eslint-config/vue',
|
|
74
|
+
'plugin:vue/vue3-recommended', // <-- add this one
|
|
75
|
+
'@vue/typescript/recommended', // <-- and this one
|
|
76
|
+
'@bitfactory/eslint-config/typescript',
|
|
77
|
+
],
|
|
78
|
+
};
|
|
79
|
+
```
|
|
80
|
+
|
|
62
81
|
---
|
|
63
82
|
|
|
64
83
|
### TypeScript projects
|
|
@@ -84,7 +103,7 @@ module.exports = {
|
|
|
84
103
|
To use this config with a Vue.js, TypeScript and regular JavaScript project also install the following packages
|
|
85
104
|
|
|
86
105
|
```shell
|
|
87
|
-
npm install eslint-plugin-vue eslint-plugin-vuejs-accessibility @typescript-eslint/parser @typescript-eslint/eslint-plugin --save-dev --save-exact
|
|
106
|
+
npm install eslint-plugin-vue eslint-plugin-vuejs-accessibility @typescript-eslint/parser @typescript-eslint/eslint-plugin @vue/eslint-config-typescript --save-dev --save-exact
|
|
88
107
|
```
|
|
89
108
|
|
|
90
109
|
And set the following extend in `.eslintrc.js`:
|
|
@@ -93,6 +112,8 @@ And set the following extend in `.eslintrc.js`:
|
|
|
93
112
|
module.exports = {
|
|
94
113
|
extends: [
|
|
95
114
|
'@bitfactory/eslint-config/vue',
|
|
115
|
+
'plugin:vue/vue3-recommended',
|
|
116
|
+
'@vue/typescript/recommended',
|
|
96
117
|
'@bitfactory/eslint-config/typescript',
|
|
97
118
|
],
|
|
98
119
|
};
|