eslint 7.12.1 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +3 -3
- package/lib/linter/timing.js +23 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
v7.13.0 - November 6, 2020
|
2
|
+
|
3
|
+
* [`254e00f`](https://github.com/eslint/eslint/commit/254e00fea8745ff5a8bcc8cb874fcfd02996d81b) New: Configurable List Size For Per-Rule Performance Metrics (#13812) (Bryan Mishkin)
|
4
|
+
* [`6c3c710`](https://github.com/eslint/eslint/commit/6c3c710ade7cd8654990f1adb55b58f038eab92d) Docs: fix broken url in docs (#13815) (SaintMalik)
|
5
|
+
* [`4a09149`](https://github.com/eslint/eslint/commit/4a091495a236d231a5065ece972719a0c4dd1b77) Sponsors: Sync README with website (ESLint Jenkins)
|
6
|
+
* [`fb6fcbf`](https://github.com/eslint/eslint/commit/fb6fcbfe0a8c41b92f0a33ab90f159037bd195e2) Docs: Fix reference to Code of Conduct (#13797) (Tobias Nießen)
|
7
|
+
* [`1b89ebe`](https://github.com/eslint/eslint/commit/1b89ebe1bdbef7de6001100945b8f71429df302c) Sponsors: Sync README with website (ESLint Jenkins)
|
8
|
+
|
1
9
|
v7.12.1 - October 26, 2020
|
2
10
|
|
3
11
|
* [`08f33e8`](https://github.com/eslint/eslint/commit/08f33e8b9a353c3183be6f937785db7a30fb90eb) Upgrade: @eslint/eslintrc to fix rule schema validation (fixes #13793) (#13794) (Brandon Mills)
|
package/README.md
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
[Rules](https://eslint.org/docs/rules/) |
|
15
15
|
[Contributing](https://eslint.org/docs/developer-guide/contributing) |
|
16
16
|
[Reporting Bugs](https://eslint.org/docs/developer-guide/contributing/reporting-bugs) |
|
17
|
-
[Code of Conduct](https://
|
17
|
+
[Code of Conduct](https://eslint.org/conduct) |
|
18
18
|
[Twitter](https://twitter.com/geteslint) |
|
19
19
|
[Mailing List](https://groups.google.com/group/eslint) |
|
20
20
|
[Chat Room](https://eslint.org/chat)
|
@@ -85,7 +85,7 @@ The three error levels allow you fine-grained control over how ESLint applies ru
|
|
85
85
|
|
86
86
|
## <a name="code-of-conduct"></a>Code of Conduct
|
87
87
|
|
88
|
-
ESLint adheres to the [JS Foundation Code of Conduct](https://
|
88
|
+
ESLint adheres to the [JS Foundation Code of Conduct](https://eslint.org/conduct).
|
89
89
|
|
90
90
|
## <a name="filing-issues"></a>Filing Issues
|
91
91
|
|
@@ -267,7 +267,7 @@ The following companies, organizations, and individuals support ESLint's ongoing
|
|
267
267
|
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/photomatt/ff91f0b/logo.png" alt="Automattic" height="undefined"></a></p><h3>Gold Sponsors</h3>
|
268
268
|
<p><a href="https://www.shopify.com"><img src="https://images.opencollective.com/shopify/e780cd4/logo.png" alt="Shopify" height="96"></a> <a href="https://www.salesforce.com"><img src="https://images.opencollective.com/salesforce/ca8f997/logo.png" alt="Salesforce" height="96"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="96"></a> <a href="https://aka.ms/microsoftfossfund"><img src="https://avatars1.githubusercontent.com/u/67931232?u=7fddc652a464d7151b97e8f108392af7d54fa3e8&v=4" alt="Microsoft FOSS Fund Sponsorships" height="96"></a></p><h3>Silver Sponsors</h3>
|
269
269
|
<p><a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://www.ampproject.org/"><img src="https://images.opencollective.com/amp/c8a3b25/logo.png" alt="AMP Project" height="64"></a></p><h3>Bronze Sponsors</h3>
|
270
|
-
<p><a href="https://writersperhour.com"><img src="https://images.opencollective.com/writersperhour/5787d4b/logo.png" alt="Writers Per Hour" height="32"></a> <a href="https://www.betacalendars.com/printable-calendar"><img src="https://images.opencollective.com/betacalendars/9334b33/logo.png" alt="2021 calendar" height="32"></a> <a href="https://buy.fineproxy.org/eng/"><img src="https://images.opencollective.com/buy-fineproxy-org/
|
270
|
+
<p><a href="https://writersperhour.com"><img src="https://images.opencollective.com/writersperhour/5787d4b/logo.png" alt="Writers Per Hour" height="32"></a> <a href="https://www.betacalendars.com/printable-calendar"><img src="https://images.opencollective.com/betacalendars/9334b33/logo.png" alt="2021 calendar" height="32"></a> <a href="https://buy.fineproxy.org/eng/"><img src="https://images.opencollective.com/buy-fineproxy-org/b282e39/logo.png" alt="Buy.Fineproxy.Org" height="32"></a> <a href="https://www.veikkaajat.com"><img src="https://images.opencollective.com/veikkaajat/b92b427/logo.png" alt="Veikkaajat.com" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="null"><img src="https://images.opencollective.com/bugsnag-stability-monitoring/c2cef36/logo.png" alt="Bugsnag Stability Monitoring" height="32"></a> <a href="https://mixpanel.com"><img src="https://images.opencollective.com/mixpanel/cd682f7/logo.png" alt="Mixpanel" height="32"></a> <a href="https://www.vpsserver.com"><img src="https://images.opencollective.com/vpsservercom/logo.png" alt="VPS Server" height="32"></a> <a href="https://icons8.com"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8: free icons, photos, illustrations, and music" height="32"></a> <a href="https://discordapp.com"><img src="https://images.opencollective.com/discordapp/7e3d9a9/logo.png" alt="Discord" height="32"></a> <a href="https://themeisle.com"><img src="https://images.opencollective.com/themeisle/d5592fe/logo.png" alt="ThemeIsle" height="32"></a> <a href="https://www.firesticktricks.com"><img src="https://images.opencollective.com/fire-stick-tricks/b8fbe2c/logo.png" alt="Fire Stick Tricks" height="32"></a></p>
|
271
271
|
<!--sponsorsend-->
|
272
272
|
|
273
273
|
## <a name="technology-sponsors"></a>Technology Sponsors
|
package/lib/linter/timing.js
CHANGED
@@ -44,6 +44,26 @@ const enabled = !!process.env.TIMING;
|
|
44
44
|
const HEADERS = ["Rule", "Time (ms)", "Relative"];
|
45
45
|
const ALIGN = [alignLeft, alignRight, alignRight];
|
46
46
|
|
47
|
+
/**
|
48
|
+
* Decide how many rules to show in the output list.
|
49
|
+
* @returns {number} the number of rules to show
|
50
|
+
*/
|
51
|
+
function getListSize() {
|
52
|
+
const MINIMUM_SIZE = 10;
|
53
|
+
|
54
|
+
if (typeof process.env.TIMING !== "string") {
|
55
|
+
return MINIMUM_SIZE;
|
56
|
+
}
|
57
|
+
|
58
|
+
if (process.env.TIMING.toLowerCase() === "all") {
|
59
|
+
return Number.POSITIVE_INFINITY;
|
60
|
+
}
|
61
|
+
|
62
|
+
const TIMING_ENV_VAR_AS_INTEGER = Number.parseInt(process.env.TIMING, 10);
|
63
|
+
|
64
|
+
return TIMING_ENV_VAR_AS_INTEGER > 10 ? TIMING_ENV_VAR_AS_INTEGER : MINIMUM_SIZE;
|
65
|
+
}
|
66
|
+
|
47
67
|
/* istanbul ignore next */
|
48
68
|
/**
|
49
69
|
* display the data
|
@@ -61,7 +81,7 @@ function display(data) {
|
|
61
81
|
return [key, time];
|
62
82
|
})
|
63
83
|
.sort((a, b) => b[1] - a[1])
|
64
|
-
.slice(0,
|
84
|
+
.slice(0, getListSize());
|
65
85
|
|
66
86
|
rows.forEach(row => {
|
67
87
|
row.push(`${(row[1] * 100 / total).toFixed(1)}%`);
|
@@ -133,7 +153,8 @@ module.exports = (function() {
|
|
133
153
|
|
134
154
|
return {
|
135
155
|
time,
|
136
|
-
enabled
|
156
|
+
enabled,
|
157
|
+
getListSize
|
137
158
|
};
|
138
159
|
|
139
160
|
}());
|