@shelf/eslint-config 3.11.2 → 3.13.2

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.
@@ -9,6 +9,7 @@ const {
9
9
  const consistentTypeImports = require('./rules/consistent-type-imports.json');
10
10
  const frontendConfig = require('./frontend');
11
11
  const typescriptRules = require('./rules/typescript');
12
+ const youDontNeedLodashRules = require('./rules/you-dont-need-lodash.json');
12
13
 
13
14
  module.exports = {
14
15
  extends: ['./frontend.js', ...commonExtends, 'plugin:you-dont-need-lodash-underscore/compatible'],
@@ -32,7 +33,6 @@ module.exports = {
32
33
  },
33
34
  ],
34
35
  ...consistentTypeImports,
35
- 'you-dont-need-lodash-underscore/get': 'error',
36
36
  // it fail to compile TS on react static class properties (displayName | defaultProps | etc..)
37
37
  '@typescript-eslint/explicit-member-accessibility': 0,
38
38
  '@typescript-eslint/consistent-type-assertions': 'warn',
@@ -40,6 +40,7 @@ module.exports = {
40
40
  '@typescript-eslint/no-empty-function': 'off',
41
41
  ...typescriptRules,
42
42
  '@typescript-eslint/no-unused-vars': ['error', {ignoreRestSiblings: true}],
43
+ ...youDontNeedLodashRules,
43
44
  },
44
45
  overrides: [
45
46
  allowRequireInConfigs,
package/frontend.js CHANGED
@@ -37,9 +37,6 @@ module.exports = {
37
37
  'sonarjs/cognitive-complexity': ['error', 18],
38
38
  'multiline-comment-style': 'off',
39
39
  'no-unreachable': 'error',
40
- 'react/react-in-jsx-scope': "off",
41
- "no-restricted-imports": [1, {
42
- "patterns": ["@shelf/*/lib/*"]
43
- }]
40
+ 'react/react-in-jsx-scope': "off"
44
41
  },
45
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shelf/eslint-config",
3
- "version": "3.11.2",
3
+ "version": "3.13.2",
4
4
  "description": "ESLint Config for Shelf Projects",
5
5
  "license": "MIT",
6
6
  "repository": "shelfio/eslint-config",