Package detail

@yamato-daiwa/style_guides

TokugawaTakeshi582MIT0.11.2

Strict guidelines for ESLint and Pug.

eslint, eslintconfig, puglint, puglintconfig

readme

Yamato Daiwa Style Guides

Main Visual of "@yamato-daiwa/style_guides", the npm package

The strict style guides for the high quality development with TypeScript and Pug.

Includes:

Installation

npm i @yamato-daiwa/style_guides -D -E

Usage

Extending of ESLint preset

CommonJS
const YamatoDaiwaStyleGuides = require("@yamato-daiwa/style_guides/ECMAScript");


module.exports = [
  ...YamatoDaiwaStyleGuides
];
ES Modules
import YamatoDaiwaStyleGuides from "@yamato-daiwa/style_guides/ECMAScript";


export default [
  ...YamatoDaiwaStyleGuides
];

Extending of pug-lint preset

For the .pug-lintrc case, it will be:

{
  "extends": "./node_modules/@yamato-daiwa/style_guides/Markup.js"
}

Depending on the project building tool, the excluding of node_modules may require.

{
  "extends": "./node_modules/@yamato-daiwa/style_guides/Markup.js",
  "excludeFiles": [ "node_modules/**" ]
}