0.6.1 • Published 6 years ago

@alza54/eslint-config-jsdoc v0.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@alza54/eslint-config-jsdoc

shellcode.team Build Status shellcode-styleguide

Shareable configuration for eslint-plugin-jsdoc.

The main idea of this configuration is to be:

  1. Strict about syntax
  2. Permissive about types (because we use flow for type annotations)
  3. Opened for further extensions

Installation

npm install --save-dev @alza54/eslint-config-jsdoc

or yarn

yarn add -D @alza54/eslint-config-jsdoc

Then, modify your eslint configuration:

{
  "extends": [
    "@alza54/jsdoc"
  ]
}

Done! Later you can modify your configuration to include any extra rules you need.

Code example

This code is considered valid (and beautiful):

/**
 * Imaginary function to take same slices from imaginary pizza.
 * This function is created, because I love pizza.
 *
 * @param pizza - {Array} List of slices.
 * @param numberOfSlices - Number of slices to take away.
 * @returns {Array} What is left of our pizza.
 */
function takeSlices (pizza, numberOfSlices) {
  return pizza.splice(0, numberOfSlices);
}

License

MIT.

0.6.1

6 years ago

0.6.0

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.2.0-alpha.0

6 years ago

0.2.3-alpha.0

6 years ago

0.2.2-alpha.0

6 years ago

0.2.1-alpha.0

6 years ago

0.1.1-alpha.0

6 years ago