Skip to content

Commit

Permalink
chore: update eslint.config.js and postcss.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Oct 16, 2024
1 parent 28b2689 commit 316b838
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 37 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.cjs

This file was deleted.

44 changes: 44 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser,
svelteFeatures: {
experimentalGenerics: true
}
}
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/', 'test-results/', '*.md', '.vercel/', '.github/', 'node_modules/']
},
{
rules: {
// Note: you must disable the base rule as it can report incorrect errors
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'svelte/no-at-html-tags': 'off'
}
}
];
12 changes: 0 additions & 12 deletions postcss.config.cjs

This file was deleted.

6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
};

0 comments on commit 316b838

Please sign in to comment.