@mikey-pro/eslint-config 7.0.3 → 7.0.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/index.js +18 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -14,6 +14,7 @@ module.exports = {
14
14
  'plugin:compat/recommended',
15
15
  'plugin:css-modules/recommended',
16
16
  'plugin:prettier/recommended',
17
+ 'plugin:import/recommended',
17
18
  ],
18
19
  ignorePatterns: [
19
20
  '**/dist/**/*',
@@ -37,6 +38,7 @@ module.exports = {
37
38
  extends: [
38
39
  'plugin:@typescript-eslint/recommended',
39
40
  'plugin:@typescript-eslint/recommended-requiring-type-checking',
41
+ 'plugin:import/typescript',
40
42
  ],
41
43
  files: ['*.ts', '*.tsx'],
42
44
  parser: '@typescript-eslint/parser',
@@ -54,13 +56,19 @@ module.exports = {
54
56
  rules: {
55
57
  '@typescript-eslint/unbound-method': 0,
56
58
  '@typescript-eslint/naming-convention': 0,
57
- 'import/default': 0,
58
- 'import/named': 0,
59
- 'import/namespace': 0,
60
- 'import/no-named-as-default-member': 0,
61
- 'import/no-unresolved': 0,
59
+
62
60
  'prettier/prettier': [1, { parser: 'typescript' }],
63
61
  },
62
+ settings: {
63
+ 'import/parsers': {
64
+ '@typescript-eslint/parser': ['.ts', '.tsx'],
65
+ },
66
+ 'import/resolver': {
67
+ typescript: {
68
+ alwaysTryTypes: true,
69
+ },
70
+ },
71
+ },
64
72
  },
65
73
  {
66
74
  files: ['*.css'],
@@ -186,6 +194,7 @@ module.exports = {
186
194
  'unicorn',
187
195
  'only-warn',
188
196
  '@cypress/json',
197
+ 'import',
189
198
  ],
190
199
  root: true,
191
200
  rules: {
@@ -196,6 +205,10 @@ module.exports = {
196
205
  'func-names': 0,
197
206
  'import/extensions': [1, 'never', { ignorePackages: true }],
198
207
  'import/no-commonjs': 0,
208
+ 'import/default': 0,
209
+ 'import/named': 0,
210
+ 'import/namespace': 0,
211
+ 'import/no-named-as-default-member': 0,
199
212
  'import/no-unresolved': [
200
213
  1,
201
214
  { amd: true, commonjs: true, ignore: ['^node:'] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "7.0.3",
3
+ "version": "7.0.4",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.js",
6
6
  "dependencies": {