/eslint-config-ns-ts

ESLint config ready to be used in multiple projects. Based on Airbnb's code style with prettier, jest and react support for Typescript.

Primary LanguageJavaScriptMIT LicenseMIT

eslint-config-ns-ts

npm version GitHub license Commitizen friendly

ATTENTION

This repository was merged with https://github.com/natterstefan/eslint-config-ns and will be developed there in the future.


Lint your typescript projects with ease, based on the popular javascript code style from Airbnb and enhanced with typescript specific rules. This config extends my other config eslint-config-ns.

Features

Installation

The default export contains default Airbnb ESLint rules, and some additional rules (see assumptions). It requires some peerDependencies as well.

Install the package with

npm install eslint-config-ns-ts --save-dev

# or
yarn add eslint-config-ns-ts -D

Then install the correct versions of each peerDependency package, which are listed by the command:

npm info "eslint-config-ns-ts@latest" peerDependencies

If using npm 5+, use this shortcut:

npx install-peerdeps --dev eslint-config-ns-ts

# or
yarn add eslint-config-ns-ts -D --peer

Usage

Now add the config to either your package.json:

{
  "eslintConfig": {
    "extends": "eslint-config-ns-ts"
  }
}

to your .eslintrc:

{
  "extends": "eslint-config-ns-ts"
}

or .eslintrc.js:

module.exports = {
  extends: 'eslint-config-ns-ts',
}

Assumptions

This ESLint configuration comes with the same fundamental assumptions, as eslint-config-ns.

Versioning

This package DOES NOT use SemVer for versioning. Though you can think about SemVer when reading the version, except the major and minor version follows the one of eslint-config-ns. For the versions available, see the tags on this repository.

LICENCE

MIT

Maintainers


Stefan Natter