Skip to content

Commit

Permalink
chore: Major update - refactored entire code base from CJS > ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Aug 20, 2024
1 parent 510a583 commit ae4083b
Show file tree
Hide file tree
Showing 25 changed files with 1,253 additions and 1,070 deletions.
14 changes: 0 additions & 14 deletions .eslintrc.yml

This file was deleted.

37 changes: 37 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import prettier from 'eslint-plugin-prettier';
import globals from 'globals';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

// export default [...compat.extends("airbnb-base", "prettier"), {
export default [
...compat.extends('prettier'),
{
plugins: {
prettier,
},

languageOptions: {
globals: {
...globals.node,
},

ecmaVersion: 12,
sourceType: 'module',
},

rules: {
'prettier/prettier': 'error',
},
},
];
103 changes: 100 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"url": "https://github.com/ptarmiganlabs/butler-sos/issues"
},
"homepage": "https://github.com/ptarmiganlabs/butler-sos#readme",
"type": "module",
"dependencies": {
"@breejs/later": "^4.2.0",
"@influxdata/influxdb-client": "^1.35.0",
Expand Down Expand Up @@ -56,10 +57,13 @@
"yaml-validator": "^5.0.1"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"esbuild": "^0.23.1",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-formatter-table": "^7.32.1",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.9.0",
"prettier": "^3.3.3",
"snyk": "^1.1292.4"
},
Expand Down
Loading

0 comments on commit ae4083b

Please sign in to comment.