Skip to content

Commit

Permalink
chore: remove esling-plugin-markdown as it's not formatting the READM…
Browse files Browse the repository at this point in the history
…E table properly
  • Loading branch information
orefalo committed Jun 18, 2024
1 parent 276ca6e commit 4fae888
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 137 deletions.
22 changes: 0 additions & 22 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import markdown from 'eslint-plugin-markdown';
import globals from 'globals';

const __dirname = import.meta.dirname;
Expand All @@ -21,13 +20,6 @@ export default [
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
...markdown.configs.recommended,
{
// 1. Add the plugin
plugins: {
markdown
}
},
{
languageOptions: {
globals: {
Expand All @@ -37,11 +29,6 @@ export default [
}
}
},
{
// 2. Enable the Markdown processor for all .md files.
files: ['**/*.md'],
processor: 'markdown/markdown'
},
{
files: ['**/*.svelte'],
languageOptions: {
Expand All @@ -50,15 +37,6 @@ export default [
}
}
},
{
// 1. Target ```js code blocks in .md files.
files: ['**/*.md/*.js'],
rules: {
// 2. Disable other rules.
'no-console': 'off',
'import/no-unresolved': 'off'
}
},
{
ignores: removeDuplicates([...readGitignoreFiles({ cwd: __dirname }), '**/.svelte-kit/', '**/_app/', 'package/'])
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-gitignore": "^0.1.0",
"eslint-plugin-markdown": "^5.0.0",
"eslint-plugin-svelte": "^2.40.0",
"globals": "^15.5.0",
"highlight.js": "^11.9.0",
Expand Down
113 changes: 0 additions & 113 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const alias = {
$comp: path.resolve('./src/lib/comp')
};


// alias used by our vite plugin to resolve file, it's the pkg name!
// alias: package name -> src/lib
alias[packageJson.name] = path.resolve('.', 'src/lib');
Expand Down

0 comments on commit 4fae888

Please sign in to comment.