Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Format and fix tooling configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Feb 6, 2024
1 parent 0a5df63 commit 234cbb7
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 107 deletions.
22 changes: 13 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# top-most EditorConfig file
root = true

[*]
charset = utf-8
insert_final_newline = true
indent_style = tab
indent_size = 4
tab_width = 4
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{md,yaml,yml}]
indent_style = space
indent_size = 2
5 changes: 3 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
npm node_modules
build
node_modules/
main.js
styles.css
23 changes: 0 additions & 23 deletions .eslintrc

This file was deleted.

21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": { "node": true },
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-function": "off"
}
}
6 changes: 3 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
node_modules/
main.js
version-bump.mjs
*.snap
styles.css
*.snap
4 changes: 2 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"tabWidth": 4,
"useTabs": false
"tabWidth": 4,
"useTabs": false
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Full Calendar is open to contributions!
- You can build the plugin for development by running `npm run dev`.
- The [hot reload plugin](https://github.com/pjeby/hot-reload) makes development a lot easier.

To start getting familiar with the codebase, check out the architecture guide at [`src/README.md`](https://github.com/davish/obsidian-full-calendar/blob/main/src/README.md).
To start getting familiar with the codebase, check out the architecture guide at [`src/README.md`](https://github.com/davish/obsidian-full-calendar/blob/main/src/README.md).
82 changes: 41 additions & 41 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,44 @@ if you want to view the source, please visit the github repository of this plugi
const prod = process.argv[2] === "production";

esbuild
.build({
banner: {
js: banner,
},
entryPoints: ["src/main.ts"],
bundle: true,
external: [
"obsidian",
"electron",
"@codemirror/autocomplete",
"@codemirror/closebrackets",
"@codemirror/collab",
"@codemirror/commands",
"@codemirror/comment",
"@codemirror/fold",
"@codemirror/gutter",
"@codemirror/highlight",
"@codemirror/history",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/matchbrackets",
"@codemirror/panel",
"@codemirror/rangeset",
"@codemirror/rectangular-selection",
"@codemirror/search",
"@codemirror/state",
"@codemirror/stream-parser",
"@codemirror/text",
"@codemirror/tooltip",
"@codemirror/view",
...builtins,
],
format: "cjs",
watch: !prod,
target: "es2016",
logLevel: "info",
sourcemap: prod ? false : "inline",
treeShaking: true,
outfile: "main.js",
})
.catch(() => process.exit(1));
.build({
banner: {
js: banner,
},
entryPoints: ["src/main.ts"],
bundle: true,
external: [
"obsidian",
"electron",
"@codemirror/autocomplete",
"@codemirror/closebrackets",
"@codemirror/collab",
"@codemirror/commands",
"@codemirror/comment",
"@codemirror/fold",
"@codemirror/gutter",
"@codemirror/highlight",
"@codemirror/history",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/matchbrackets",
"@codemirror/panel",
"@codemirror/rangeset",
"@codemirror/rectangular-selection",
"@codemirror/search",
"@codemirror/state",
"@codemirror/stream-parser",
"@codemirror/text",
"@codemirror/tooltip",
"@codemirror/view",
...builtins,
],
format: "cjs",
watch: !prod,
target: "es2016",
logLevel: "info",
sourcemap: prod ? false : "inline",
treeShaking: true,
outfile: "main.js",
})
.catch(() => process.exit(1));
19 changes: 9 additions & 10 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"id": "obsidian-full-calendar",
"name": "Full Calendar",
"version": "0.10.7",
"minAppVersion": "0.16.3",
"description": "Obsidian integration with Full Calendar (fullcalendar.io)",
"author": "Davis Haupt",
"authorUrl": "https://davi.sh",
"isDesktopOnly": false,
"fundingUrl": "https://ko-fi.com/davish"
}
"id": "obsidian-full-calendar-hyperupcall",
"name": "Full Calendar (hyperupcall)",
"version": "0.10.7",
"minAppVersion": "0.16.3",
"description": "Obsidian integration with Full Calendar (fullcalendar.io)",
"author": "Edwin Kofler",
"authorUrl": "https://edwinkofler.com",
"isDesktopOnly": false
}
33 changes: 17 additions & 16 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"compilerOptions": {
"baseUrl": ".",
"inlineSourceMap": true,
"inlineSources": true,
"module": "ESNext",
"target": "ES6",
"allowJs": true,
"noImplicitAny": true,
"strict": true,
"moduleResolution": "node",
"compilerOptions": {
"baseUrl": ".",
"inlineSourceMap": true,
"inlineSources": true,
"module": "ESNext",
"target": "ES6",
"allowJs": true,
"noImplicitAny": true,
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"importHelpers": true,
"isolatedModules": true,
"lib": ["DOM", "ES5", "ES6", "ES7"],
"jsx": "react"
},
"include": ["**/*.ts"]
"importHelpers": true,
"isolatedModules": true,
"lib": ["DOM", "ES5", "ES6", "ES7"],
"jsx": "react",
"forceConsistentCasingInFileNames": true
},
"include": ["**/*.ts"]
}

0 comments on commit 234cbb7

Please sign in to comment.