Skip to content

Commit

Permalink
feat: remove perfectionist pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lzear committed Nov 4, 2023
1 parent 44b1d2f commit 5e50327
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 311 deletions.
43 changes: 1 addition & 42 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -167,68 +167,27 @@ export default defineConfig({
},

nav: [
{
text: 'Guide',
link: '/guide/introduction',
activeMatch: '^/guide/',
},
{
text: 'Configs',
link: '/configs/',
activeMatch: '^/configs/',
},
{
text: 'Rules',
link: '/rules/',
activeMatch: '^/rules/',
},
{
text: `v${version}`,
items: [
{
text: 'Changelog',
link: changelog,
},
{
text: 'Contributing',
link: contributing,
},
],
},
],

sidebar: {
'/': [
{
text: 'Guide',
items: [
{
text: 'Introduction',
link: '/guide/introduction',
},
{
text: 'Why',
link: '/guide/why',
},
{
text: 'Integrations',
link: '/guide/integrations',
},
{
text: 'Getting Started',
link: '/guide/getting-started',
},
],
},
{
text: 'Configs',
items: Object.keys(configs).map(config => ({
text: config,
link: `/configs/${config}`,
})),
},
{
text: 'Rules',
link: '/rules/',
items: Object.keys(rules).map(rule => ({
text: rule,
link: `/rules/${rule}`,
Expand Down
27 changes: 5 additions & 22 deletions .vitepress/theme/components/home-page.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<script lang="ts" setup>
import { VPTeamMembers } from 'vitepress/theme'
import { onMounted, computed, ref } from 'vue'
import codeBefore from './code-before.vue'
import codeAfter from './code-after.vue'
import {VPTeamMembers} from 'vitepress/theme'
import {computed, onMounted, ref} from 'vue'
let twitterAzat = ref('https://twitter.com/azat_io_en')
Expand Down Expand Up @@ -51,23 +48,9 @@ onMounted(() => {
</script>

<template>
<div class="container">
<hr class="divider" />
</div>
<div class="container">
<div class="content">
<VPTeamMembers class="members flex flex-wrap m-auto max-w-[100%]" :members="members" size="small"/>
<div class="code-blocks">
<figure class="code-wrapper code-wrapper-left">
<figcaption class="code-caption">Input</figcaption>
<code-before />
</figure>
<figure class="code-wrapper code-wrapper-right">
<figcaption class="code-caption">Output</figcaption>
<code-after />
</figure>
</div>
</div>
<div class="px-16">
<hr class="divider"/>
<VPTeamMembers class="members flex flex-wrap m-auto max-w-[100%]" :members="members" size="small"/>
</div>
</template>

Expand Down
8 changes: 0 additions & 8 deletions configs/recommended-alphabetical.ts

This file was deleted.

8 changes: 0 additions & 8 deletions configs/recommended-line-length.ts

This file was deleted.

8 changes: 0 additions & 8 deletions configs/recommended-natural.ts

This file was deleted.

18 changes: 0 additions & 18 deletions docs/configs/index.md

This file was deleted.

38 changes: 0 additions & 38 deletions docs/configs/recommended-alphabetical.md

This file was deleted.

38 changes: 0 additions & 38 deletions docs/configs/recommended-line-length.md

This file was deleted.

42 changes: 0 additions & 42 deletions docs/configs/recommended-natural.md

This file was deleted.

71 changes: 71 additions & 0 deletions docs/faq/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# FAQ

### What is `dont`?

`dont` is an acronym.

### What does it do?

`eslint-plugin-dont` is a collection of state-of-the-art ESLint rules that will help you write better code.

### How do I use it?

Install it:

```sh
npm install --save-dev eslint eslint-plugin-dont
```

Add it to your `.eslintrc` or `eslint.config.js`:

::: code-group

```json [.eslintrc]
// .eslintrc
{
"plugins": [
"dont"
],
"rules": {
"dont/emoji": 2
}
}
```

```js [Flat config: eslint.config.js - recommended rules]
// eslint.config.js
import dont from 'eslint-plugin-dont'

export default [
dont,
]
```

```js [Flat config: eslint.config.js - custom rules]
// eslint.config.js
import dont from 'eslint-plugin-dont'

export default [
{
plugins: {dont},
rules: {
'dont/emoji': 2,
},
}
]
```

:::

### Something is broken, what do I do?

Ideally, just spend your time doing something interesting or useful. If you don't want to, you can open an issue or PR
on [GitHub](https://github.com/lzear/eslint-plugin-dont).

### Can I also suggest a rule?

Sure.

### Do you recommend using this in my projects or at my workplace?

`dont`
37 changes: 0 additions & 37 deletions docs/guide/integrations.md

This file was deleted.

Loading

0 comments on commit 5e50327

Please sign in to comment.