GithubHelp home page GithubHelp logo

isabella232 / eslint-config-debitoor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from debitoor/eslint-config-debitoor

0.0 0.0 0.0 104 KB

ESLint configuration for Debitoor

Home Page: https://www.npmjs.com/package/@debitoor/eslint-config-debitoor

JavaScript 100.00%

eslint-config-debitoor's Introduction

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

eslint-config-debitoor's People

Contributors

jonatanpedersen avatar eagleeye avatar hilleer avatar oligrand avatar ebdrup avatar bobhammer avatar strafe89 avatar philipshurpik avatar mpushkin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.