mirror of
https://github.com/munckenh/obsidian-relative-dates.git
synced 2026-07-22 06:43:16 +00:00
chore: update dependencies and configuration
This commit is contained in:
parent
95cfab0c2d
commit
233f209b14
3 changed files with 269 additions and 404 deletions
|
|
@ -1,17 +1,17 @@
|
|||
import tsparser from '@typescript-eslint/parser';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import obsidianmd from 'eslint-plugin-obsidianmd';
|
||||
import globals from 'globals';
|
||||
import { defineConfig } from 'eslint/config';
|
||||
|
||||
export default defineConfig([
|
||||
export default tseslint.config(
|
||||
{
|
||||
ignores: [
|
||||
'main.js',
|
||||
'**/*.js',
|
||||
'**/*.mjs',
|
||||
'**/*.json',
|
||||
],
|
||||
},
|
||||
...obsidianmd.configs.recommended,
|
||||
{
|
||||
files: ['**/*.ts'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
|
|
@ -19,9 +19,9 @@ export default defineConfig([
|
|||
activeDocument: 'readonly',
|
||||
createSpan: 'readonly',
|
||||
},
|
||||
parser: tsparser,
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
|
|
@ -32,19 +32,4 @@ export default defineConfig([
|
|||
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0 }],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['*.mjs'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-trailing-spaces': 'error',
|
||||
'semi': ['error', 'always'],
|
||||
'quotes': ['error', 'single'],
|
||||
'comma-dangle': ['error', 'always-multiline'],
|
||||
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0 }],
|
||||
},
|
||||
},
|
||||
]);
|
||||
);
|
||||
619
package-lock.json
generated
619
package-lock.json
generated
File diff suppressed because it is too large
Load diff
25
package.json
25
package.json
|
|
@ -8,8 +8,7 @@
|
|||
"dev": "node esbuild.config.mjs",
|
||||
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
||||
"version": "node version-bump.mjs && git add manifest.json versions.json package.json package-lock.json && git commit -m \"chore: $npm_package_version\" && git tag $npm_package_version -m \"\"",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix"
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"keywords": [
|
||||
"obsidian",
|
||||
|
|
@ -20,18 +19,16 @@
|
|||
"author": "Munckenh",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@codemirror/language": "^6.5.0",
|
||||
"@codemirror/language": "6.5.0",
|
||||
"@codemirror/state": "6.5.0",
|
||||
"@codemirror/view": "^6.5.0",
|
||||
"@typescript-eslint/parser": "^8.58.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"eslint": "^9.0.0",
|
||||
"eslint-plugin-obsidianmd": "^0.1.9",
|
||||
"globals": "^14.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"obsidian": "latest",
|
||||
"obsidian-daily-notes-interface": "0.9.4"
|
||||
"@codemirror/view": "6.38.6",
|
||||
"esbuild": "^0.28.0",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint-plugin-obsidianmd": "^0.3.0",
|
||||
"globals": "^17.6.0",
|
||||
"obsidian": "^1.12.3",
|
||||
"obsidian-daily-notes-interface": "0.9.4",
|
||||
"typescript": "^5.8.0",
|
||||
"typescript-eslint": "^8.59.3"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue