backtrack preset for linting / styling node applications
npm install @backtrack/preset-style



backtrack preset that adds linting and formatting to your project.
- Add prettier with customized options
- Add eslint with customized options
- Add pre-commit, pre-push and prepublishOnly linting git hooks
npm install --save-dev @backtrack/preset-style
``js
// backtrack.config.js
'use strict';
module.exports = {
presets: ['@backtrack/style'],
presets: [
[
'@backtrack/style',
{
/**
* Disallow unsupported javascript syntax targeting
* the node version in package.json engines
*
* default: false
*/
node: true,
/**
* Disable settings unnecessary in applications
*
* default: false
*/
isApp: true,
},
],
],
};
``