Skip to content

Commit

Permalink
Updating references & eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljolley committed Nov 17, 2024
1 parent 627638b commit d79493c
Show file tree
Hide file tree
Showing 4 changed files with 5,309 additions and 3,684 deletions.
14 changes: 0 additions & 14 deletions .eslintrc

This file was deleted.

30 changes: 30 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import parser from "astro-eslint-parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("plugin:astro/recommended"), {
files: ["**/*.astro"],

languageOptions: {
parser: parser,
ecmaVersion: 5,
sourceType: "script",

parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
},

rules: {},
}];
38 changes: 20 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,33 @@
"preview": "astro preview",
"astro": "astro",
"format": "prettier --write .",
"lint": "eslint --ext .astro,.js,.ts"
"lint": "eslint"
},
"dependencies": {
"@astrojs/check": "^0.5.1",
"@astrojs/netlify": "^5.1.2",
"@astrojs/preact": "^3.1.0",
"@astrojs/rss": "^4.0.5",
"astro": "^4.4.0",
"astro-expressive-code": "^0.32.4",
"preact": "^10.19.4",
"@astrojs/check": "^0.9.4",
"@astrojs/netlify": "^5.5.4",
"@astrojs/preact": "^3.5.3",
"@astrojs/rss": "^4.0.9",
"astro": "^4.16.13",
"astro-expressive-code": "^0.38.3",
"preact": "^10.24.3",
"tippy.js": "^6.3.7",
"typescript": "^5.3.3"
"typescript": "^5.6.3"
},
"devDependencies": {
"@types/qs": "^6.9.11",
"@typescript-eslint/parser": "^6.21.0",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.15.0",
"@types/qs": "^6.9.17",
"@typescript-eslint/parser": "^8.14.0",
"ap-style-title-case": "^2.0.0",
"eslint": "^8.56.0",
"eslint-plugin-astro": "^0.31.4",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint": "^9.15.0",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"hastscript": "^9.0.0",
"node-html-parser": "^6.1.12",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.13.0",
"qs": "^6.11.2",
"node-html-parser": "^6.1.13",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"qs": "^6.13.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0"
}
Expand Down
Loading

0 comments on commit d79493c

Please sign in to comment.