@bitfactory/eslint-config 1.2.2 → 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.
Files changed (2) hide show
  1. package/README.md +22 -1
  2. package/package.json +2 -2
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitfactory/eslint-config",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "ESLint sharable config for Bitfactory projects",
5
5
  "keywords": [
6
6
  "eslint",
@@ -34,7 +34,7 @@
34
34
  "peerDependencies": {
35
35
  "@babel/core": "^7.0.0",
36
36
  "@babel/eslint-parser": "^7.0.0",
37
- "eslint": "^7.0.0",
37
+ "eslint": "^8.0.0",
38
38
  "eslint-plugin-jsdoc": ">=39.0.0",
39
39
  "eslint-plugin-unicorn": ">=42.0.0"
40
40
  }