Skip to content

Commit

Permalink
chore: rewrite eslint cli for new command build
Browse files Browse the repository at this point in the history
  • Loading branch information
rellafella committed Feb 16, 2025
1 parent 864d058 commit 89a67dd
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 51 deletions.
22 changes: 19 additions & 3 deletions packages/eslint-config/init/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
"source.organizeImports": "never"
},
"eslint.enable": true,
"eslint.runtime": "node",
"eslint.validate": [
"astro",
"html",
"javascript",
"json",
"json5",
"jsonc",
"markdown",
"svelte",
"toml",
"typescript",
"twig",
"xml",
"yaml"
],
"eslint.useFlatConfig": true,
"eslint.validate": ["html", "javascript", "markdown", "svelte", "typescript", "twig"],
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
21 changes: 10 additions & 11 deletions packages/eslint-config/init/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import configEnvsa from '@envsa/eslint-config';

/** @type {import('eslint').Linter.Config[]} */
export default [
...configEnvsa,
// Config overrides
// {
// rules: {
// // Add your custom rules here
// }
// }
];
import { eslintConfig } from '@envsa/eslint-config';

export default eslintConfig({
// Enable as needed:
// astro: true,
// react: true,
// svelte: true,
// type: 'lib',
}
);
7 changes: 7 additions & 0 deletions packages/eslint-config/init/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pnpm": {
"overrides": {
"eslint-plugin-markdown": "^5.1.0"
}
}
}
10 changes: 0 additions & 10 deletions packages/eslint-config/init/tsconfig.eslint.json

This file was deleted.

27 changes: 0 additions & 27 deletions packages/eslint-config/init/tsconfig.json

This file was deleted.

0 comments on commit 89a67dd

Please sign in to comment.