eslint-config-heck

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

Installation

npm install --save-dev eslint 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:

~~~js
{
    import nodeWithBiome from "eslint-config-heck/nodeWithBiome";

    export default {
        ...nodeWithBiome,
    };
}

If you are using Biome you can also extend your Biome config with the "biomeLinting.json":

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