Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
onkofonko committed Jan 14, 2025
1 parent 26e94ef commit 5f2793d
Show file tree
Hide file tree
Showing 7 changed files with 3,651 additions and 826 deletions.
40 changes: 40 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// @ts-check
import eslint from '@eslint/js';
import eslintPluginAstro from 'eslint-plugin-astro';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['**/dist', '**/node_modules', '**/.astro', '**/.github', '**/.changeset'],
},

// Global config
// JavaScript
eslint.configs.recommended,
// TypeScript
...tseslint.configs.recommended,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
// Allow triple-slash references in `*.d.ts` files.
{
files: ['**/*.d.ts'],
rules: {
'@typescript-eslint/triple-slash-reference': 'off',
},
},

// Astro
...eslintPluginAstro.configs.recommended,

// Set globals for Node scripts.
{
files: ['scripts/**'],
languageOptions: {
globals: globals.node,
},
}
);
Loading

0 comments on commit 5f2793d

Please sign in to comment.