shared-dx

My custom shareable eslint configs...

MIT License

Downloads
1.1K
Stars
4
Committers
4

Bot releases are hidden (Show)

shared-dx - @belgattitude/[email protected]

Published by belgattitude 10 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Minor Changes

  • #465 4f26b88 Thanks @belgattitude! - Disable eslint-plugin-import sort

    In preparation for dprint support, you must now opt-in for import/export sort.

    module.exports = {
      // for brevity
      extends: [
        // Group 1: recommended always
        '@belgattitude/eslint-config-bases/typescript',
        '@belgattitude/eslint-config-bases/simple-import-sort',
        // ...rest
      ],
    };
    

    Note that the eslint-plugin-import has been changed to simple-import-sort
    internally. Expect to relint your codebase.

    This change bring some speedups. In a next release those rules can be opt-out
    easily in favour of dprint, biome... which does as faster job (stylistic)

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Patch Changes

  • 2c5dee3 - Latest typescript 6.13.1 to fix jsdoc
shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Minor Changes

Patch Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Patch Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Patch Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Major Changes

Minor Changes

  • #427 309e441 Thanks @belgattitude! - Export a dedicated performance group

        // Group 4: Performance related (ie: set vs includes...)
        "@belgattitude/eslint-config-bases/performance",
    
shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Patch Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 11 months ago

shared-dx - @belgattitude/[email protected]

Published by belgattitude 12 months ago

Minor Changes

  • #404 8e6175e Thanks @belgattitude! - Adapt perfectionist rules and add jsx as optional

    module.exports = {
      overrides: [
        {
          extends: ['plugin:perfectionist/recommended-natural'],
          files: ['*.js', '*.cjs', '*.mjs', '*.ts'],
          rules: {
            // import/order is used
            'perfectionist/sort-named-imports': 'off',
            'perfectionist/sort-imports': 'off',
            // Keep at false as it can create issue when code relies on keys order
            'perfectionist/sort-maps': 'off',
            // Keep at false as cause it does not work with class properties
            'perfectionist/sort-classes': 'off',
            // Keep at false as it can create issue when code relies on keys order
            'perfectionist/sort-objects': 'off',
            // Keep at false as it can create issue when code relies on keys order
            'perfectionist/sort-union-types': 'off',
            // May introduce performance degradation
            'perfectionist/sort-array-includes': 'off',
            'perfectionist/sort-jsx-props': 'off',
          },
        },
      ],
    };
    
shared-dx - @belgattitude/[email protected]

Published by belgattitude 12 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 12 months ago

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 12 months ago

Major Changes

  • 2ad81c0 Thanks @belgattitude! - Drop support for prettier 2 (only prettier 3 is supported)

  • 2ad81c0 Thanks @belgattitude! - Drop support for typescript < 5.0.2

  • aff1796 Thanks @belgattitude! - Allow @tanstack/eslint-plugin-query dep to be "^4.36.1 || ^5.0.5".
    If you experience issue with your package manager (ie: yarn will automatically install
    the highest version rather than the stable one), you can always force the resolution:

    {
      "resolutions": {
        "eslint-plugin-react-hooks": "^4.36.1"
      }
    }
    

    This is a temporary solution to not have to declare the plugin as a peerDependency for now.
    (eslint flat config will help in the future)

  • 2ad81c0 Thanks @belgattitude! - Allow eslint-plugin-react-hooks dep to be "^4.6.0 || 5.0.0-canary-7118f5dd7-20230705".
    If you experience issue with your package manager (ie: yarn will automatically install
    the canary version rather than the stable one), you can always force the resolution:

    {
      "resolutions?": {
        "eslint-plugin-react-hooks": "https://github.com/vercel/next.js/issues/52365"
      },
      "resolutions": {
        "eslint-plugin-react-hooks": "^4.6.0"
      }
    }
    

    This change was made to accommodate usage with nextjs latest versions (based on react canaries)

    See also https://github.com/vercel/next.js/issues/52365

    This is a temporary solution to not have to declare the plugin as a peerDependency for now.
    (eslint flat config will help in the future)

Minor Changes

shared-dx - @belgattitude/[email protected]

Published by belgattitude 12 months ago

Minor Changes