Skip to content

Commit

Permalink
Update postcss plugin and remove stylelint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
petrukhin committed Dec 8, 2023
1 parent 6a1ef6f commit c3a4d53
Show file tree
Hide file tree
Showing 121 changed files with 2,336 additions and 9,055 deletions.
5,925 changes: 891 additions & 5,034 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions packages/postcss-logical-fallback/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
],
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
Expand All @@ -23,7 +22,6 @@
"es6": true
},
"rules": {
"jest/expect-expect": "off",
"@typescript-eslint/no-var-requires": "off"
}
}
3 changes: 1 addition & 2 deletions packages/postcss-logical-fallback/.lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"*.ts": ["eslint --fix"],
"*.css": ["stylelint --fix"]
"*.ts": ["eslint --fix"]
}
15 changes: 0 additions & 15 deletions packages/postcss-logical-fallback/.stylelintrc

This file was deleted.

21 changes: 0 additions & 21 deletions packages/postcss-logical-fallback/CHANGELOG.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/postcss-logical-fallback/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

[PostCSS]: https://github.com/postcss/postcss

**Рекомендуется использовать вместе
со [stylelint плагином](https://github.com/yandex/i18n-utils/packages/stylelint-use-logical-properties)**

Цель данного плагина в том, чтобы создавать фолбеки для плохо поддерживаемых логических
свойств.
Мы выделили:
Expand Down
13 changes: 0 additions & 13 deletions packages/postcss-logical-fallback/jest.config.js

This file was deleted.

21 changes: 6 additions & 15 deletions packages/postcss-logical-fallback/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
25 changes: 0 additions & 25 deletions packages/postcss-logical-fallback/scripts/check-package-ver.mjs

This file was deleted.

This file was deleted.

61 changes: 0 additions & 61 deletions packages/postcss-logical-fallback/src/constants/index.ts

This file was deleted.

19 changes: 0 additions & 19 deletions packages/postcss-logical-fallback/src/constants/inset-constants.ts

This file was deleted.

This file was deleted.

This file was deleted.

56 changes: 0 additions & 56 deletions packages/postcss-logical-fallback/src/create-inset-fallback.ts

This file was deleted.

This file was deleted.

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)
Loading

0 comments on commit c3a4d53

Please sign in to comment.