Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import reactRecommended from "eslint-plugin-react/configs/recommended.js";
// import reactRecommended from "eslint-plugin-react/configs/recommended.js";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import stylistic from "@stylistic/eslint-plugin";

export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
reactRecommended,
// Temporarily disabled until eslint-plugin-react is updated to support
// eslint v10
// reactRecommended,
{
"plugins": {
"@stylistic": stylistic,
Expand Down Expand Up @@ -35,9 +37,9 @@ export default [
],

// react
"react/jsx-pascal-case": "error",
"react/jsx-uses-vars": ["error"],
"react/react-in-jsx-scope": [0],
// "react/jsx-pascal-case": "error",
// "react/jsx-uses-vars": ["error"],
// "react/react-in-jsx-scope": [0],

// react-hooks - temporarily disabled
// "react-hooks/rules-of-hooks": "error",
Expand Down
4,264 changes: 1,244 additions & 3,020 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@
"description": "NENO is a note-taking app that helps you manage your personal knowledge garden.",
"type": "module",
"dependencies": {
"@lexical/link": "0.43.0",
"@lexical/react": "0.43.0",
"@lexical/link": "0.44.0",
"@lexical/react": "0.44.0",
"buffer": "^6.0.3",
"idb-keyval": "^6.2.1",
"isomorphic-git": "^1.37.5",
"lexical": "0.43.0",
"lexical": "0.44.0",
"monaco-editor": "^0.55.1",
"prismjs": "^1.30.0",
"react": "19.2.5",
"react-dom": "19.2.5"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@playwright/test": "1.59.1",
"@stylistic/eslint-plugin": "5.10.0",
"@types/prismjs": "^1.26.6",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "5.1.4",
"eslint": "9.38.0",
"eslint-plugin-react": "^7.37.3",
"@vitejs/plugin-react": "6.0.1",
"eslint": "10.3.0",
"jsdom": "29.0.2",
"stylelint": "17.9.0",
"stylelint-config-standard": "40.0.0",
"typescript": "6.0.3",
"typescript-eslint": "8.59.0",
"vite": "7.3.2",
"vite-plugin-pwa": "1.2.0",
"vite": "8.0.10",
"vite-plugin-pwa": "1.3.0",
"vitest": "4.1.5"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Pagination = ({
<nav>
<ul>
{items.map(({ page, type, selected, ...item }, index) => {
let children: React.ReactNode | null = null;
let children: React.ReactNode | null;

if (type === "start-ellipsis" || type === "end-ellipsis") {
children = <span className="pagination-ellipsis">…</span>;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/editor/plugins/ProgrammableNotePlugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const registerCommandHandlers = (
}

const anchor = selection.anchor;
let node: LexicalNode | null = null;
let node: LexicalNode | null;

if (anchor.type === "text") {
node = anchor.getNode().getParent();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/editor/plugins/ProgrammableNotePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default function ProgrammableNotePlugin({
}

const anchor = selection.anchor;
let node: LexicalNode | null = null;
let node: LexicalNode | null;

if (anchor.type === "text") {
node = anchor.getNode().getParent();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/notes-worker/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export async function commitChanged(
const modifies: string[] = [];
const removes: string[] = [];

let headOid: string | null = null;
let headOid: string | null;
try {
headOid = await git.resolveRef({ fs, dir, ref: "HEAD" });
} catch {
Expand Down
2 changes: 0 additions & 2 deletions src/lib/notes/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ export const getRawTokensFromQueryString = (queryString: string): string[] => {
const step = iterator.next();
if (step.done) {
if (mode === "token") {
mode = "whitespace";
rawTokens.push(collector);
collector = "";
}
break;
}
Expand Down
Loading