Skip to content

Commit

Permalink
chore: lint overhaul (#458)
Browse files Browse the repository at this point in the history
* refactor: remove antd and antd icons

* fix: further styling fixes

* fix: further styling fixes

* fix: further styling fixes

* fix: broken changelog

* fix: further styling fixes

* fix: lint

* fix: remove testing code

* refactor: move lint to prettier

* style: run lint

* refactor: add react-hooks and tailwind lint

* style: run lint

* refactor: fix lint issues

* style: run lint

* chore: fix lint

* fix: simplebar import

* fix: selected track styling
  • Loading branch information
Benjozork authored Mar 26, 2024
1 parent 9020727 commit 0458df8
Show file tree
Hide file tree
Showing 81 changed files with 10,342 additions and 9,541 deletions.
39 changes: 39 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'react', 'tailwindcss'],
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
],
env: {
browser: true,
es2021: true,
node: true,
},
parserOptions: {
sourceType: 'module',
},
settings: {
react: { version: 'detect' },
},
rules: {
'prettier/prettier': [
'error',
{},
{
usePrettierrc: true,
},
],
'no-console': 'off',

'tailwindcss/classnames-order': 'error',
'tailwindcss/enforces-negative-arbitrary-values': 'error',
'tailwindcss/enforces-shorthand': 'error',
'tailwindcss/migration-from-tailwind-2': 'error',
'tailwindcss/no-contradicting-classname': 'error',
},
};
89 changes: 0 additions & 89 deletions .eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"printWidth": 120,
"parser": "typescript",
"endOfLine": "auto"
}
Loading

0 comments on commit 0458df8

Please sign in to comment.