Neoclassical Programming Multitude

    @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

    Keywords

    none

    Install

    npm i @debitoor/eslint-config-debitoor

    DownloadsWeekly Downloads

    373

    Version

    3.1.0

    License

    ISC

    Unpacked Size

    4.2 kB

    Total Files

    3

    Last publish

    Collaborators

    • sumup-yonatankarp
    • dzmitry.h.sumup
    • mmahrous
    • jmrigali
    • maciej-kusnierz
    • mariusrosand
    • skryvytskyi_sumup
    • oalpatov
    • bgeraymovich
    • bifrost
    • mpushkin
    • debitoor-bot
    • mamant
    • hilleer
    • s0ph1e
    • sumup.vascofg
    • jonathanmh
    • igor_torba
    • plafytskyi
    • igor.g
    • ituraj
    • eugene-ltv-debitoor
    • lshilo
    • hamoudaarfaoui
    • ziegelke
    • soulmonk
    • ketevanl
    • andriyonyshchenko
    • belrestro
    • robinmetral
    • connor_baer
    • balexandre
    • julia-sa
    • alex.12345
    • belem-acosta
    • mickael-h
    • annewarnk1
    • felixjung
    • oarostovtseva
    • amelako
    • mcntsh
    • msafwat-sumup
    • ketansumup
    • zetxek
    • nikolajgu