Skip to content

Commit

Permalink
fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
yuheiy committed Dec 13, 2024
1 parent 8ca16ab commit 7ad2568
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import js from '@eslint/js';
import astro from 'eslint-plugin-astro';
import tailwindcss from 'eslint-plugin-tailwindcss';
import ts from 'typescript-eslint';
import tailwindConfig from './tailwind.config.js';

/** @type {import('eslint').Linter.Config} */
export default [
Expand Down Expand Up @@ -29,5 +30,10 @@ export default [
// use prettier-plugin-tailwindcss for class sorting
'tailwindcss/classnames-order': 'off',
},
settings: {
tailwindcss: {
config: tailwindConfig,
},
},
},
];
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import postcss from 'postcss';
import colors from 'tailwindcss/colors';
import plugin from 'tailwindcss/plugin';
import colors from 'tailwindcss/colors.js';
import plugin from 'tailwindcss/plugin.js';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
Expand Down

0 comments on commit 7ad2568

Please sign in to comment.