mirror of
https://github.com/jalad25/contact-note.git
synced 2026-07-22 06:53:06 +00:00
Removed eslint ignores and updated linter. Removed builtin-modules package.
This commit is contained in:
parent
33108383fa
commit
8c7d4f5b69
5 changed files with 12 additions and 27 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import esbuild from "esbuild";
|
||||
import process from "process";
|
||||
import builtins from "builtin-modules";
|
||||
import { builtinModules as builtins } from "module";
|
||||
|
||||
const prod = process.argv[2] === "production";
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@ export default [
|
|||
rules: {
|
||||
"no-prototype-builtins": "off",
|
||||
"no-case-declarations": "off",
|
||||
"@typescript-eslint/no-unsafe-assignment": "off"
|
||||
"@typescript-eslint/no-unsafe-assignment": "off",
|
||||
"@typescript-eslint/no-unsafe-member-access": "off",
|
||||
"@typescript-eslint/no-explicit-any": "off"
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
|||
26
package-lock.json
generated
26
package-lock.json
generated
|
|
@ -1,19 +1,18 @@
|
|||
{
|
||||
"name": "contact-note",
|
||||
"version": "1.1.2",
|
||||
"version": "2.1.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "contact-note",
|
||||
"version": "1.1.2",
|
||||
"version": "2.1.1",
|
||||
"license": "GNU AGPLv3",
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.0.0",
|
||||
"builtin-modules": "3.3.0",
|
||||
"esbuild": "0.21.5",
|
||||
"eslint": "^10.2.1",
|
||||
"eslint-plugin-obsidianmd": "^0.2.9",
|
||||
"eslint-plugin-obsidianmd": "^0.3.0",
|
||||
"obsidian": "latest",
|
||||
"tslib": "2.6.3",
|
||||
"typescript": "5.5.4"
|
||||
|
|
@ -1061,19 +1060,6 @@
|
|||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/builtin-modules": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz",
|
||||
"integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/call-bind": {
|
||||
"version": "1.0.9",
|
||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz",
|
||||
|
|
@ -1862,9 +1848,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-obsidianmd": {
|
||||
"version": "0.2.9",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-obsidianmd/-/eslint-plugin-obsidianmd-0.2.9.tgz",
|
||||
"integrity": "sha512-+dF5Zz5T6/j0QYGu+wHbY3UZb45Kh+QFkFdfvkVk05o4YIIVqHMlrTFrlRVhuBd6Htu8QxcFOwzeMTN4aysVTA==",
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-obsidianmd/-/eslint-plugin-obsidianmd-0.3.0.tgz",
|
||||
"integrity": "sha512-QvGDI6B2nxJBrsZKGTg31da2A/fEJNlnwN+fRZkaoPIu1QL3fYXUdpP7ThyMdr/0iTYQxifb9lt2X9cpydQx1w==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -13,10 +13,9 @@
|
|||
"license": "GNU AGPLv3",
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.0.0",
|
||||
"builtin-modules": "3.3.0",
|
||||
"esbuild": "0.21.5",
|
||||
"eslint": "^10.2.1",
|
||||
"eslint-plugin-obsidianmd": "^0.2.9",
|
||||
"eslint-plugin-obsidianmd": "^0.3.0",
|
||||
"obsidian": "latest",
|
||||
"tslib": "2.6.3",
|
||||
"typescript": "5.5.4"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access -- This module reads untyped JSON of unknown shape from prior plugin versions. Strict typing here would only obscure the runtime guards that actually protect against malformed input. */
|
||||
|
||||
import { ContactNoteConfiguration, CURRENT_SCHEMA_VERSION } from "./main";
|
||||
|
||||
//#region Constants
|
||||
|
|
@ -50,7 +48,7 @@ export function migrate(raw: unknown): MigrationResult {
|
|||
|
||||
//#region Migration Step Functions
|
||||
|
||||
/* This is a per-version migration steps. Append new functions below for each schema change
|
||||
/* This is a per-version migration steps. Append new functions below for each schema change
|
||||
and add it to MIGRATIONS. Never edit existing steps. */
|
||||
|
||||
//#endregion
|
||||
|
|
|
|||
Loading…
Reference in a new issue