File tree Expand file tree Collapse file tree 7 files changed +12
-11
lines changed Expand file tree Collapse file tree 7 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1313 "history": true,
1414 "confirm": true,
1515 "console": true,
16- "customElements": true
16+ "customElements": true,
17+ "Intl": true
1718 }
1819}
Original file line number Diff line number Diff line change 2424 "@babel/core" : " ^7.16.5" ,
2525 "@babel/preset-env" : " ^7.16.5" ,
2626 "babel-loader" : " ^8.2.3" ,
27- "eslint" : " ^8.4.1 " ,
27+ "eslint" : " ^8.5.0 " ,
2828 "eslint-config-prettier" : " ^8.3.0" ,
2929 "eslint-plugin-prettier" : " ^4.0.0" ,
3030 "prettier" : " ^2.5.1" ,
3131 "webpack" : " ^5.65.0" ,
3232 "webpack-cli" : " ^4.9.1"
3333 },
3434 "scripts" : {
35- "lint" : " eslint src/*.js" ,
35+ "lint" : " eslint src/**/* .js" ,
3636 "dev" : " webpack -c webpack.config.js" ,
3737 "build" : " yarn lint && webpack -c webpack.config.js"
3838 }
Original file line number Diff line number Diff line change 11// Source: https://github.com/home-assistant/frontend/blob/dev/src/common/entity/compute_state_display.ts
22
3- import { UNAVAILABLE , UNKNOWN } from " ./constants" ;
3+ import { UNAVAILABLE , UNKNOWN } from ' ./constants' ;
44import { formatDate } from './format_date' ;
55import { formatDateTime } from './format_date_time' ;
66import { formatTime } from './format_time' ;
Original file line number Diff line number Diff line change 11// Source: https://github.com/home-assistant/frontend/blob/dev/src/common/datetime/format_date_time.ts
22
33import memoizeOne from 'memoize-one' ;
4- import { useAmPm } from " ./use_am_pm" ;
4+ import { useAmPm } from ' ./use_am_pm' ;
55
66export const formatDateTime = ( dateObj , locale ) => formatDateTimeMem ( locale ) . format ( dateObj ) ;
77
Original file line number Diff line number Diff line change 11// Source: https://github.com/home-assistant/frontend/blob/dev/src/common/datetime/format_time.ts
22
33import memoizeOne from 'memoize-one' ;
4- import { useAmPm } from " ./use_am_pm" ;
4+ import { useAmPm } from ' ./use_am_pm' ;
55
66export const formatTime = ( dateObj , locale ) => formatTimeMem ( locale ) . format ( dateObj ) ;
77
Original file line number Diff line number Diff line change 11// Source: https://github.com/home-assistant/frontend/blob/dev/src/common/datetime/use_am_pm.ts
22
33import memoizeOne from 'memoize-one' ;
4- import { TimeFormat } from './constants'
4+ import { TimeFormat } from './constants' ;
55
66export const useAmPm = memoizeOne ( ( locale ) => {
77 if ( locale . time_format === TimeFormat . language || locale . time_format === TimeFormat . system ) {
Original file line number Diff line number Diff line change @@ -1713,10 +1713,10 @@ eslint-visitor-keys@^3.1.0:
17131713 resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz#eee4acea891814cda67a7d8812d9647dd0179af2"
17141714 integrity sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==
17151715
1716- eslint@^8.4.1 :
1717- version "8.4.1 "
1718- resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.4.1 .tgz#d6531bbf3e598dffd7c0c7d35ec52a0b30fdfa2d "
1719- integrity sha512-TxU/p7LB1KxQ6+7aztTnO7K0i+h0tDi81YRY9VzB6Id71kNz+fFYnf5HD5UOQmxkzcoa0TlVZf9dpMtUv0GpWg ==
1716+ eslint@^8.5.0 :
1717+ version "8.5.0 "
1718+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.5.0 .tgz#ddd2c1afd8f412036f87ae2a063d2aa296d3175f "
1719+ integrity sha512-tVGSkgNbOfiHyVte8bCM8OmX+xG9PzVG/B4UCF60zx7j61WIVY/AqJECDgpLD4DbbESD0e174gOg3ZlrX15GDg ==
17201720 dependencies :
17211721 " @eslint/eslintrc" " ^1.0.5"
17221722 " @humanwhocodes/config-array" " ^0.9.2"
You can’t perform that action at this time.
0 commit comments