forked from themesberg/flowbite-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
29 lines (29 loc) · 848 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended',
'plugin:storybook/recommended',
'plugin:tailwindcss/recommended',
],
ignorePatterns: ['.eslintrc.js', 'config-overrides.js', 'lint-staged.js', 'postcss.config.js', 'tailwind.config.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
project: ['tsconfig.json', 'tsconfig.lib.json', 'cypress/tsconfig.json'],
},
plugins: ['@typescript-eslint', 'prettier', 'react-hooks', 'storybook', 'tailwindcss'],
root: true,
rules: {
'@typescript-eslint/consistent-type-imports': 'warn',
'tailwindcss/classnames-order': [
'warn',
{
officialSorting: true,
},
],
},
};