3.1.0 • Published 6 years ago
@debitoor/eslint-config-debitoor v3.1.0
eslint-config-debitoor
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.jsor 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-eslintand 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 . --fix3.1.0
6 years ago
3.0.2
7 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.4.0
8 years ago
2.3.0
8 years ago
2.2.0
8 years ago
2.1.0
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.7.0
8 years ago
1.6.0
8 years ago
1.5.0
9 years ago
1.4.0
9 years ago
1.3.0
9 years ago
1.2.0
9 years ago
1.1.0
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago