From 9141a8e0f7e57ba377b6823579b6b75c889d3da8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:55:19 +0100 Subject: [PATCH 1/2] Version Packages (#6) Co-authored-by: github-actions[bot] --- .changeset/funny-countries-rest.md | 5 ----- CHANGELOG.md | 6 ++++++ package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/funny-countries-rest.md diff --git a/.changeset/funny-countries-rest.md b/.changeset/funny-countries-rest.md deleted file mode 100644 index dff56a1..0000000 --- a/.changeset/funny-countries-rest.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@zemd/eslint-flat-config": patch ---- - -avoiding react/function-component-definition rule diff --git a/CHANGELOG.md b/CHANGELOG.md index 51ae51a..811aa1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @zemd/eslint-flat-config +## 2.0.3 + +### Patch Changes + +- 1976ee2: avoiding react/function-component-definition rule + ## 2.0.2 ### Patch Changes diff --git a/package.json b/package.json index 20813dd..01f67fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zemd/eslint-flat-config", - "version": "2.0.2", + "version": "2.0.3", "license": "LGPL-3.0-or-later", "description": "Shared zemd ESLint flat config", "keywords": [ From 1ee2aaf2599ca206094aa2d2a8614aff84771f5c Mon Sep 17 00:00:00 2001 From: Dmytro Zelenetskyi Date: Mon, 4 Mar 2024 14:26:06 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dada668..57c8f81 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,17 @@ npm install eslint @zemd/eslint-flat-config --save-dev ```typescript // eslint.config.js -import { config } from "@zemd/eslint-flat-config"; -export default [...config]; +const { createEslintConfig } = require("@zemd/eslint-flat-config"); +export default [ + { + ignores: [".next/**", ".turbo/**", "node_modules/**"], + }, + ...createEslintConfig({ + useNextjs: true, + useTailwind: true, + useTurbo: true, + }), +]; ``` ### Debug your rules