Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: standard/standard-engine
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 74b8f6fd89dd2f765349f05b97345285bca9bca6
Choose a base ref
...
head repository: standard/standard-engine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ed6bdd75118f47781216e3853df2a44f6810ad11
Choose a head ref
Loading
Showing with 765 additions and 373 deletions.
  1. +3 −0 .npmignore
  2. +1 −0 .npmrc
  3. +5 −2 .travis.yml
  4. +140 −0 CHANGELOG.md
  5. +250 −37 README.md
  6. +91 −82 bin/cmd.js
  7. +158 −96 index.js
  8. +44 −40 package.json
  9. +22 −11 test/api.js
  10. +45 −101 test/clone.js
  11. +6 −4 test/lib/standard-cmd.js
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.travis.yml
test/
tmp/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
cache:
npm: false
language: node_js
node_js:
- '4'
- 'node'
- 10
- 12
- 14
140 changes: 140 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,146 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 7.2.0 2017-11-07

- New Feature: `noDefaultIgnore` option to can now be used to turn off default ignores.

## 7.1.0 - 2017-06-21

- `engine.lintText` and `engine.lintTextSync` do not take into account the `package.json`
configuration settings. These now do not behave differently depending on the current
working directory. See https://github.com/Flet/standard-engine/pull/166

## 7.0.0 - 2017-04-04

- BREAKING: rename the synchronous `lintText` method to `lintTextSync`
- Add an asyncronous `lintText` method (that just calls `lintTextSync` internally)

This effectively undoes the breaking change introduced in 6.0.0, making it safe to
upgrade from `standard-engine` 5.x to 7.x without introducing any breaking changes.

Related issues:

- https://github.com/feross/standard/issues/807
- https://github.com/Flet/standard-engine/issues/156

## 6.0.0 - 2017-02-20

- BREAKING: make `lintText` into a sync method

Before: `standardEngine.lintText(text, [opts], callback)`

After: `results = standardEngine.lintText(text, [opts])`

If an error occurs, an exception is thrown. Otherwise, a `results` object is
returned.

## 5.4.0 - 2017-02-08

- Replace find-root and pkg-config by pkg-conf
- Support parseOpts() option
- Improve help message
- add missing ignored files
- add note about .gitignore files
- Prevent package.json `parser` option from overriding explicit option

## 5.3.0 - 2016-11-23

- Resolve ignore options in standard-engine, not deglob

## 5.2.0 - 2016-11-22

- Support filename option in lintText()
- Update dependencies

## 5.1.1 - 2016-10-11

- Fix crash when 'stdin' and 'fix' options are used on code with no errors

## 5.1.0 - 2016-08-19

- Add ESLint `cache` option

## 5.0.3 - 2016-08-18

- Remove unneeded `xtend`, `defaults`, `multiline` dependencies
- Re-order help commands

## 5.0.2 - 2016-08-12

- Clarify it's only *some* problems that get fixed

## 5.0.1 - 2016-08-12

- Only recommend `--fix` when fixable rules are present

## 5.0.0 - 2016-08-10

- BREAKING: Remove formatter support (replaced by ESLint's --fix)
- BREAKING: Drop Node 0.12 and 0.10 support (because of ESLint 3)
- Add `{fix: true}` option to `lintFiles` and `lintText` API
- Support auto-fixing source text from --stdin

## 4.1.3 - 2016-08-07

- Update deps, improve tests

## 4.1.2 - 2016-07-26

- Add "Try `standard --fix` message" when errors are present

## 4.1.1 - 2016-07-13

- Remove `--format` from help when there is only an error string

## 4.1.0 - 2016-07-13

- Add --fix option (uses eslint's --fix)
- Drop Node 0.12 and 0.10 CI testing (because of ESLint 3)
- Update deps

## 4.0.5 - 2016-07-12

- Update deps

## 4.0.4 - 2016-05-25
* Fix install warning due to `cross-spawn-async`

## 4.0.3 - 2016-05-25
* Add back node v0.10 support

## 4.0.2 - 2016-05-16
* Fix truncated output on Node v6

## 4.0.1 - 2016-04-28
* Do not use .eslintignore files

## 4.0.0 - 2016-04-24
* Remove `--rules` option

## 3.3.1 - 2016-02-23
* Update dependencies

## 3.3.0 - 2016-02-18
* Support passing `cwd` option in Linter constructor

## 3.2.4 - 2016-02-07
* Fix tests

## 3.2.3 - 2016-02-07
* Fix tests

## 3.2.2 - 2016-02-06
* Fix tests

## 3.2.1 - 2016-02-05
* Fix tests

## 3.2.0 - 2016-02-05
* Add `--plugin` option
* Add `--rules` option
* Add `--env` option

## 3.1.1 - 2016-02-03
* Replace deprecated `win-spawn` dev dependency with `cross-spawn-async`.

Loading