Nauseating Pumpkin Mush

    @equisoft/eslint-config-typescript

    3.0.1 • Public • Published

    Equisoft's ESLint configuration

    This project hosts Equisoft's ESLint configuration for TypeScript. It is versatile enough to be used with NodeJS or Web projects.

    When using frameworks or libraries, you can augment it with the use of flavors, such as @equisoft/eslint-config-typescript-react.

    Versioning

    The versioning of this project respects semver. That means your project's package.json can caret (^) import it.

    Installation

    Install the libraries in your project:

    yarn add --dev @equisoft/eslint-config-typescript eslint

    Then create a .eslintrc.json file that uses Equisoft's configuration:

    {
      "extends": ["@equisoft/eslint-config-typescript"]
    }

    Finally create a script in your package.json to easily run ESLint:

    {
      "scripts": {
        "eslint": "eslint . --ext .js,.jsx,.ts,.tsx",
        "eslint:ci": "yarn eslint --format junit -o build/tests/eslint/junit.xml"
      }
    }

    Now you can use yarn eslint to validate the code style of your TypeScript files!

    Continuous Integration

    We strongly suggest that you enforce code style checks on your CI. For example, on CircleCI you can add a configuration similar to this one to your .circleci/config.yml:

    eslint:
      executor: 'node'
      steps:
        - run: 'mkdir -p build/tests/eslint/'
        - run: 'yarn eslint:ci'
        - store_test_results:
            path: 'build/tests'

    Migrating an existing codebase

    ESLint supports exclusion of globs in .eslintignore. One way to gradually migrate a legacy code base to this configuration is to exclude all source files and add conforming files one at a time. To achieve this, add this to your .eslintignore:

    src/**/*.js
    !src/contacts/**/*.js
    

    Note how an entry prefixed by ! is added to re-include some source files.

    For more information on this technique, you can read the ESLint documentation.

    Install

    npm i @equisoft/eslint-config-typescript

    DownloadsWeekly Downloads

    394

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    5.49 kB

    Total Files

    4

    Last publish

    Collaborators

    • faroukhoumaidi
    • mcantinequi
    • christopherviel
    • jsgarneau
    • kbeaulieu
    • toby-daigle
    • kronostechnologies-build
    • etremblay
    • larrymatte
    • meriouma
    • agauthier