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
andprepublishOnly
linting git hooks
npm install --save-dev @backtrack/preset-style
// 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,
},
],
],
};