@bitfactory/eslint-config 1.3.3 → 1.3.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 CHANGED
@@ -85,7 +85,7 @@ module.exports = {
85
85
  To use this config with a TypeScript project also install the following packages
86
86
 
87
87
  ```shell
88
- npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin --save-dev --save-exact
88
+ npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import --save-dev --save-exact
89
89
  ```
90
90
 
91
91
  And set the following extend in `.eslintrc.js`:
@@ -103,7 +103,7 @@ module.exports = {
103
103
  To use this config with a Vue.js, TypeScript and regular JavaScript project also install the following packages
104
104
 
105
105
  ```shell
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
106
+ npm install eslint-plugin-vue eslint-plugin-vuejs-accessibility @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import @vue/eslint-config-typescript --save-dev --save-exact
107
107
  ```
108
108
 
109
109
  And set the following extend in `.eslintrc.js`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitfactory/eslint-config",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "ESLint sharable config for Bitfactory projects",
5
5
  "keywords": [
6
6
  "eslint",
package/typescript.js CHANGED
@@ -14,6 +14,9 @@ module.exports = {
14
14
  parser: '@typescript-eslint/parser',
15
15
  },
16
16
  ],
17
+ plugins: [
18
+ 'import',
19
+ ],
17
20
  rules: {
18
21
  '@typescript-eslint/consistent-type-imports': [
19
22
  'warn',
@@ -23,5 +26,7 @@ module.exports = {
23
26
  },
24
27
  ],
25
28
  '@typescript-eslint/member-delimiter-style': 'error',
29
+ 'import/no-duplicates': ['error'],
30
+ 'no-duplicate-imports': 'off',
26
31
  },
27
32
  };