@kununu/eslint-config 5.0.0-beta.8 → 5.0.0

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 +8 -15
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -147,6 +147,7 @@ const baseRules = {
147
147
 
148
148
  // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/function-component-definition.md
149
149
  'react/function-component-definition': 'off',
150
+ 'react/react-in-jsx-scope': 'off',
150
151
  'prefer-promise-reject-errors': 'off',
151
152
  'no-restricted-exports': 'off',
152
153
 
@@ -196,7 +197,7 @@ const baseRules = {
196
197
  ],
197
198
  'pathGroupsExcludedImportTypes': ['react']
198
199
  }
199
- ]
200
+ ],
200
201
  };
201
202
 
202
203
  module.exports = {
@@ -206,14 +207,14 @@ module.exports = {
206
207
  'plugin:import/errors',
207
208
  'plugin:jest-dom/recommended',
208
209
  'plugin:prettier/recommended',
209
- 'plugin:testing-library/react'
210
+ 'plugin:react-hooks/recommended',
211
+ 'plugin:testing-library/react',
210
212
  ],
211
213
 
212
214
  parser: '@babel/eslint-parser',
213
215
 
214
216
  plugins: [
215
217
  '@babel',
216
- 'react-hooks',
217
218
  'sort-destructure-keys'
218
219
  ],
219
220
 
@@ -266,25 +267,17 @@ module.exports = {
266
267
  },
267
268
  overrides: [
268
269
  {
269
- files: ['*.spec.ts', '*.spec.tsx'],
270
- rules: {
271
- 'global-require': 'off',
272
- 'jsx-a11y/anchor-is-valid': 'off',
273
- },
274
- },
275
- {
276
- files: ['**/stories.tsx'],
270
+ files: ['**/stories.tsx', '*.spec.ts', '*.spec.tsx'],
277
271
  rules: {
278
- '@typescript-eslint/no-explicit-any': 'error',
272
+ '@typescript-eslint/no-explicit-any': 'off',
279
273
  },
280
- },
274
+ }
281
275
  ],
282
276
  }, {
283
- files: ['*.spec.js', '*.spec.jsx'],
277
+ files: ['*.spec.js', '*.spec.jsx', '*.spec.ts', '*.spec.tsx'],
284
278
  rules: {
285
279
  'global-require': 'off',
286
280
  'jsx-a11y/anchor-is-valid': 'off',
287
- 'import/no-extraneous-dependencies': 'off',
288
281
  },
289
282
  }, {
290
283
  files: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kununu/eslint-config",
3
- "version": "5.0.0-beta.8",
3
+ "version": "5.0.0",
4
4
  "description": "kununu's ESLint config",
5
5
  "main": "index.js",
6
6
  "repository": "kununu/eslint-config",