Skip to content

Commit

Permalink
Update vite, linter
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Jul 28, 2024
1 parent c2a5a6c commit f988cec
Show file tree
Hide file tree
Showing 9 changed files with 2,948 additions and 2,008 deletions.
37 changes: 0 additions & 37 deletions .eslintrc.cjs

This file was deleted.

39 changes: 39 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// @ts-check
import js from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
import gitignore from 'eslint-config-flat-gitignore';

/**
* @type {import("eslint").Linter.Config[]}
*/
const config = [
gitignore(),
js.configs.recommended,
eslintConfigPrettier,
{
languageOptions: {
globals: {
...globals.browser,
fathom: 'readonly',
},

ecmaVersion: 2020,
sourceType: 'module',
},

rules: {
'prefer-arrow-callback': ['error', { allowNamedFunctions: true }],
'prefer-const': ['error', { destructuring: 'all' }],
'no-var': 'error',
},
},
{
files: ['lib/*.mjs'],
languageOptions: {
globals: globals.node,
},
},
];

export default config;
Loading

0 comments on commit f988cec

Please sign in to comment.