@debitoor/eslint-config-debitoor

3.1.0 • Public • Published

eslint-config-debitoor

npm version Build Status

Defines global linting rules for all debitoor projects

Usage

npm i -DE mocha-eslint  @debitoor/eslint-config-debitoor
echo "require('mocha-eslint')(['.']);" > test/eslint.spec.js
echo "module.exports = {'extends': '@debitoor/eslint-config-debitoor'};" > .eslintrc.js
git add test/eslint.spec.js .eslintrc.js

or add a .eslintrc.js file in the root of your project and extended it with the default config:

module.exports = {
  'extends': '@debitoor/eslint-config-debitoor'
};

If you are using babel, you need to add 'parser': 'babel-eslint' to .eslintrc.js:

module.exports = {
  extends: '@debitoor/eslint-config-debitoor',
  parser: 'babel-eslint'
};

Add tests

Install mocha-eslint:

npm install -DE mocha-eslint

and add a spec file eslint.spec.js in your test folder where you indicate which folders should be checked for linting:

require('mocha-eslint')(['.']);

or

require('mocha-eslint')([
	'config',
	'source',
	'test'
]);

Fixing eslint errors automatically (if possible)

./node_modules/.bin/eslint . --fix

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.0412latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.0412
3.0.223
3.0.10
3.0.00
2.4.05
2.3.02
2.2.01
2.1.01
2.0.13
2.0.00
1.7.03
1.6.03
1.5.01
1.4.01
1.3.01
1.2.02
1.1.00
1.0.41
1.0.30
1.0.20
1.0.11

Package Sidebar

Install

npm i @debitoor/eslint-config-debitoor

Weekly Downloads

460

Version

3.1.0

License

ISC

Unpacked Size

4.2 kB

Total Files

3

Last publish

Collaborators

  • debitoor-bot
  • mamant
  • hilleer
  • zaaom
  • s0ph1e
  • oalpatov
  • maciej-kusnierz
  • sumup.vascofg
  • igor_torba
  • igor.g
  • moustafa-sumup
  • belrestro
  • connor_baer
  • felixjung
  • oarostovtseva
  • ketansumup
  • zetxek
  • mmahrous
  • jonathanmh
  • talar.boyadjian
  • filipecorrea
  • andrei-at-sumup
  • andriimykhailovsumup
  • david-sumup
  • mtlarva
  • dzmitry.h.sumup
  • silchenko-sumup
  • shadowmaru
  • r0g14