You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Validate engine versions + dependency list
* Probably make all pass
* Fix failing tests
* Fix Node 12 support
* Remove leftover todo comment
* Improve naming of "results" post refactoring
* Extract `hasErrors` and `hasWarnings` variables
* Add coverage report
* Exclude tests from type checks
As else it checks `tmp/standard/`, which doesn't pass
* Tweak type format
* Extract utility methods
* Remove non-needed @ts-ignore
* Add unit tests for utils
* We need to ensure we run the clone test first
* Rename `build` to `lint`
* Rename `Linter` to `StandardEngine`
* Update README + CHANGELOG
* Sync `dependabot.yml` with standard/standard repo
See standard/standard#1752
* Update CHANGELOG.md
Co-authored-by: Linus Unnebäck <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+61Lines changed: 61 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,67 @@
2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [Semantic Versioning](http://semver.org/).
4
4
5
+
## 15.0.0 YYYY-MM-DD
6
+
7
+
-**BREAKING CHANGE:** To avoid confusion with ESLint exports and types, our `Linter` class has been renamed to `StandardEngine` and `cli()` now takes a `standardEngine` key instead of a `linter` key if a custom engine wants to be provided. #275
8
+
-**BREAKING CHANGE:** Removed use of ESLint's deprecated `CLIEngine` API. This affects the `eslintConfig` option to our `StandardEngine` (formerly called `Linter`) constructor. #275
9
+
-**BREAKING CHANGE:** Print additional label on warnings (to separate them from errors) b7c1e17
10
+
-**BREAKING CHANGE:** Drop support for Node 10.x. Now require ESM-compatible Node.js versions: `^12.20.0 || ^14.13.1 || >=16.0.0`#252
11
+
-**BREAKING CHANGE:** the `parseOpts` option to the `StandardEngine` (formerly called `Linter`) constructor has been replaced with a new `resolveEslintConfig` one
12
+
- Change: make `--verbose` the default #232
13
+
14
+
15
+
## 14.0.1 2020-08-31
16
+
17
+
-_Missing release notes_
18
+
19
+
## 14.0.0 2020-08-29
20
+
21
+
-_Missing release notes_
22
+
23
+
## 13.0.0 2020-08-27
24
+
25
+
-_Missing release notes_
26
+
27
+
## 12.1.1 2020-05-21
28
+
29
+
- Enhancement: Allow passing in a custom linter to `cli`
30
+
31
+
## 12.0.1 2020-04-30
32
+
33
+
- Enhancements: Add ts-standard to README linters list
34
+
- Fixes: Bump deglob & minimist dependencies
35
+
36
+
## 12.0.0 2019-08-19
37
+
38
+
-**BREAKING CHANGE:** Remove `bundle.js` from the list of default ignored files
39
+
-**BREAKING CHANGE:** Ignore patterns from `.git/info/exclude` in addition to `.gitignore`
40
+
- Enhancement: Update deglob to 4.x
41
+
42
+
## 11.0.1 2019-07-12
43
+
44
+
-_Missing release notes_
45
+
46
+
## 11.0.0 2019-07-11
47
+
48
+
-_Missing release notes_
49
+
50
+
## 10.0.0 2018-08-30
51
+
52
+
-_Missing release notes_
53
+
54
+
## 9.0.0 2018-05-15
55
+
56
+
-_Missing release notes_
57
+
58
+
## 8.0.1 2018-03-02
59
+
60
+
-_Missing release notes_
61
+
62
+
## 8.0.0 2018-02-18
63
+
64
+
-_Missing release notes_
65
+
5
66
## 7.2.0 2017-11-07
6
67
7
68
- New Feature: `noDefaultIgnore` option to can now be used to turn off default ignores.
cwd:''// current working directory, passed to eslint
79
80
}
@@ -293,13 +294,13 @@ module.exports = {
293
294
}
294
295
```
295
296
296
-
This function is called with the current ESLint config (the options passed to [ESLint's `CLIEngine`](http://eslint.org/docs/developer-guide/nodejs-api#cliengine)), the options object (`opts`), any options extracted from the project's `package.json` (`packageOpts`), and the directory that contained that `package.json` file (`rootDir`, equivalent to `opts.cwd` if no file was found).
297
+
This function is called with the current ESLint config (the options passed to the [`ESLint`](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions) constructor), the options object (`opts`), any options extracted from the project's `package.json` (`packageOpts`), and the directory that contained that `package.json` file (`rootDir`, equivalent to `opts.cwd` if no file was found).
297
298
298
299
Modify and return `eslintConfig`, or return a new object with the eslint config to be used.
299
300
300
301
## API Usage
301
302
302
-
### `engine.lintText(text, [opts])`
303
+
### `async engine.lintText(text, [opts])`
303
304
304
305
Lint the provided source `text` to enforce your defined style. An `opts` object may
305
306
be provided:
@@ -348,12 +349,7 @@ const results = {
348
349
}
349
350
```
350
351
351
-
### `results = engine.lintTextSync(text, [opts])`
352
-
353
-
Synchronous version of `engine.lintText()`. If an error occurs, an exception is
354
-
thrown. Otherwise, a `results` object is returned.
355
-
356
-
### `engine.lintFiles(files, [opts], callback)`
352
+
### `async engine.lintFiles(files, [opts])`
357
353
358
354
Lint the provided `files` globs. An `opts` object may be provided:
0 commit comments