Skip to content

Commit

Permalink
chore: simplify eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
will-stone committed Sep 16, 2023
1 parent d69a503 commit 24920a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
20 changes: 1 addition & 19 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
import { FlatCompat } from '@eslint/eslintrc'
import config from '@will-stone/eslint-config'

const compat = new FlatCompat()

export default [
{
ignores: ['.webpack/'],
},
...config,
...compat.extends('plugin:tailwindcss/recommended'),
{
files: ['**/*.tsx'],
rules: {
'tailwindcss/no-custom-classname': [
'warn',
{ whitelist: ['draggable', 'no-drag'] },
],
},
},
]
export default [...config]
11 changes: 5 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@electron-forge/plugin-base": "^6.3.0",
"@electron-forge/plugin-webpack": "^6.3.0",
"@electron-forge/shared-types": "^6.3.0",
"@eslint/eslintrc": "^2.1.2",
"@reduxjs/toolkit": "^1.9.5",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
Expand All @@ -61,7 +60,7 @@
"@types/react-dom": "^18.2.7",
"@types/react-redux": "^7.1.25",
"@vercel/webpack-asset-relocator-loader": "^1.7.3",
"@will-stone/eslint-config": "^0.0.7",
"@will-stone/eslint-config": "^0.1.0",
"@will-stone/prettier-config": "^7.0.1",
"app-exists": "^2.1.1",
"axios": "^1.4.0",
Expand All @@ -74,7 +73,6 @@
"electron": "^25.5.0",
"electron-log": "^4.4.8",
"eslint": "^8.49.0",
"eslint-plugin-tailwindcss": "^3.13.0",
"fast-deep-equal": "^3.1.3",
"fork-ts-checker-webpack-plugin": "^8.0.0",
"husky": "^8.0.3",
Expand Down

0 comments on commit 24920a9

Please sign in to comment.