Skip to content

Commit e438c7c

Browse files
committed
Updated eslint config and fixed lint errors
1 parent 7d4a788 commit e438c7c

File tree

10 files changed

+20
-526
lines changed

10 files changed

+20
-526
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,3 +268,4 @@ All commands are run from the root of the project, from a terminal:
268268
- Updated Katex CSS to 0.16.23
269269
- Replaced bespoke leaflet integration with [Astro Leaflet](https://github.com/pascal-brand38/astro-leaflet)
270270
- Replaced bespoke Swiper integration with [Astro Swiper](https://github.com/pascal-brand38/astro-swiper)
271+
- Updated eslint config and fixed lint errors

eslint.config.mjs

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import js from '@eslint/js'
44
import tseslint from 'typescript-eslint'
55
import astro from 'eslint-plugin-astro'
66
import prettier from 'eslint-plugin-prettier'
7+
// import markdown from '@eslint/markdown'
78
import * as mdx from 'eslint-plugin-mdx'
8-
// import markdown from "@eslint/markdown";
99

1010
// parsers
1111
const tsParser = tseslint.parser
@@ -58,20 +58,24 @@ export default defineConfig([
5858
}
5959
},
6060
// {
61-
// files: ["**/*.md"],
61+
// files: ['**/*.md'],
6262
// plugins: {
63-
// markdown,
63+
// markdown
6464
// },
65-
// extends: ["markdown/recommended"],
66-
// language: "markdown/gfm",
67-
// languageOptions: {
68-
// frontmatter: "yaml",
69-
// },
65+
// language: 'markdown/gfm',
66+
// processor: 'markdown/markdown',
7067
// rules: {
71-
// // "markdown/no-html": "error",
72-
// },
68+
// // Minimal rules for markdown to avoid conflicts
69+
// 'no-html': 'off'
70+
// }
7371
// },
74-
{ ...mdx.flat },
72+
{
73+
...mdx.flat,
74+
rules: {
75+
'@typescript-eslint/no-unused-expression': 'off',
76+
'@typescript-eslint/no-unused-vars': 'off'
77+
}
78+
},
7579
// Ignore patterns
7680
{
7781
ignores: ['dist/**', '**/*.d.ts', '.github/']

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"astro-robots-txt": "^1.0.0",
2929
"eslint": "^9.37.0",
3030
"eslint-plugin-astro": "^1.3.1",
31-
"eslint-plugin-css": "^0.11.0",
3231
"eslint-plugin-jsx-a11y": "^6.10.2",
3332
"eslint-plugin-mdx": "^3.6.2",
3433
"eslint-plugin-prettier": "^5.5.4",
@@ -55,7 +54,6 @@
5554
"@iconify-json/bi": "^1.2.6",
5655
"@iconify-json/heroicons": "^1.2.3",
5756
"@tailwindcss/vite": "^4.1.14",
58-
"astro-geo-map": "^2.0.0",
5957
"astro-icon": "^1.1.5",
6058
"astro-leaflet": "^1.8.1",
6159
"astro-masonry": "^1.2.2",

0 commit comments

Comments
 (0)