Commit Graph

24 Commits

Author SHA1 Message Date
Dominik Ferber
cafe187e83 feat(rule): Add rule: globals
This rule defines Meteor globals. It works in conjunction with ESLints no-undef.

closes #16
2015-10-14 20:50:24 +02:00
Dominik Ferber
0b9622dedd fix(internal): Add locus resloving capabilities
Resolve all Meteor.isClient, Meteor.isServer and Meteor.isCordova LogicalExpressions
2015-10-13 18:42:31 +02:00
Dominik Ferber
0519621776 fix(internal): Correctly ignore files outside of Meteor projects
#31
2015-10-12 19:25:09 +02:00
Dominik Ferber
2b01583e7f refactor(): Use let and const instead of var
Add rule no-var to configuration of project
2015-10-10 09:54:14 +02:00
Dominik Ferber
6551c2567e fix(rule): support arrow function without BlockStatement in audit-argument-checks
Add support for a very raw case which would not make sense in any application.
2015-10-09 17:52:34 +02:00
Dominik Ferber
b14cbd82a4 feat(rule): Add core rule
Prevent misuse of the Meteor core API
2015-10-06 21:46:00 +02:00
Dominik Ferber
5032f13eab fix(rule): accept arrow functions in audit-argument-checks 2015-10-06 21:01:39 +02:00
Dominik Ferber
bb1f7222e1 refactor(internal): Export utility functions from a single module 2015-10-06 20:33:06 +02:00
Dominik Ferber
bec69bfb05 refactor(internal): Change meta properties
Introduce more environments instead of additional properties.
2015-10-06 19:36:53 +02:00
Dominik Ferber
47c0555823 refactor(rules): Use utility functions in rules 2015-10-06 16:53:46 +02:00
Dominik Ferber
4438a2b74d fix(rule): Add subscribe argument count validation
Also adds docs.
2015-10-04 23:32:06 +02:00
Dominik Ferber
6aa1b63429 feat(rules): Add pubsub rule
Prevent misuse of Meteor API related to Publications and Subscriptions.
2015-10-04 23:23:49 +02:00
Dominik Ferber
650d61efd7 refactor(internal): Detect project based on filename instead of process.cwd
Detection of the Meteor project through process.cwd() fails when used in Atom Editor. Use filename i
2015-10-04 19:41:47 +02:00
Dominik Ferber
5531375b3a fix(internal): Use lodash.find instead of Array.prototype.find
Not every environment will support Array.prototype.find. Use the lodash version.
2015-10-02 09:24:05 +02:00
Dominik Ferber
740f3cfc07 refactor(): Add isPackageConfig and isMobileConfig to environment information
Rules can now read whether the file is a package config or mobile config file from the fileInfo.
2015-10-02 00:23:10 +02:00
Dominik Ferber
b6ca598cc2 refactor(): pass getter function to rules instead of rootPaths
Let rules determine their environment by calling the getter function with their path. This makes tes
2015-10-01 23:39:54 +02:00
Dominik Ferber
85bb02e317 refactor(): support matching Meteor projects downwards
Until now the path was only checked upwards for Meteor projects. Now it checks all children recursively. This enables having one common eslint configuration above multiple child directories containing Meteor applications.
2015-10-01 23:01:18 +02:00
Dominik Ferber
f1da865eca refactor(): Make Meteor file metadata available to rules
Rules now get the Meteor root directory passed to them. They can use that information to extract further information about the file being linted based on its path in the project.
2015-10-01 10:14:36 +02:00
Dominik Ferber
07610a906a style(): Remove semicolons at end-of-line
Make code-style more like js-standard.
2015-10-01 08:04:55 +02:00
Dominik Ferber
ae05984c03 feat(audit-arguments-check): audit when fn is defined by computed props as well 2015-09-28 00:43:20 +02:00
Dominik Ferber
4ac5d25c3c chore(babel): enable ES6 2015-09-28 00:10:15 +02:00
Dominik Ferber
2d68493f24 feat(rules): Add rule audit-argument-checks
closes #2
2015-09-27 20:22:25 +02:00
Dominik Ferber
d9824737a1 maintenance
add espree parser to README

add no-zero-timeout

0.2.0

chore: enable semantic-release

fix(semantic-release): config

chore: bump to 1.0.0

chore(travis): Only build master and PRs

0.3.0
2015-09-27 15:00:25 +02:00
Dominik Ferber
baa4b0a223 init 2015-09-24 19:03:14 +02:00