@backtrack/preset-style
v0.10.0
Published
backtrack preset for linting / styling node applications
Maintainers
Readme
@backtrack/preset-style
About
backtrack preset that adds linting and formatting to your project.
Features
- Add
prettierwith customized options - Add
eslintwith customized options - Add
pre-commit,pre-pushandprepublishOnlylinting git hooks
Installation
npm install --save-dev @backtrack/preset-style
Usage
// 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,
},
],
],
};