diff --git a/.vscode/settings.json b/.vscode/settings.json index 5954c5d..c5d316a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,81 +1,70 @@ { - "[gitignore]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[shellscript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "explorer.fileNesting.enabled": true, + "explorer.fileNesting.expand": false, + "explorer.fileNesting.patterns": { + ".env": ".env.*", + "package.json": ".*.cjs, .*.js, .*.json, .*.mjs, .*.toml, .*.ts, .*.yaml, .*.yml, .*ignore, .*rc, *config.cjs, *config.js, *config.json, *config.mjs, *config.toml, *config.ts, *config.yaml, *config.yml, .editorconfig, lerna.json, netlify.toml, package-lock.json, , pnpm*, turbo.json, vercel.json, workspace*, wrangler.toml, yarn.lock, yarn*", + "readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*", + "composer.json": "composer.lock" }, - "[svelte]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "tailwindCSS.experimental.classRegex": [ + ["compDefaults = \\{([^%]*) %\\}", ":\\s*?[\"'`]([^\"'`]*).*?,?"], + ["classList.(?:add|remove|toggle)\\(([^)]*)\\)", "(?:'|\"|`)([^\"'`]*)(?:'|\"|`)"], + ["{%\\s+set\\s+.*[Cc]lass(?:es)?\\s+=\\s+['\"](.*)['\"]\\s+%}"], + ["*[Cc]lass(?:es)?:\\s*['\"](.*)['\"]"] + ], + "tailwindCSS.classAttributes": [".*Class.*"], + "[twig]": { + "editor.suggest.snippetsPreventQuickSuggestions": true }, - "cSpell.enabled": true, - "cSpell.workspaceRootPath": ".", - "css.validate": false, + "typescript.enablePromptUseWorkspaceTsdk": true, + "typescript.tsdk": "node_modules/typescript/lib", "editor.codeActionsOnSave": { "source.fixAll": "explicit", "source.organizeImports": "never" }, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true, "eslint.enable": true, - "eslint.useFlatConfig": true, + "eslint.runtime": "node", "eslint.validate": [ - "javascript", - "typescript", - "svelte", - "markdown", - "html", - "twig", "astro", + "html", + "javascript", "json", "json5", "jsonc", + "markdown", + "svelte", "toml", + "typescript", + "twig", "xml", "yaml" ], - "eslint.workingDirectories": ["./"], - "explorer.fileNesting.enabled": true, - "explorer.fileNesting.expand": false, - "explorer.fileNesting.patterns": { - ".env": ".env.*", - "package.json": ".*.cjs, .*.js, .*.json, .*.mjs, .*.toml, .*.ts, .*.yaml, .*.yml, .*ignore, .*rc, *config.cjs, *config.js, *config.json, *config.mjs, *config.toml, *config.ts, *config.yaml, *config.yml, .editorconfig, lerna.json, netlify.toml, package-lock.json, , pnpm*, turbo.json, vercel.json, workspace*, wrangler.toml, yarn.lock, yarn*", - "readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*", - "composer.json": "composer.lock" - }, + "eslint.useFlatConfig": true, + "stylelint.enable": true, + "stylelint.validate": ["scss", "css", "html", "svelte", "twig"], + "css.validate": false, "less.validate": false, + "scss.validate": false, + "cSpell.enabled": true, + "cSpell.workspaceRootPath": ".", + "[gitignore]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[shellscript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[svelte]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, "prettier.documentSelectors": [ - "**/*.svelte", - "**/.prettierignore", - "**/.npmrc", "**/.eslintignore", - "**/.node-version" - ], - "prettier.enable": true, - "scss.validate": false, - "stylelint.enable": true, - "stylelint.validate": ["scss", "css", "html", "svelte", "twig"], - "tailwindCSS.classAttributes": [".*Class.*"], - "tailwindCSS.experimental.classRegex": [ - ["compDefaults = \\{([^%]*) %\\}", ":\\s*?[\"'`]([^\"'`]*).*?,?"], - [ - "[\\w]+\\.classList\\.(?:add|remove|replace|toggle)\\([\"'`]([^\"'`]*)[\"'`]\\)", - "classList.(?:add|remove|toggle)\\(([^)]*)\\)", - "(?:'|\"|`)([^\"'`]*)(?:'|\"|`)" - ], - ["{%\\s+set\\s+.*[Cc]lass(?:es)?\\s+=\\s+['\"](.*)['\"]\\s+%}"], - ["*[Cc]lass(?:es)?:\\s*['\"](.*)['\"]"] - ], - "typescript.tsdk": "node_modules/typescript/lib", - "json.schemas": [ - { - "fileMatch": ["tsconfigs/*.json"], - "url": "https://json.schemastore.org/tsconfig" - } + "**/.node-version", + "**/.npmrc", + "**/.prettierignore", + "**/*.svelte" ], - "eslint.runtime": "node", - "typescript.enablePromptUseWorkspaceTsdk": true, - "[twig]": { - "editor.suggest.snippetsPreventQuickSuggestions": true - } + "prettier.enable": true } diff --git a/knip.config.ts b/knip.config.ts index 29530c8..a0e55ac 100644 --- a/knip.config.ts +++ b/knip.config.ts @@ -1,3 +1,30 @@ import { knipConfig } from '@envsa/knip-config'; -export default knipConfig(); +export default knipConfig({ + ignore: ['**/init/**', 'test/fixtures/**'], + ignoreBinaries: ['ksdiff'], + ignoreDependencies: [ + '@envsa/repo-config', // Technically not needed? + '@envsa/typescript-config', // Technically not needed? + '@prettier/plugin-php', + '@prettier/plugin-xml', + '@types/eslint-config-prettier', + 'case-police', + 'chalk', + 'cspell-lib', + 'cspell', + 'eslint-config-prettier', + 'eslint-config-xo-typescript', + 'globby', + 'mdat', + 'prettier-plugin-packagejson', + 'prettier-plugin-sh', + 'prettier-plugin-toml', + 'prettier-plugin-yaml', + 'prettier-plugin-tailwindcss', + 'prettier-plugin-svelte', + 'stylelint-config-html', + 'stylelint-config-standard', + 'stylelint', + ], +}); diff --git a/stylelint.config.js b/stylelint.config.js index 4c65d74..f728fd9 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -1,3 +1,5 @@ import { stylelintConfig } from '@envsa/stylelint-config'; -export default stylelintConfig(); +export default stylelintConfig({ + ignoreFiles: ['test/fixtures/input/*.*', 'test/fixtures/output-fixed-auto/*.*'], +});