@talentsoft-opensource/eslint-config-talentsoft

1.0.0 • Public • Published

Talentsoft ESLint config

Version License

This package provides Talentsoft's base JS .eslintrc config as an extensible shared config. It is eslint@5+-compatible and actively maintained by Talentsoft.

Installation

  1. Install this config package and ESLint:

    $ yarn add --dev @talentsoft-opensource/eslint-config-talentsoft

    or if you use npm :

    $ npm install --save-dev @talentsoft-opensource/eslint-config-talentsoft

Usage

To consume and extend a config in ESLint just add the extends attribute to your .eslintrc.

For more details about how shareable configs work, see the ESLint documentation.

'extends': ['@talentsoft-opensource/eslint-config-talentsoft']

or if you use a yaml file

---
'extends':
  - '@talentsoft-opensource/eslint-config-talentsoft'

NOTE: Extending multiple complete configs can cause unexpected results.

Configurations

ESLint configuration is broken apart in ./rules containing ESLint's rules.

The full set of ESLint rules (./rules/eslint) are broken into categories that mirror ESLint's documentation. Under each rule type there are sets of configuration.

Examples
---
'extends':
  - '@talentsoft-opensource/eslint-config-talentsoft/rules/eslint/best-practices'
  - '@talentsoft-opensource/eslint-config-talentsoft/rules/eslint/es6'
  - '@talentsoft-opensource/eslint-config-talentsoft/rules/eslint/errors'
  - '@talentsoft-opensource/eslint-config-talentsoft/rules/eslint/style'
  - '@talentsoft-opensource/eslint-config-talentsoft/rules/eslint/variables'

License

Copyright (c) 2019-present, Talentsoft

MIT licensed.

Package Sidebar

Install

npm i @talentsoft-opensource/eslint-config-talentsoft

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

15 kB

Total Files

10

Last publish

Collaborators

  • scordonnier-ts
  • sbergot
  • avaleryts
  • mkehyayan