diff --git a/packages/eslint-config/CHANGELOG.md b/packages/eslint-config/CHANGELOG.md index bd1b3ba..1a7d0c0 100644 --- a/packages/eslint-config/CHANGELOG.md +++ b/packages/eslint-config/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 1.2.1 (2023-11-22) + +### Features / Enhancements + +- Allow \_\_html property in react files (#11) + +## 1.2.0 (2023-11-22) + +### Features / Enhancements + +- Add ESLint naming convention rule (#10) + ## 1.1.0 (2023-11-19) ### Features / Enhancements diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index ee998ab..c305fb0 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -10,6 +10,10 @@ const getNamingConventionRule = ({ target = 'default' }) => ({ ? { selector: ['default'], format: ['strictCamelCase', 'StrictPascalCase'], + filter: { + regex: '^__html$', + match: false, + }, } : { selector: ['default'], diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 6ba723c..f477409 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -32,5 +32,5 @@ "lint": "eslint './tests/**/*.{ts,tsx}'", "test:ci": "" }, - "version": "1.2.0" + "version": "1.2.1" } diff --git a/packages/eslint-config/tests/naming-convention.tsx b/packages/eslint-config/tests/naming-convention.tsx index bcf7331..7a460ec 100644 --- a/packages/eslint-config/tests/naming-convention.tsx +++ b/packages/eslint-config/tests/naming-convention.tsx @@ -84,5 +84,5 @@ export const service = new Service(); const Component: React.FC = () => { const onChange = () => {}; - return ; + return ; };