Dominik Ferber dcc0ba8101 docs(README): Change comments markdown syntax from json to js
This way the comments in JSON will look nicer on GitHub hopefully.
2015-10-15 16:52:09 +02:00
2015-10-14 20:50:24 +02:00
2015-10-14 20:50:24 +02:00
2015-09-24 19:03:14 +02:00
2015-09-28 00:10:15 +02:00
2015-09-28 00:10:15 +02:00
2015-09-24 19:03:14 +02:00

ESLint-plugin-Meteor

Build Status Coverage Status Code Climate Dependency Status

Join the chat at https://gitter.im/dferber90/eslint-plugin-meteor Maintenance Status semantic-release Commitizen friendly

NPM version NPM downloads

Meteor specific linting rules for ESLint

Example This gif shows integration of ESLint-plugin-Meteor into Atom with linter and linter-eslint. Find out more in the setup guide.

Installation

Install ESLint either locally or globally.

$ npm install eslint

If you installed ESLint globally, you have to install Meteor plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-meteor

Configuration

Add plugins section and specify ESLint-plugin-Meteor as a plugin.

{
  "plugins": [
    "meteor"
  ]
}

Finally, enable all of the rules that you would like to use.

{
  "rules": {

    // Core API
    "meteor/globals": 2,
    "meteor/core": 2,
    "meteor/pubsub": 2,

    // Best Practices
    "meteor/audit-argument-checks": 2,
    "meteor/no-session": 2,
    "meteor/no-blaze-lifecycle-assignment": 2,
    "meteor/no-zero-timeout": 2
  }
}

For a more thorough introduction, read setting up a Meteor project.

List of supported rules

Core API

  • globals: Definitions for global Meteor variables based on environment
  • core: Meteor Core API
  • pubsub: Prevent misusage of Publish and Subscribe

Best Practices

To Do

  • Implement basic rules for Meteor API

Any rule idea is welcome !

Contributing

Read about set up of the development environment.

Thanks

This plugin is inspired by eslint-plugin-react.

License

ESLint-plugin-Meteor is licensed under the MIT License.

Description
No description provided
Readme MIT 202 MiB
Languages
JavaScript 91.1%
TypeScript 3.9%
Shell 0.9%
Java 0.7%
Swift 0.7%
Other 2.5%