@interface-technologies/eslint-config 0.5.1 → 4.0.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.
Files changed (2) hide show
  1. package/index.cjs +14 -3
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -19,7 +19,7 @@ module.exports = {
19
19
  'prettier',
20
20
  ],
21
21
  plugins: ['promise', '@typescript-eslint', 'jest', 'jest-dom', 'testing-library'],
22
- ignorePatterns: ['*.js', '*.cjs', 'dist/'],
22
+ ignorePatterns: ['*.js', '*.cjs', '*.d.ts', 'dist/'],
23
23
  settings: {
24
24
  'import/resolver': {
25
25
  typescript: {},
@@ -59,6 +59,19 @@ module.exports = {
59
59
  'no-void': 'off',
60
60
  radix: 'off',
61
61
 
62
+ 'no-restricted-imports': [
63
+ 'error',
64
+ {
65
+ paths: [
66
+ {
67
+ name: 'react-router-dom',
68
+ importNames: ['useLocation'],
69
+ message: 'Use location from useReady instead.',
70
+ },
71
+ ],
72
+ },
73
+ ],
74
+
62
75
  '@typescript-eslint/explicit-function-return-type': [
63
76
  'warn',
64
77
  { allowExpressions: true },
@@ -102,9 +115,7 @@ module.exports = {
102
115
  '**/*.test.ts?(x)',
103
116
  '**/*.stories.ts?(x)',
104
117
  '**/__devHelpers__/**/*',
105
- '**/__DevHelpers__/**/*',
106
118
  '**/__testHelpers__/**/*',
107
- '**/__TestHelpers__/**/*',
108
119
  ],
109
120
  },
110
121
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interface-technologies/eslint-config",
3
- "version": "0.5.1",
3
+ "version": "4.0.1",
4
4
  "description": "ESLint config for projects using TypeScript and React.",
5
5
  "homepage": "https://github.com/srmagura/iti-react",
6
6
  "license": "MIT",