Skip to content

Commit

Permalink
chore: update base config files
Browse files Browse the repository at this point in the history
  • Loading branch information
rellafella committed Feb 20, 2025
1 parent 8561be2 commit 3b0fd79
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 61 deletions.
107 changes: 48 additions & 59 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
29 changes: 28 additions & 1 deletion knip.config.ts
Original file line number Diff line number Diff line change
@@ -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',
],
});
4 changes: 3 additions & 1 deletion stylelint.config.js
Original file line number Diff line number Diff line change
@@ -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/*.*'],
});

0 comments on commit 3b0fd79

Please sign in to comment.