eslint-plugin-alint

1.1.2 • Public • Published

alint Build Status

An eslint plugin that implements some additional linting rules.

Rules

no-use-strict

If you are using a transpiler such as babeljs there is no need for 'use strict' at the top of your program files, or inside functions. This rule warns you if this additional string meta-data is present.

bracket-predicates

You may wish to surround brackets within predicate variable assignments, for instance -

// Will be reported as an error
var invalid = user.age > 10;
var invalid = {
  key: i + 1
}
// Valid - predicate encapsulated within brackets appropriately
var valid = (user.age > 10);

Release-Log

1.1.2

  • Only publish dist and README.md as part of npm publish

1.1.1

  • Remove webpack as build tool, replacing with raw Babel
  • dist folder now contains separate files as a result

1.1.0

  • Update bracket-predicates to also lint Object values
  • Use webpack as a build tool, providing a single dist/index.js file as the entry point

1.0.0

Initial release. no-use-strict and bracket-predicates added

Contributing

To run the test suite you can use the following command -

npm run test

To run an individual test you can modify the spec file you are working with and use describe.only

Building

To build the source code into a releasable asset you can use

npm run build

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-alint

Weekly Downloads

4

Version

1.1.2

License

none

Last publish

Collaborators

  • alanfoster