Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@debitoor/eslint-config-debitoor

Package Overview
Dependencies
Maintainers
34
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@debitoor/eslint-config-debitoor

Defines global linting rules for all debitoor projects

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
34
Created
Source

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

FAQs

Package last updated on 11 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc