@backtrack/preset-style

backtrack preset for linting / styling node applications

Usage no npm install needed!

<script type="module">
  import backtrackPresetStyle from 'https://cdn.skypack.dev/@backtrack/preset-style';
</script>

README

@backtrack/preset-style

npm Linux Build Status Windows Build Status Code Coverage

About

backtrack preset that adds linting and formatting to your project.

Features

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,
            },
        ],
    ],
};