Add css modules, remove styled components linters and utils

This commit is contained in:
jeffvli 2023-07-23 05:16:29 -07:00
parent 03a4a1da55
commit 84bec824f2
5 changed files with 299 additions and 2913 deletions

View File

@ -8,7 +8,7 @@
{ {
"files": ["**/*.css", "**/*.scss", "**/*.html"], "files": ["**/*.css", "**/*.scss", "**/*.html"],
"options": { "options": {
"singleQuote": false "singleQuote": true
} }
} }
], ],

View File

@ -1,9 +1,7 @@
{ {
"processors": ["stylelint-processor-styled-components"],
"customSyntax": "postcss-scss",
"extends": [ "extends": [
"stylelint-config-standard-scss", "stylelint-config-standard-scss",
"stylelint-config-styled-components", "stylelint-config-css-modules",
"stylelint-config-rational-order" "stylelint-config-rational-order"
], ],
"rules": { "rules": {

84
.vscode/settings.json vendored
View File

@ -1,42 +1,46 @@
{ {
"files.associations": { "files.associations": {
".eslintrc": "jsonc", ".eslintrc": "jsonc",
".prettierrc": "jsonc", ".prettierrc": "jsonc",
".eslintignore": "ignore" ".eslintignore": "ignore"
}, },
"eslint.validate": ["typescript"], "eslint.validate": ["typescript"],
"eslint.workingDirectories": [ "eslint.workingDirectories": [
{ "directory": "./", "changeProcessCWD": true }, { "directory": "./", "changeProcessCWD": true },
{ "directory": "./server", "changeProcessCWD": true } { "directory": "./server", "changeProcessCWD": true }
], ],
"typescript.tsserver.experimental.enableProjectDiagnostics": true, "typescript.tsserver.experimental.enableProjectDiagnostics": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": true, "source.fixAll.eslint": true,
"source.fixAll.stylelint": false "source.fixAll.stylelint": true,
}, "source.organizeImports": false,
"css.validate": false, "source.formatDocument": true
"less.validate": false, },
"scss.validate": false, "css.validate": true,
"javascript.validate.enable": false, "less.validate": false,
"javascript.format.enable": false, "scss.validate": true,
"typescript.format.enable": false, "scss.lint.unknownAtRules": "warn",
"search.exclude": { "scss.lint.unknownProperties": "warn",
".git": true, "javascript.validate.enable": false,
".eslintcache": true, "javascript.format.enable": false,
".erb/dll": true, "typescript.format.enable": false,
"release/{build,app/dist}": true, "search.exclude": {
"node_modules": true, ".git": true,
"npm-debug.log.*": true, ".eslintcache": true,
"test/**/__snapshots__": true, ".erb/dll": true,
"package-lock.json": true, "release/{build,app/dist}": true,
"*.{css,sass,scss}.d.ts": true "node_modules": true,
}, "npm-debug.log.*": true,
"i18n-ally.localesPaths": ["src/i18n", "src/i18n/locales"], "test/**/__snapshots__": true,
"typescript.tsdk": "node_modules\\typescript\\lib", "package-lock.json": true,
"typescript.preferences.importModuleSpecifier": "non-relative", "*.{css,sass,scss}.d.ts": true
"stylelint.validate": ["css", "less", "postcss", "typescript", "typescriptreact", "scss"], },
"typescript.updateImportsOnFileMove.enabled": "always", "i18n-ally.localesPaths": ["src/i18n", "src/i18n/locales"],
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "typescript.tsdk": "node_modules\\typescript\\lib",
"[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true "stylelint.validate": ["css", "less", "postcss", "scss"],
"typescript.updateImportsOnFileMove.enabled": "always",
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true
} }

3115
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -229,11 +229,9 @@
"sass-loader": "^12.6.0", "sass-loader": "^12.6.0",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"stylelint": "^14.9.1", "stylelint": "^14.9.1",
"stylelint-config-css-modules": "^4.3.0",
"stylelint-config-rational-order": "^0.1.2", "stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard-scss": "^4.0.0", "stylelint-config-standard-scss": "^4.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-order": "^5.0.0",
"stylelint-processor-styled-components": "^1.10.0",
"terser-webpack-plugin": "^5.3.1", "terser-webpack-plugin": "^5.3.1",
"ts-jest": "^27.1.4", "ts-jest": "^27.1.4",
"ts-loader": "^9.2.8", "ts-loader": "^9.2.8",
@ -265,6 +263,7 @@
"@tanstack/react-query-devtools": "^4.32.0", "@tanstack/react-query-devtools": "^4.32.0",
"@ts-rest/core": "^3.23.0", "@ts-rest/core": "^3.23.0",
"axios": "^1.4.0", "axios": "^1.4.0",
"clsx": "^2.0.0",
"cmdk": "^0.2.0", "cmdk": "^0.2.0",
"dayjs": "^1.11.6", "dayjs": "^1.11.6",
"electron-debug": "^3.2.0", "electron-debug": "^3.2.0",
@ -300,7 +299,7 @@
"react-virtualized-auto-sizer": "^1.0.17", "react-virtualized-auto-sizer": "^1.0.17",
"react-window": "^1.8.9", "react-window": "^1.8.9",
"react-window-infinite-loader": "^1.0.9", "react-window-infinite-loader": "^1.0.9",
"styled-components": "^6.0.5", "styled-components": "^5.3.11",
"swiper": "^9.3.1", "swiper": "^9.3.1",
"zod": "^3.21.4", "zod": "^3.21.4",
"zustand": "^4.3.9" "zustand": "^4.3.9"