Commit Graph

74 Commits

Author SHA1 Message Date
Dominik Ferber
ca8a78a172 Merge pull request #35 from dferber90/globals
feat(rule): Add rule: globals
2015-10-14 20:53:43 +02:00
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
7095d253cc Merge pull request #34 from dferber90/executors
fix(internal): Add locus resloving capabilities
2015-10-13 18:46:47 +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
93498f368b fix(internal): Add test for getRelativePath
#31
2015-10-12 19:30:37 +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
03b1f5acf1 fix(npm): Release new version
In 0.9.1 there is an error with npm because of an invalid sha1 which occured because of a force push to master (whoops).

closes #30
2015-10-12 00:56:32 +02:00
Dominik Ferber
1ef73c32e4 Merge pull request #29 from johanbrook/patch-2
docs(README): Use correct rule name for no-zero-timeout
2015-10-11 21:38:00 +02:00
Johan Brook
2823dfb1be Fix incorrectly named rule in README 2015-10-11 21:14:41 +02:00
Dominik Ferber
7fd1f546fc chore(scaffolding): Change scaffolded file contents
No more vars. No more ESLint errors.
2015-10-10 10:06:08 +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
d23b61bda7 docs(README): Change badge
This project is not express :P
2015-10-10 09:37:04 +02:00
Dominik Ferber
3c6a13eba5 docs(README): Add badge for npm downloads 2015-10-10 09:33:02 +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
6acfdbdacc docs(DEVELOPMENT): Add link to JS AST Explorer 2015-10-09 17:35:10 +02:00
The Gitter Badger
e6b4b1e77d docs(README): Add gitter badge
Also organize badges into different categories.
2015-10-09 17:18:51 +02:00
Dominik Ferber
4e4e94603a chore(build): Increase mocha test timeout limit to 4s
Previously build were failing on node 0.10, because the tests were timing out. This could also be seen in ESLint itself: eslint/eslint/issues/3692
2015-10-09 09:11:25 +02:00
Dominik Ferber
70998835c1 Merge pull request #25 from dferber90/greenkeeper-cz-conventional-changelog-1.1.4
Update cz-conventional-changelog to version 1.1.4 🚀
2015-10-09 08:46:36 +02:00
greenkeeperio-bot
c72196bf30 chore(package): update cz-conventional-changelog to version 1.1.4
http://greenkeeper.io/
2015-10-08 20:04:25 +02:00
Dominik Ferber
b3e0a49abf docs(rule): Add pubsub limitation
pubsub does not verify DDPRateLimiter usage
2015-10-08 17:05:55 +02:00
Dominik Ferber
8a21e4e07b docs(rule): Add limitation of pubsub
pubsub does not check properties and methods avialable in context of publication functions
2015-10-08 16:44:38 +02:00
Dominik Ferber
e7429d07db chore(build): Require 100% code coverage
Verify code coverage is 100% for all files. Fail build otherwise.
2015-10-08 12:27:26 +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
e80f048542 chore(scaffolding): Change rule scaffolding 2015-10-06 18:27:27 +02:00
Dominik Ferber
47c0555823 refactor(rules): Use utility functions in rules 2015-10-06 16:53:46 +02:00
Dominik Ferber
2e6ea3ab9d Merge pull request #18 from dferber90/greenkeeper-istanbul-0.3.22
Updated istanbul to version 0.3.22
2015-10-05 17:01:50 +02:00
greenkeeperio-bot
ec7a2d1880 chore(package): update istanbul to version 0.3.22
http://greenkeeper.io/
2015-10-05 16:03:37 +02:00
Dominik Ferber
ed8e726146 docs(README): Add gif 2015-10-05 09:18:28 +02:00
Dominik Ferber
e7b941d62e chore(build): Add CodeClimate token to TravisCI 2015-10-05 08:51:46 +02:00
Dominik Ferber
8a3a759db5 docs(README): Add pubsub 2015-10-05 00:07:02 +02:00
Dominik Ferber
36347997e2 chore(build): Remove tests from CodeClimate 2015-10-04 23:54:49 +02:00
Dominik Ferber
0c7a1084fe chore(build): Enable codeclimate coverage reports
Report test coverage to codeclimate. Set rated paths.
2015-10-04 23:51:53 +02:00
Dominik Ferber
0ce7ce5cf5 chore(build): Enable CodeClimate 2015-10-04 23:43:05 +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
d6aade814d docs(): Add instructions for setup and collaborators
Rudimentary instructions for usage of ESLint in Meteor projects. Also how to contribute. Needs a makeover.
2015-10-04 19:57:57 +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
f1371ef1d2 chore(scaffolding): Remove syntax error in scaffolded rule 2015-10-04 16:01:03 +02:00
Dominik Ferber
63eba5883e chore(scaffolding): Add rule scaffolding
Developers may now use  npm run lint to scaffold new rules.
2015-10-04 13:19:08 +02:00
Dominik Ferber
9dd3b34886 Merge pull request #15 from dferber90/greenkeeper-eslint-1.6.0
Updated eslint to version 1.6.0
2015-10-04 12:48:28 +02:00
greenkeeperio-bot
03b66929d7 chore(package): update eslint to version 1.6.0
http://greenkeeper.io/
2015-10-02 19:23:31 +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
9554bf65c8 docs(): Add explaintion in release file 2015-10-02 09:08:52 +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