decentralised sync engine

chore: linting

serenity ebac19d1 92381067

Changed files
+18 -9
+16 -8
eslint.config.mts
···
import { defineConfig } from "eslint/config";
export default defineConfig([
-
{
-
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
-
plugins: { js },
-
extends: ["js/recommended"],
-
languageOptions: { globals: globals.browser },
-
},
-
tseslint.configs.strictTypeChecked,
-
tseslint.configs.stylisticTypeChecked,
+
{
+
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
+
plugins: { js },
+
extends: ["js/recommended"],
+
languageOptions: { globals: globals.browser },
+
},
+
tseslint.configs.strictTypeChecked,
+
tseslint.configs.stylisticTypeChecked,
+
{
+
rules: {
+
"@typescript-eslint/consistent-type-imports": "error",
+
},
+
languageOptions: {
+
parserOptions: { projectService: true, tsconfigRootDir: __dirname },
+
},
+
},
]);
+2 -1
package.json
···
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
-
"dev": "tsc && tsc-alias && node dist/index.js"
+
"dev": "tsc && tsc-alias && node dist/index.js",
+
"lint": "eslint src/"
},
"keywords": [],
"author": "",