Skip to content

Commit b98c6ef

Browse files
change the import sort library to be the eslint-perfectionist
1 parent 1c86471 commit b98c6ef

5 files changed

Lines changed: 50 additions & 38 deletions

File tree

packages/eslint-config/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @molao-ui/eslint-config
22

3+
## 4.0.1
4+
5+
### Patch Changes
6+
7+
- change the import sort library to be the eslint-perfectionist
8+
39
## 4.0.0
410

511
### Major Changes

packages/eslint-config/index.js

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ module.exports = {
7070
},
7171
],
7272

73-
"import-helpers/order-imports": [
74-
"warn",
75-
{
76-
newlinesBetween: "always",
77-
groups: [
78-
["/^react/", "module"],
79-
"/^~/",
80-
["parent", "sibling", "index"],
81-
],
82-
alphabetize: { order: "ignore", ignoreCase: true },
83-
},
84-
],
73+
// "import-helpers/order-imports": [
74+
// "warn",
75+
// {
76+
// newlinesBetween: "always",
77+
// groups: [
78+
// ["/^react/", "module"],
79+
// "/^~/",
80+
// ["parent", "sibling", "index"],
81+
// ],
82+
// alphabetize: { order: "ignore", ignoreCase: true },
83+
// },
84+
// ],
8585

8686
"perfectionist/sort-object-types": [
8787
"error",
@@ -150,7 +150,14 @@ module.exports = {
150150
"error",
151151
{
152152
type: "line-length",
153-
order: "asc",
153+
order: "desc",
154+
},
155+
],
156+
"perfectionist/sort-imports": [
157+
"error",
158+
{
159+
type: "line-length",
160+
order: "desc",
154161
},
155162
],
156163
"perfectionist/sort-object-types": [

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"license": "ISC",
2121
"main": "index.js",
2222
"name": "@molao-ui/eslint-config",
23-
"version": "4.0.0"
23+
"version": "4.0.1"
2424
}

packages/react/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
{
2-
"name": "@molao-ui/react",
3-
"version": "2.1.4",
4-
"description": "",
5-
"main": "dist/index.js",
6-
"module": "dist/index.mjs",
7-
"types": "dist/index.d.ts",
8-
"scripts": {
9-
"build": "tsup src/index.tsx --format esm,cjs --dts --external react",
10-
"dev": "tsup src/index.tsx --format esm,cjs --dts --external react --watch",
11-
"lint": "eslint src/**/*.ts* --fix"
12-
},
13-
"keywords": [],
142
"author": "",
15-
"license": "ISC",
16-
"files": [
17-
"dist"
18-
],
3+
"dependencies": {
4+
"@radix-ui/react-avatar": "^1.0.1",
5+
"@radix-ui/react-checkbox": "^1.0.1",
6+
"@stitches/react": "^1.2.8",
7+
"phosphor-react": "^1.4.1"
8+
},
9+
"description": "",
1910
"devDependencies": {
2011
"@molao-ui/eslint-config": "*",
2112
"@molao-ui/tokens": "*",
@@ -26,10 +17,19 @@
2617
"tsup": "^6.5.0",
2718
"typescript": "^4.9.5"
2819
},
29-
"dependencies": {
30-
"@radix-ui/react-avatar": "^1.0.1",
31-
"@radix-ui/react-checkbox": "^1.0.1",
32-
"@stitches/react": "^1.2.8",
33-
"phosphor-react": "^1.4.1"
34-
}
35-
}
20+
"files": [
21+
"dist"
22+
],
23+
"keywords": [],
24+
"license": "ISC",
25+
"main": "dist/index.js",
26+
"module": "dist/index.mjs",
27+
"name": "@molao-ui/react",
28+
"scripts": {
29+
"build": "tsup src/index.tsx --format esm,cjs --dts --external react",
30+
"dev": "tsup src/index.tsx --format esm,cjs --dts --external react --watch",
31+
"lint": "eslint src/**/*.ts* --fix"
32+
},
33+
"types": "dist/index.d.ts",
34+
"version": "2.1.4"
35+
}

packages/react/src/components/Checkbox/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Check } from 'phosphor-react'
22
import { ComponentProps } from 'react'
3-
43
import { CheckboxContainer, CheckboxIndicator } from './styles'
54

65
export interface CheckboxProps

0 commit comments

Comments
 (0)