@kununu/eslint-config 5.3.0-beta-3 → 5.3.0-beta-5

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 +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -214,7 +214,6 @@ module.exports = {
214
214
  'plugin:prettier/recommended',
215
215
  'plugin:react-hooks/recommended',
216
216
  'plugin:testing-library/react',
217
- 'plugin:@shopify/prefer-early-return',
218
217
  ],
219
218
 
220
219
  parser: '@babel/eslint-parser',
@@ -223,6 +222,7 @@ module.exports = {
223
222
  '@babel',
224
223
  'lodash',
225
224
  'sort-destructure-keys',
225
+ '@shopify',
226
226
  ],
227
227
 
228
228
  env: {
@@ -232,7 +232,10 @@ module.exports = {
232
232
  es6: true,
233
233
  },
234
234
 
235
- rules: baseRules,
235
+ rules: {
236
+ ...baseRules,
237
+ '@shopify/prefer-early-return': 'error',
238
+ },
236
239
 
237
240
  overrides: [{
238
241
  files: [
@@ -270,6 +273,7 @@ module.exports = {
270
273
  '**/stories.tsx',
271
274
  ],
272
275
  }],
276
+ '@shopify/prefer-early-return': 'error',
273
277
  },
274
278
  overrides: [
275
279
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kununu/eslint-config",
3
- "version": "5.3.0-beta-3",
3
+ "version": "5.3.0-beta-5",
4
4
  "description": "kununu's ESLint config",
5
5
  "main": "index.js",
6
6
  "repository": "kununu/eslint-config",