JSPM

  • Created
  • Published
  • Downloads 47
  • Score
    100M100P100Q83265F
  • License MIT

Contains an ESLint configuration for ES2015+, TypeScript, and React.

Package Exports

    Readme

    eslint-config-heck

    eslint-config-heck contains an ESLint configuration for ES2015+, TypeScript, and React.

    Installation

    npm install --save-dev eslint@9 eslint-config-heck

    Usage

    To use one of the included configurations, create a eslint.config.js and import the configuration you want to use.

    For a Node.js project use:

    {
        import node from "eslint-config-heck/node";
    
        export default {
            ...node,
        };
    }

    Extensions

    Complexity

    Optionally you can enable some complexity rules by using the complexity configuration in addition to the node configuration:

    {
        import node from "eslint-config-heck/node";
        import complexity from "eslint-config-heck/complexity";
    
        export default {
            ...node,
            ...complexity,
        };
    }

    Group imports

    Optionally you can switch to another import sorting rule, which groups the imports by type and supports auto fixing. You can enable this rule by adding the groupImports configuration in addition to the node configuration:

    {
        import node from "eslint-config-heck/node";
        import groupImports from "eslint-config-heck/groupImports";
    
        export default {
            ...node,
            ...groupImports,
        };
    }

    React Native

    If you are using react-native, you can enable react-native specific rules:

    {
        import node from "eslint-config-heck/node";
        import reactNative from "eslint-config-heck/reactNative";
        export default {
            ...node,
            ...reactNative,
        };
    }

    Rules with usage of Biome

    If you are using Biome you can use the "nodeWithBiome" configuration:

    {
        import nodeWithBiome from "eslint-config-heck/nodeWithBiome";
    
        export default {
            ...nodeWithBiome,
        };
    }

    If you are using Biome you can also extend your Biome config with the following Biome configurations:

    • JavaScript/TypeScript: biomeJsTs
    • CSS: biomeCss
    • JSON: biomeJson

    To enable all Biome rules, you can use the following configuration:

    {
        "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
        "extends": ["eslint-config-heck/biomeJsTs", "eslint-config-heck/biomeCss", "eslint-config-heck/biomeJson"],
    }