Skip to content

Commit

Permalink
Use flat config with tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
syunta committed Aug 6, 2024
1 parent 455f636 commit 77357b3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rules/tailwindcss.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
const config = require('./config-helper.js');
const { FlatCompat } = require('@eslint/eslintrc');
const { fixupPluginRules } = require('@eslint/compat');

const compat = new FlatCompat();
const tailwindcssLint = require('eslint-plugin-tailwindcss');

module.exports = config({
files: ['**/*.ts', '**/*.tsx'],
extends: [...fixupPluginRules(compat.extends('plugin:tailwindcss/recommended'))],
extends: [...tailwindcssLint.configs['flat/recommended']],
rules: {
'tailwindcss/migration-from-tailwind-2': 'off',
},
Expand Down

0 comments on commit 77357b3

Please sign in to comment.