3.0.6 • Published 3 months ago

@equisoft/eslint-config v3.0.6

Weekly downloads
173
License
MIT
Repository
github
Last release
3 months ago

Equisoft's ESLint configuration

This project hosts Equisoft's ESLint configuration. 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-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 eslint

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

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

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

{
  "scripts": {
    "eslint": "eslint src",
    "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 Javascript 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.

3.0.6

3 months ago

3.0.4

3 months ago

3.0.5

3 months ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.0-SNAPSHOT.1

2 years ago

3.0.0-SNAPSHOT.3

2 years ago

3.0.0-SNAPSHOT.2

2 years ago

3.0.1

2 years ago

3.0.2-SNAPSHOT.0

2 years ago

3.0.0

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

2.0.0-alpha.11

4 years ago

2.0.0-alpha.7

4 years ago

2.0.0-alpha.8

4 years ago

2.0.0-alpha.9

4 years ago

2.0.0-alpha.10

4 years ago

2.0.0-alpha.6

4 years ago

2.0.0-alpha.5

4 years ago

2.0.0-alpha.4

4 years ago

2.0.0-alpha.3

4 years ago

2.0.0-alpha.2

4 years ago

2.0.0-alpha.0

4 years ago

2.0.0-alpha.1

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago