Skip to content

Commit 586aa02

Browse files
authored
chore: update ESLint configuration for ES6 and parser options (#944)
1 parent cd84794 commit 586aa02

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"env": {
33
"browser": true,
4-
"es2021": true,
4+
"es6": true,
55
"jest": true,
66
"node": true
77
},
@@ -12,14 +12,14 @@
1212
],
1313
"parser": "@typescript-eslint/parser",
1414
"parserOptions": {
15-
"ecmaVersion": 12,
15+
"ecmaVersion": 2015,
1616
"sourceType": "module"
1717
},
1818
"plugins": [
1919
"@typescript-eslint"
2020
],
2121
"rules": {
22-
"@typescript-eslint/explicit-module-boundary-types": "on",
23-
"@typescript-eslint/no-explicit-any": "error"
22+
"@typescript-eslint/explicit-module-boundary-types": "error",
23+
"@typescript-eslint/no-explicit-any": "warn"
2424
}
2525
}

src/card.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default async function card(data: GetData, uiConfig: UiConfig): Promise<s
196196
const isRevert = parseBoolean(uiConfig.Revert || false);
197197

198198
// Card title
199-
let titleCard = (uiConfig.Title && uiConfig.Title !== "undefined")
199+
const titleCard = (uiConfig.Title && uiConfig.Title !== "undefined")
200200
? uiConfig.Title.split("{name}").join(data.name)
201201
: (selectedLocale.titleCard).split("{name}").join(data.name);
202202

0 commit comments

Comments
 (0)