Dominik Ferber
f6d6f3cb97
chore(testing): switch to nyc
...
NYC has better code coverage information and support for babel 6.
2016-03-09 17:07:29 +01:00
Dominik Ferber
20a04cb88d
test: bring code coverage thersholds down
...
Temporarily bring code coverage thresholds down, until https://github.com/babel/babel-jest/issues/27
is resolved.
2016-03-02 16:21:22 +01:00
Dominik Ferber
a58304d203
style: adapt airbnb code style
2016-03-02 14:46:48 +01:00
Dominik Ferber
c818fb07d5
feat(rules): remove a ton of rules
...
This further gets rid of all environment checks, keeping it simple
no longer support environments
2016-03-02 13:52:20 +01:00
Dominik Ferber
24a5f2f66c
feat(integration): Add support for SublimeLinter
...
SublimeLinter passes relative paths through context.getFilename(). Support that as well.
closes #49
2015-10-29 18:29:39 +01:00
Dominik Ferber
ff5af1f7ff
fix(rules): Ignore locus checks with unkown expressions
...
Instead of aborting when finding an if-statement with unkown statements in the ancestors of any
node, ignore that if-statement. This way the linter will cover more code. Assumes the code never
mixes locus checks with other expressions.
2015-10-18 19:53:54 +02:00
Dominik Ferber
bbf9f22109
refactor(): Determine env only once per file
...
Also fixes a bug in audit-argument-checks where it would show errors in non-meteor blocks.
BREAKING CHANGE: Envs specified through comments are now restricted to client and server.
2015-10-17 23:28:42 +02:00
Dominik Ferber
0cafe3b87c
refactor(internal): Remove isobuild from executors
...
isobuild can be determined based on the env. No need to have it as an executor.
2015-10-17 15:22:57 +02:00
Dominik Ferber
e426e2cae3
feat(rules): Add inline configuration for Meteor environments
...
Environments can now be configured inline. Enables linting files in packages.
closes #36
2015-10-17 14:45:58 +02:00
Dominik Ferber
03e9c7c520
feat(pubsub): Lint Meteor API in publication context
...
The callback of a publication receives Meteor API through the context. This API is now linted.
#3
2015-10-16 08:34:35 +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
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
bec69bfb05
refactor(internal): Change meta properties
...
Introduce more environments instead of additional properties.
2015-10-06 19:36:53 +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
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