Skip to content

Commit ed56f3a

Browse files
committed
Restructures project files and change code-style from StandardJS to @wezom/code-style
1 parent 2cd4885 commit ed56f3a

File tree

13 files changed

+3557
-2968
lines changed

13 files changed

+3557
-2968
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[{package.json, package-lock.json}]
4+
indent_style = space
5+
indent_size = 2
6+
7+
[*.md]
8+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"root": true,
3+
"extends": ["@wezom/eslint-config", "eslint-config-prettier"],
4+
"plugins": ["jest"],
5+
"env": {
6+
"jest/globals": true
7+
}
8+
}

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package.json
2+
package-lock.json
3+
.gitignore

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"jsxBracketSameLine": false,
5+
"printWidth": 90,
6+
"semi": true,
7+
"singleQuote": true,
8+
"trailingComma": "none",
9+
"tabWidth": 4,
10+
"useTabs": true
11+
}

README-RU.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
|
1313
:ru: Русский язык
1414

15+
[![image](https://raw.githubusercontent.com/WezomCompany/code-style/main/assets/code-style-badge-white.svg)](https://github.com/WezomCompany/code-style)
16+
1517
> Пользовательский метод сортировки (mobile-first / desktop-first) для [`css-mqpacker`](https://www.npmjs.com/package/css-mqpacker) или [`pleeease`](https://www.npmjs.com/package/pleeease) (который использует css-mqpacker) или, возможно, для чего-то еще ))
1618
1719
## Альтернатива `mqpacker`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# sort-css-media-queries
22

3-
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
43
![types](https://img.shields.io/badge/types-TypeScript-blue)
54
![npm](https://img.shields.io/badge/node-6.3.0-yellow.svg)
65
![license](https://img.shields.io/badge/License-MIT-orange.svg)
@@ -12,6 +11,7 @@
1211
|
1312
:ru: [Русский язык](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/README-RU.md)
1413

14+
[![image](https://raw.githubusercontent.com/WezomCompany/code-style/main/assets/code-style-badge-white.svg)](https://github.com/WezomCompany/code-style)
1515

1616
> The custom `sort` method (mobile-first / desktop-first) for [`css-mqpacker`](https://www.npmjs.com/package/css-mqpacker) or [`pleeease`](https://www.npmjs.com/package/pleeease) (which uses css-mqpacker) or, perhaps, something else ))
1717

index.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

index.js

Lines changed: 0 additions & 250 deletions
This file was deleted.

lib/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export = sortCSSmq;
2+
declare function sortCSSmq<T = string>(a: T, b: T): number;
3+
declare namespace sortCSSmq {
4+
function desktopFirst<T = string>(a: T, b: T): number;
5+
}

0 commit comments

Comments
 (0)