Skip to content

Commit

Permalink
Implemented eslint-plugin-import as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Dec 16, 2024
1 parent 2f8af6d commit 8c217dd
Show file tree
Hide file tree
Showing 3 changed files with 1,879 additions and 104 deletions.
6 changes: 6 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import json from '@eslint/json'
import importPlugin from 'eslint-plugin-import'
import markdown from '@eslint/markdown'
import eslintPluginYml from 'eslint-plugin-yml'

export default [
{
files: ['**/*.js', '**/*.mjs'],
plugins: { 'import': importPlugin },
rules: { ...importPlugin.flatConfigs.recommended.rules }
},
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended },
{
files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },
Expand Down
Loading

0 comments on commit 8c217dd

Please sign in to comment.