Skip to content

jitesoft/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7daaebf · Mar 24, 2024
Jul 24, 2021
Apr 13, 2019
May 1, 2023
Mar 24, 2022
Apr 13, 2019
Feb 25, 2020
May 27, 2021
Nov 13, 2021
Aug 1, 2020
Feb 8, 2021
May 27, 2021
Mar 24, 2024
Mar 24, 2024

Repository files navigation

@jitesoft/eslint-config

npm (scoped) Known Vulnerabilities npm Back project

Semi-standard shareable config to make it easier to modify by Jitesoft organization.

Installation:

npm i --save-dev @jitesoft/eslint-config

yarn add --dev @jitesoft/eslint-config

Configurations

There are four configurations available:

default, node, browser, jsx and jest.

As expected, the Node and Browser configurations are set to use globals for the environment. The default configuration is a mixed node/web configuration, while the jest configuration is created for code which uses the jest test framework.

Usage

To extend the base/default config, just use the scoped name as such:

{
  "extends": "@jitesoft"  
}

To be able to use the other configurations, the whole name have to be included:

{
  "extends": "@jitesoft/eslint-config/jest"
}

QA

Q:
Why?

A:
For an organization it's easier to keep a bundle of configurations than using a million little packages in each package.json file. This package contains all the standards used by Jitesoft.
Further more, if we wish to change any rules, it's a lot easier to do that in our own package than propagate it through settings files in all repositories!

Q:
Why hard versions in the package.json file?

A:
To make sure that all the packages are in the exact version that we thought they where at each publish, the versions of the sub-packages have been set to exact versions. It's hard to test and make sure that everything works as intended in case some users use later or earlier versions (even if it is patch versions!) without knowing.

Q:
Why semistandard and not just standard?!

A:
Cause semicolon is best. Thats why!

Q:
Why spaces instead of tabs?!

A:
....