Skip to content

Commit

Permalink
Update lint configurations (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
kytta authored Jan 26, 2025
2 parents ceb4a5f + 382595b commit 71ea203
Show file tree
Hide file tree
Showing 8 changed files with 1,409 additions and 364 deletions.
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

30 changes: 0 additions & 30 deletions .eslintrc.json

This file was deleted.

30 changes: 30 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// This ESLint config is part of Share₂Fedi
// https://github.com/kytta/share2fedi
//
// SPDX-FileCopyrightText: © 2023 Nikita Karamov <[email protected]>
// SPDX-License-Identifier: CC0-1.0
import globals from "globals";
import js from "@eslint/js";
import ts from "typescript-eslint";
import astro from "eslint-plugin-astro";
import unicorn from "eslint-plugin-unicorn";
import prettier from "eslint-config-prettier";

/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
export default [
{
ignores: [".astro", ".vercel/", "dist/", "script/"],
},
{
languageOptions: {
globals: {
...globals.browser,
},
},
},
js.configs.recommended,
...ts.configs.recommended,
unicorn.configs["flat/recommended"],
...astro.configs["jsx-a11y-strict"],
prettier,
];
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,30 @@
},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@eslint/js": "^9.19.0",
"@types/node": "^22.10.10",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@typescript-eslint/parser": "^8.21.0",
"browserslist": "^4.24.4",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-unicorn": "^56.0.1",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lightningcss": "^1.29.1",
"lint-staged": "^15.4.2",
"postcss-html": "^1.8.0",
"prettier": "^3.4.2",
"prettier-plugin-astro": "^0.14.1",
"sass": "^1.83.4",
"sharp": "^0.33.5",
"stylelint": "^16.14.0",
"stylelint-config-standard-scss": "^13.1.0",
"svgo": "^3.3.2"
"stylelint-config-html": "^1.1.0",
"stylelint-config-standard-scss": "^14.0.0",
"svgo": "^3.3.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.21.0"
},
"lint-staged": {
"*": "pnpm run fix:prettier",
Expand All @@ -71,9 +77,6 @@
"prettier": {
"singleAttributePerLine": true
},
"stylelint": {
"extends": "stylelint-config-standard-scss"
},
"engines": {
"node": "^18.17.1 || ^20.3.0 || ^22.0.0"
}
Expand Down
Loading

0 comments on commit 71ea203

Please sign in to comment.