Releases: AhmedBaset/eslint-plugin-rtl-friendly
0.5.0
0.5.0
Minor Changes
-
#57
9c85bbbThanks @AhmedBaset! - # Add support for more className casesPreviously the plugin only supported literal values like
className="...", which lead to a big miss, Now it supports more cases:className={"..."}(Auto Fixable)- Template Literal:
className={``}(Auto Fixable) - Terenary Operator:
className={condition ? "..." : "..."}
-
#60
affc583Thanks @AhmedBaset! - Add auto-fixing for ternary operator -
#61
07bbde9Thanks @AhmedBaset! - feat: detect classes inCallExpression,ArrayExpression,ObjectExpression -
#66
7fb8f4fThanks @AhmedBaset! - feat: Support detecting classes inBinaryExpression"..." + "..."` -
#67
8e6c4caThanks @AhmedBaset! - SupportTaggedTemplate("tw`...`")- tw`...` is supported but tw`... ${...}` is not yet
-
#70
c1bbde2Thanks @AhmedBaset! - Look for Identifier declerationconst a = "text-left"; // ^^^^^^^^^ This text is used later as a class name but contains physical properties such as "text-left". It's better to use logical properties like "test-start" for improved RTL support. return <div className={a} />;
Or even if it's assigned to another variable
const a = "text-left"; // ^^^^^^^^^ const b = a; return <div className={b} />;
-
#90
f7fa50aThanks @AhmedBaset! - Add optionallowPhysicalInsetWithAbsoluteto allow the use ofleft-1/2withfixed -translate-x-1/2 -
Add option
debug
Patch Changes
-
#54
b305432Thanks @AhmedBaset! - Restructure the codebase:- Integrate Changeset to document the updates.
- Move rule definition, its tests, and docs to a folder in
src/rulesinstead of the horizontal structure.
-
#63
6b98d59Thanks @AhmedBaset! - Vitest instead of Jest
Full Changelog: 0.2.3...0.5.0
0.2.3
Bug Fixes:
- fix a bug when using media query, important, and negative modifiers together e.g.
md:!-pl-2by @AhmedBaset in #26
Full Changelog: 0.2.0...0.2.3
0.2.0 `!important` flag & `modifier:property`
Now the plugin can detect !pl-*, md:pl-*, and md:!pl-*.
pnpm add -D eslint-plugin-rtl-friendly@latest
yarn add -D eslint-plugin-rtl-friendly@latest
npm install -D eslint-plugin-rtl-friendly@latestdevDependencies:
- eslint-plugin-rtl-friendly 0.1.0
+ eslint-plugin-rtl-friendly 0.2.0What's Changed
- feat: detect physical properties with important flag or modifires by @A7med3bdulBaset in #1
Full Changelog: 0.1.0...0.2.0
Introducing `eslint-plugin-rtl-friendly`
Version: 1.0.0
Introducing the eslint-plugin-rtl-friendly, your go-to linter for crafting international web applications that seamlessly accommodate right-to-left (RTL) languages.
Key Highlights:
- Rule:
no-physical-properties
This release introduces theno-physical-propertiesrule, designed to report tailwindcss classes to be written in logical properties.
Learn more about the plugin and its capabilities here.
Full Changelog: https://github.com/A7med3bdulBaset/eslint-plugin-rtl-friendly/commits/0.1.0