-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update postcss plugin and remove stylelint plugin
- Loading branch information
petrukhin
committed
Dec 8, 2023
1 parent
6a1ef6f
commit c3a4d53
Showing
121 changed files
with
2,336 additions
and
9,055 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"*.ts": ["eslint --fix"], | ||
"*.css": ["stylelint --fix"] | ||
"*.ts": ["eslint --fix"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,10 @@ | |
], | ||
"scripts": { | ||
"build": "rollup -c --bundleConfigAsCjs", | ||
"lint": "npm run lint:ts && npm run stylelint", | ||
"lint:ts": "eslint .", | ||
"stylelint": "stylelint **/*.css --fix", | ||
"test": "jest", | ||
"test:watch": "jest --watchAll", | ||
"lint": "eslint .", | ||
"test": "uvu -r tsm ./tests", | ||
"pre-commit": "concurrently --names \"Lint,Test\" -c \"bgBlue.bold,bgMagenta.bold\" \"npm run lint\" \"npm run test\"", | ||
"prepublishOnly": "npm run build", | ||
"checkPackageVer": "node --experimental-json-modules scripts/check-package-ver.mjs" | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"author": "Alexey Erhskov <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -33,24 +29,19 @@ | |
"postcss": "^8.4.21" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "29.4.0", | ||
"@types/stylelint": "14.0.0", | ||
"@types/node": "20.9.2", | ||
"@typescript-eslint/eslint-plugin": "5.54.0", | ||
"@typescript-eslint/parser": "5.54.0", | ||
"clean-publish": "^3.4.2", | ||
"concurrently": "7.6.0", | ||
"eslint": "8.35.0", | ||
"eslint-config-prettier": "8.7.0", | ||
"eslint-plugin-jest": "^25.2.2", | ||
"jest": "29.5.0", | ||
"prettier": "2.8.4", | ||
"rollup": "3.18.0", | ||
"rollup-plugin-esbuild": "5.0.0", | ||
"stylelint": "15.5.0", | ||
"stylelint-prettier": "3.0.0", | ||
"ts-jest": "29.0.5", | ||
"tsm": "2.3.0", | ||
"typescript": "4.9.5", | ||
"@types/node": "~20.6.3" | ||
"uvu": "0.5.6" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
|
25 changes: 0 additions & 25 deletions
25
packages/postcss-logical-fallback/scripts/check-package-ver.mjs
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
packages/postcss-logical-fallback/src/constants/border-radius-constants.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
packages/postcss-logical-fallback/src/constants/inset-constants.ts
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
packages/postcss-logical-fallback/src/constants/margin-constants.ts
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/postcss-logical-fallback/src/constants/padding-constants.ts
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
packages/postcss-logical-fallback/src/create-inset-fallback.ts
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
packages/postcss-logical-fallback/src/create-shorthands-fallback.ts
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
packages/postcss-logical-fallback/src/decl-processors/border-radius-positioned.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { processor as positionedProcessor } from './positioned' | ||
|
||
const declMap = { | ||
ltr: { | ||
'border-start-start-radius': 'border-top-left-radius', | ||
'border-start-end-radius': 'border-top-right-radius', | ||
'border-end-start-radius': 'border-bottom-left-radius', | ||
'border-end-end-radius': 'border-bottom-right-radius', | ||
}, | ||
rtl: { | ||
'border-start-start-radius': 'border-top-right-radius', | ||
'border-start-end-radius': 'border-top-left-radius', | ||
'border-end-start-radius': 'border-bottom-right-radius', | ||
'border-end-end-radius': 'border-bottom-left-radius', | ||
} | ||
} | ||
|
||
const defaultValue = '0' | ||
|
||
export const processor = positionedProcessor.bind(null, declMap, defaultValue) |
Oops, something went wrong.