Skip to content

Commit 979b876

Browse files
committed
Migrate to ESM
1 parent 54bdabe commit 979b876

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

dist/custom-sidebar-plugin.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js renamed to eslint.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const tseslint = require('typescript-eslint');
2-
const js = require('@eslint/js');
3-
const globals = require('globals');
1+
import tseslint from 'typescript-eslint';
2+
import js from '@eslint/js';
3+
import globals from 'globals';
44

5-
module.exports = [
5+
export default [
66
{
77
languageOptions: {
88
globals: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "custom-sidebar",
33
"version": "16.1.0",
44
"description": "Custom HACS plugin that allows you to rearrange, hide, and add menu items to Home Assistant's sidebar",
5+
"type": "module",
56
"main": "dist/custom-sidebar.js",
67
"repository": "git@github.com:elchininet/custom-sidebar.git",
78
"author": "ElChiniNet",

0 commit comments

Comments
 (0)