diff --git a/.eslintrc.json b/.eslintrc.json index d259ef4..e3ebc4e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,9 +6,10 @@ "eslint:recommended", "plugin:react/recommended", "plugin:react-hooks/recommended", + "plugin:tailwindcss/recommended", "plugin:prettier/recommended" ], - "plugins": ["react", "react-hooks"], + "plugins": ["react", "react-hooks", "simple-import-sort"], "parserOptions": { "ecmaVersion": 2020, "sourceType": "module", @@ -22,6 +23,8 @@ "es2020": true }, "rules": { - "react/react-in-jsx-scope": "off" + "react/react-in-jsx-scope": "off", + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error" } } diff --git a/package-lock.json b/package-lock.json index 8e11a89..9bff6e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,6 +44,8 @@ "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.34.3", "eslint-plugin-react-hooks": "^4.6.2", + "eslint-plugin-simple-import-sort": "^12.1.1", + "eslint-plugin-tailwindcss": "^3.17.4", "globals": "^15.8.0", "husky": "^9.0.11", "jsdom": "^24.1.0", @@ -4321,6 +4323,31 @@ "semver": "bin/semver.js" } }, + "node_modules/eslint-plugin-simple-import-sort": { + "version": "12.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-12.1.1.tgz", + "integrity": "sha512-6nuzu4xwQtE3332Uz0to+TxDQYRLTKRESSc2hefVT48Zc8JthmN23Gx9lnYhu0FtkRSL1oxny3kJ2aveVhmOVA==", + "dev": true, + "peerDependencies": { + "eslint": ">=5.0.0" + } + }, + "node_modules/eslint-plugin-tailwindcss": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-tailwindcss/-/eslint-plugin-tailwindcss-3.17.4.tgz", + "integrity": "sha512-gJAEHmCq2XFfUP/+vwEfEJ9igrPeZFg+skeMtsxquSQdxba9XRk5bn0Bp9jxG1VV9/wwPKi1g3ZjItu6MIjhNg==", + "dev": true, + "dependencies": { + "fast-glob": "^3.2.5", + "postcss": "^8.4.4" + }, + "engines": { + "node": ">=18.12.0" + }, + "peerDependencies": { + "tailwindcss": "^3.4.0" + } + }, "node_modules/eslint-scope": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", diff --git a/package.json b/package.json index 6ca5822..daa14dd 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,8 @@ "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.34.3", "eslint-plugin-react-hooks": "^4.6.2", + "eslint-plugin-simple-import-sort": "^12.1.1", + "eslint-plugin-tailwindcss": "^3.17.4", "globals": "^15.8.0", "husky": "^9.0.11", "jsdom": "^24.1.0",