Skip to content

Commit

Permalink
markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
le-cong committed Oct 23, 2024
1 parent d6dfcba commit 13517ec
Show file tree
Hide file tree
Showing 4 changed files with 1,153 additions and 139 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ plugins that are supported by the configuration via `peerDependencies`.

### Example `eslint.config.mjs`

```javascript
```ts
import { default } from '@checkdigit/eslint-config';
```

Expand Down
9 changes: 8 additions & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import prettier from 'eslint-config-prettier';
import { FlatCompat } from '@eslint/eslintrc';
import unicorn from 'eslint-plugin-unicorn';
import json from '@eslint/json';
import markdown from '@eslint/markdown';
import yaml from 'eslint-plugin-yml';

const ignores = [
Expand Down Expand Up @@ -438,11 +439,16 @@ const jsonConfigurations = [
},
].map((config) => ({ files: ['**/*.json'], ...config }));

const yamlConfigurations = [...yaml.configs['flat/recommended']].map((config) => ({
const yamlConfigurations = yaml.configs['flat/recommended'].map((config) => ({
files: ['**/*.yml', '**/*.yaml'],
...config,
}));

const markdownConfigurations = markdown.configs.recommended.map((config) => ({
...config,
files: ['**/*.md'],
}));

export default [
{ ignores },
{
Expand All @@ -451,6 +457,7 @@ export default [
},
},
...tsConfigurations,
...markdownConfigurations,
...jsonConfigurations,
...yamlConfigurations,
];
Loading

0 comments on commit 13517ec

Please sign in to comment.