Skip to content

Commit

Permalink
fix: Replaced linting tool with a stricter one and fixed i18n issue i…
Browse files Browse the repository at this point in the history
…n Node v22.12.0
  • Loading branch information
TNXG committed Jan 6, 2025
1 parent 9c84f5b commit fdc2d96
Show file tree
Hide file tree
Showing 61 changed files with 2,216 additions and 18,384 deletions.
45 changes: 0 additions & 45 deletions .github/ISSUE_TEMPLATE/🚀-enhancement-request.md

This file was deleted.

50 changes: 0 additions & 50 deletions .github/ISSUE_TEMPLATE/🛠️-bug-report.md

This file was deleted.

12 changes: 0 additions & 12 deletions .prettierrc.mjs

This file was deleted.

7 changes: 5 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"],
"unwantedRecommendations": []
"recommendations": [
"astro-build.astro-vscode",
"unifiedjs.vscode-mdx",
"dbaeumer.vscode-eslint"
]
}
56 changes: 52 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
{
"i18n-ally.localesPaths": [
"src/locales"
]
}
"i18n-ally.localesPaths": [
"src/locales"
],
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"json5",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ A simple, elegant, and fast static blog template! 🚀 Built with Astro
## 📝 Note on Node.js Compatibility

Frosti is currently compatible with Node.js versions **18.x** and **20.x**. If you are using Node.js v22.x, you may encounter unexpected issues.
Frosti is currently compatible with Node.js versions **18.x** and **20.x**. If you are using Node.js v22.x, you may encounter unexpected issues.

To ensure proper functionality:

1. Use Node.js version 18.x or 20.x.
2. If needed, switch your Node.js version using tools like [nvm](https://github.com/nvm-sh/nvm).

Expand Down
5 changes: 0 additions & 5 deletions astro-i18next.config.mjs

This file was deleted.

Loading

0 comments on commit fdc2d96

Please sign in to comment.