@kununu/eslint-config 2.2.0 → 2.2.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.js +10 -19
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -3,16 +3,18 @@
3
3
  const baseRules = {
4
4
  'import/no-extraneous-dependencies': ['error', {
5
5
  devDependencies: [
6
- '**/*.test.js',
7
- '**/*.test.jsx',
8
6
  '**/*.spec.js',
9
7
  '**/*.spec.jsx',
8
+ '**/*.test.js',
9
+ '**/*.test.jsx',
10
+ '**/stories.jsx',
10
11
  '*/test-*/*.js',
11
12
  '*/test-*/*.jsx',
12
13
  'config/**/*.js',
13
- 'next.config.js',
14
+ 'jest.setup.js',
14
15
  'jestsetup.js',
15
- 'mockBff/*'
16
+ 'mockBff/*',
17
+ 'next.config.js',
16
18
  ],
17
19
  }],
18
20
  'max-len': 'off', // Sometimes longer lines are more readable (Airbnb rule change)
@@ -185,12 +187,6 @@ module.exports = {
185
187
  es6: true,
186
188
  },
187
189
 
188
- settings: {
189
- 'import/resolver': {
190
- node: { paths: (process.env.NODE_PATH || '').split(':').filter(String) } // If ENV['NODE_PATH'] was provided we want to use it with eslint too
191
- }
192
- },
193
-
194
190
  rules: baseRules,
195
191
 
196
192
  overrides: [{
@@ -212,28 +208,23 @@ module.exports = {
212
208
  ],
213
209
  rules: {
214
210
  ...baseRules,
215
- 'no-undef': 'off',
216
211
  'indent': 'off',
217
212
  '@typescript-eslint/indent': ['error', 2],
213
+ 'object-curly-spacing': 'off',
218
214
  '@typescript-eslint/object-curly-spacing': ['error', 'never'],
215
+ 'space-before-function-paren': 'off',
219
216
  '@typescript-eslint/space-before-function-paren': ['error', 'always'],
220
217
  '@typescript-eslint/no-var-requires': 'off',
221
218
  '@typescript-eslint/no-explicit-any': 'off',
219
+ 'no-use-before-define': 'off',
222
220
  '@typescript-eslint/no-use-before-define': ['error'],
223
221
  'react/require-default-props': 'off',
224
222
  'react/prop-types': 'off',
225
- 'react/jsx-filename-extension': [
226
- 2,
227
- {'extensions': ['.jsx', '.tsx']}
228
- ],
229
223
  'import/no-extraneous-dependencies': ['error', {
230
224
  devDependencies: [
231
- '**/*.test.ts',
232
- '**/*.test.tsx',
233
225
  '**/*.spec.ts',
234
226
  '**/*.spec.tsx',
235
- '*/test-*/*.ts',
236
- '*/test-*/*.tsx',
227
+ '**/stories.tsx',
237
228
  ],
238
229
  }],
239
230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kununu/eslint-config",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "kununu's ESLint config",
5
5
  "main": "index.js",
6
6
  "repository": "kununu/javascript",
@@ -24,16 +24,16 @@
24
24
  "@babel/eslint-plugin": "7.14.5",
25
25
  "@typescript-eslint/eslint-plugin": "5.5.0",
26
26
  "@typescript-eslint/parser": "5.5.0",
27
- "eslint": "8.3.0",
28
- "eslint-config-airbnb": "19.0.1",
29
- "eslint-config-airbnb-typescript": "16.0.0",
27
+ "eslint": "8.4.0",
28
+ "eslint-config-airbnb": "19.0.2",
29
+ "eslint-config-airbnb-typescript": "16.1.0",
30
30
  "eslint-import-resolver-alias": "1.1.2",
31
31
  "eslint-plugin-import": "2.25.3",
32
32
  "eslint-plugin-jest-dom": "3.9.2",
33
33
  "eslint-plugin-jsx-a11y": "6.5.1",
34
34
  "eslint-plugin-react": "7.27.1",
35
35
  "eslint-plugin-react-hooks": "4.3.0",
36
- "eslint-plugin-testing-library": "5.0.0",
36
+ "eslint-plugin-testing-library": "5.0.1",
37
37
  "typescript": "4.5.2"
38
38
  }
39
39
  }