dikmax / eslint-plugin-meteor

Meteor specific linting rules for ESLint

Home Page:https://medium.com/@dferber90/linting-meteor-8f229ebc7942

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESLint-plugin-Meteor

Meteor specific linting rules for ESLint

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

Example

This gif shows integration of ESLint-plugin-Meteor into Atom. Find out more in the integration guide.

Quickstart

Installation

Install ESLint and this plugin either locally or globally.

$ npm install eslint --save-dev
$ npm install eslint-plugin-meteor --save-dev

Configuration

Add these keys to your .eslintrc.json file:

{
  "plugins": ["meteor"],
  "extends": ["plugin:meteor/recommended"]
}

For a more thorough introduction, read the setup guide.

An article with detailed setup instructions can be found here.

List of supported rules

Best Practices

Core API

  • currently no rules implemented

Any rule idea is welcome !

Recommended Configuration

This plugin exports a recommended configuration which enforces good Meteor practices. The rules enabled in this configuration can be found in lib/index.js.

To enable the recommended configuration use the extends property in your .eslintrc config file:

{
  "plugins": [
    "meteor"
  ],
  "extends": ["eslint:recommended", "plugin:meteor/recommended"]
}

See ESLint documentation for more information about extending configuration files.

Limitations

ESLint-plugin-Meteor is not aware of where files are going to be executed, to keep the plugin simple. It will not warn when accessing client-only features on the server and vice versa.

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.

About

Meteor specific linting rules for ESLint

https://medium.com/@dferber90/linting-meteor-8f229ebc7942

License:MIT License


Languages

Language:JavaScript 100.0%