Skip to content

Commit

Permalink
fix: configs
Browse files Browse the repository at this point in the history
  • Loading branch information
lzear committed Nov 5, 2023
1 parent cc4530f commit 5e6d6c9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
8 changes: 8 additions & 0 deletions configs/all.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import mod from '../index.js'

export default {
plugins: {
dont: mod,
},
rules: mod.configs.all.rules,
}
8 changes: 8 additions & 0 deletions configs/recommended.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import mod from '../index.js'

export default {
plugins: {
dont: mod,
},
rules: {},
}
19 changes: 3 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,9 @@
],
"main": "./dist/index.js",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./configs/recommended-alphabetical": {
"require": "./dist/configs/recommended-alphabetical.js",
"import": "./dist/configs/recommended-alphabetical.mjs"
},
"./configs/recommended-line-length": {
"require": "./dist/configs/recommended-line-length.js",
"import": "./dist/configs/recommended-line-length.mjs"
},
"./configs/recommended-natural": {
"require": "./dist/configs/recommended-natural.js",
"import": "./dist/configs/recommended-natural.mjs"
},
".": "./dist/index.mjs",
"./configs/recommended": "./dist/configs/recommended.mjs",
"./configs/all": "./dist/configs/all.mjs",
"./package.json": "./package.json"
},
"packageManager": "yarn@1.22.19",
Expand Down
8 changes: 0 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,6 @@ export default [
]
```

### List of Configs

| Name | Description |
| :------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------- |
| [recommended-alphabetical](https://www.dont.ninja/configs/recommended-alphabetical) | all plugin rules with alphabetical sorting in ascending order |
| [recommended-natural](https://www.dont.ninja/configs/recommended-natural) | all plugin rules with natural sorting in ascending order |
| [recommended-line-length](https://www.dont.ninja/configs/recommended-line-length) | all plugin rules with sorting by line length in descending order |

## ✅ Rules

<!-- begin auto-generated rules list -->
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
fileName: (format, entryName) => {
let directory = ''

if (entryName.startsWith('recommended')) {
if (entryName.startsWith('recommended') || entryName.startsWith('all')) {
directory = 'configs/'
}

Expand Down

0 comments on commit 5e6d6c9

Please sign in to comment.