Skip to content

Commit b0f5695

Browse files
committed
Upgrade eslint
1 parent 14d21ea commit b0f5695

8 files changed

+2295
-9
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
'eslint:recommended',
99
'plugin:@typescript-eslint/eslint-recommended',
1010
'plugin:@typescript-eslint/recommended',
11-
'prettier/@typescript-eslint',
11+
'prettier',
1212
],
1313
rules: {
1414
"@typescript-eslint/ban-ts-ignore": "off"

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 4.2.1
2+
- Fixed missing source map
3+
- Fixed security y18n
4+
15
### 4.2.0
26
Added isoDate and isoDateTime masks
37

dist/fecha.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fecha.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export declare function assign<A, B>(a: A, b: B): A & B;
1414
export declare function assign<A, B, C>(a: A, b: B, c: C): A & B & C;
1515
export declare function assign<A, B, C, D>(a: A, b: B, c: C, d: D): A & B & C & D;
1616
declare const defaultI18n: I18nSettings;
17-
declare const setGlobalDateI18n: (i18n: Partial<I18nSettings>) => I18nSettings;
17+
declare const setGlobalDateI18n: (i18n: I18nSettingsOptional) => I18nSettings;
1818
declare const setGlobalDateMasks: (masks: {
1919
[key: string]: string;
2020
}) => {
@@ -27,7 +27,7 @@ declare const setGlobalDateMasks: (masks: {
2727
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
2828
* @returns {string} Formatted date string
2929
*/
30-
declare const format: (dateObj: Date, mask?: string, i18n?: Partial<I18nSettings>) => string;
30+
declare const format: (dateObj: Date, mask?: string, i18n?: I18nSettingsOptional) => string;
3131
/**
3232
* Parse a date string into a Javascript Date object /
3333
* @method parse

lib/fecha.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fecha.umd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fecha",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"description": "Date formatting and parsing",
55
"main": "lib/fecha.umd.js",
66
"module": "lib/fecha.js",
@@ -32,8 +32,8 @@
3232
"@istanbuljs/nyc-config-typescript": "^1.0.1",
3333
"@typescript-eslint/eslint-plugin": "^2.14.0",
3434
"@typescript-eslint/parser": "^2.14.0",
35-
"eslint": "^6.8.0",
36-
"eslint-config-prettier": "^6.9.0",
35+
"eslint": "^7.23.0",
36+
"eslint-config-prettier": "^8.1.0",
3737
"nyc": "^15.0.0",
3838
"painless": "^0.9.7",
3939
"prettier": "1.19.1",

yarn.lock

+2,282
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)