@fullstacksjs/eslint-config 8.6.0 → 8.7.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.
package/cypress.js CHANGED
@@ -2,7 +2,7 @@
2
2
  module.exports = {
3
3
  overrides: [
4
4
  {
5
- files: ['**/cypress/**/*.js', '**/cypress/**/*.ts'],
5
+ files: ['**/cypress/**/*.+(js|jsx)', '**/cypress/**/*.+(ts|tsx)'],
6
6
  plugins: ['cypress'],
7
7
  env: {
8
8
  'cypress/globals': true,
package/index.js CHANGED
@@ -13,7 +13,7 @@ module.exports = {
13
13
  extends: [
14
14
  require.resolve('./base'),
15
15
  require.resolve('./storybook'),
16
- packages.ifAnyDep('jest', () => require.resolve('./jest')),
16
+ require.resolve('./jest'),
17
17
  packages.ifAnyDep('react', () => require.resolve('./react')),
18
18
  packages.ifAnyDep('typescript', () => require.resolve('./typescript')),
19
19
  packages.ifAnyDep('cypress', () => require.resolve('./cypress')),
package/jest.js CHANGED
@@ -1,11 +1,11 @@
1
- const exts = '(js|jsx|ts|tsx)';
2
- const dirs = '(test|tests|__test__|__tests__|spec|specs)';
1
+ const exts = '+(js|jsx|ts|tsx)';
2
+ const dirs = '+(test|tests|__test__|__tests__|spec|specs)';
3
3
 
4
4
  /** @type { import('eslint').Linter.Config } */
5
5
  module.exports = {
6
6
  overrides: [
7
7
  {
8
- files: [`**/${dirs}/**/*.${exts}`, `**/**/*.(spec|test).${exts}`],
8
+ files: [`**/${dirs}/**/*.${exts}`, `**/**/*.+(spec|test).${exts}`],
9
9
  plugins: ['jest', 'jest-formatting'],
10
10
  env: {
11
11
  'jest/globals': true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "8.6.0",
3
+ "version": "8.7.2",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
package/rules/jest.js CHANGED
@@ -65,5 +65,6 @@ module.exports = {
65
65
 
66
66
  // conflicts
67
67
  '@typescript-eslint/unbound-method': 'off',
68
+ 'fp/no-let': 'off',
68
69
  },
69
70
  };
@@ -91,7 +91,7 @@ module.exports = {
91
91
  '@typescript-eslint/no-empty-interface': 'off', // Annoying with auto-fix on save.
92
92
  '@typescript-eslint/no-explicit-any': 'off',
93
93
  '@typescript-eslint/no-extra-non-null-assertion': 'error',
94
- '@typescript-eslint/no-extraneous-class': 'error',
94
+ '@typescript-eslint/no-extraneous-class': ['warn', { allowWithDecorator: true }],
95
95
  '@typescript-eslint/no-inferrable-types': 'off',
96
96
  '@typescript-eslint/no-invalid-this': ['error', { capIsConstructor: false }],
97
97
  '@typescript-eslint/no-invalid-void-type': 'error',
package/storybook.js CHANGED
@@ -3,7 +3,7 @@ module.exports = {
3
3
  overrides: [
4
4
  {
5
5
  plugins: ['storybook'],
6
- files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'],
6
+ files: ['*.stories.+(ts|tsx|js|jsx|mjs|cjs)', '*.story.+(ts|tsx|js|jsx|mjs|cjs)'],
7
7
  extends: ['./rules/storybook.js'],
8
8
  },
9
9
  ],