Skip to content

Commit

Permalink
chore: modify prettier config & remove unuse code (#384)
Browse files Browse the repository at this point in the history
* chore: update prettier to adapt to our standards

* chore: clean format

* unused eslint ignore & markdownlint rule

* refactor: Remove unused dark mode JavaScript files and update color mode implementation

* config: disable automatic formatting on save and paste in VS Code settings

* chore: update .prettierignore to include additional file types
  • Loading branch information
totallynotdavid committed May 6, 2024
1 parent f98342a commit f53f7e8
Show file tree
Hide file tree
Showing 249 changed files with 6,774 additions and 6,811 deletions.
12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Hey 👋 ¿Quieres contribuir a mejorar nuestra página web? ¡Genial! Nos encan

Hay varias formas en las que puedes colaborar:

- ✏️ Añadiendo nuevas Guías de Estudio o Notas de Clase
- 🔄 Actualizando o mejorando el contenido existente
- 📚 Sugiriendo libros o materiales de estudio útiles
- 🐛 Reportando errores o problemas que encuentres
- ✏️ Añadiendo nuevas Guías de Estudio o Notas de Clase
- 🔄 Actualizando o mejorando el contenido existente
- 📚 Sugiriendo libros o materiales de estudio útiles
- 🐛 Reportando errores o problemas que encuentres

¡Todas las ideas son bienvenidas! Si se te ocurre alguna otra forma de aportar que capaz no se nos ocurrió, no dudes en proponerla. Puedes contactarnos por [correo](https://caefisica.com/contacto/) o a través de [nuestras redes sociales](https://linktr.ee/caefisica).

Expand All @@ -18,8 +18,8 @@ Hay varias formas en las que puedes colaborar:
Contribuir es fácil, solo sigue estos pasos:

1. Ubica el archivo que quieres editar:
- Ve al artículo en nuestra web y al final verás la opción "Edita esta página". ¡Haz click ahí y listo! Se abrirá GitHub.
- Si prefieres, puedes ir directo a GitHub. Las guías están en `content/unmsm/pregrado/`, organizadas por semestre (`1`, `2`, etc). Cada guía es un archivo `.md`.
- Ve al artículo en nuestra web y al final verás la opción "Edita esta página". ¡Haz click ahí y listo! Se abrirá GitHub.
- Si prefieres, puedes ir directo a GitHub. Las guías están en `content/unmsm/pregrado/`, organizadas por semestre (`1`, `2`, etc). Cada guía es un archivo `.md`.
2. En GitHub, busca el botoncito de ✏️ "Editar" arriba a la derecha y dale click.
3. Realiza tus cambios en el editor. En nuestras guías, usamos formato Markdown.
4. Abajo verás "Commit changes". Pon un mensajito sobre lo que modificaste, nos servirá para entender tus cambios.
Expand Down
58 changes: 29 additions & 29 deletions .github/budget.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
[
{
"path": "/*",
"timings": [
{
"metric": "interactive",
"budget": 3300
},
{
"metric": "first-meaningful-paint",
"budget": 1400
}
],
"resourceSizes": [
{
"resourceType": "script",
"budget": 125
},
{
"resourceType": "total",
"budget": 300
}
],
"resourceCounts": [
{
"resourceType": "third-party",
"budget": 10
}
]
}
{
"path": "/*",
"timings": [
{
"metric": "interactive",
"budget": 3300
},
{
"metric": "first-meaningful-paint",
"budget": 1400
}
],
"resourceSizes": [
{
"resourceType": "script",
"budget": 125
},
{
"resourceType": "total",
"budget": 300
}
],
"resourceCounts": [
{
"resourceType": "third-party",
"budget": 10
}
]
}
]
1 change: 0 additions & 1 deletion .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"config": {
"default": true,
"MD007": false, // Indentation issue: https://github.com/prettier/prettier/issues/4114
"MD013": false,
"MD024": false,
"MD029": false, // This only works if you have a continuous list (p.s. we don't)
Expand Down
9 changes: 7 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
CHANGELOG.md
LICENSE
.gitkeep
node_modules
package-lock.json
pnpm-lock.yaml

# File types
*.ico
*.png
*.jp*g
*.*ignore
*.svg
LICENSE
.gitkeep
*.woff*

# Special files
layouts\partials\footer\esbuild.html
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"jsxSingleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"bracketSameLine": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid",
"requirePragma": false,
Expand All @@ -16,6 +17,7 @@
"endOfLine": "lf",
"printWidth": 80,
"goTemplateBracketSpacing": true,
"experimentalTernaries": true,
"plugins": ["prettier-plugin-go-template"],
"overrides": [
{
Expand All @@ -32,6 +34,19 @@
"options": {
"parser": "go-template"
}
},
{
"files": ["*.md", "*.json", "*.yaml"],
"options": {
"tabWidth": 2,
"singleQuote": false
}
},
{
"files": "*.scss",
"options": {
"singleQuote": false
}
}
]
}
90 changes: 45 additions & 45 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"no-empty-source": null,
"scss/comment-no-empty": null,
"scss/operator-no-newline-after": null,
"scss/at-extend-no-missing-placeholder": null,
"scss/dollar-variable-colon-space-after": null,
"scss/dollar-variable-empty-line-before": null,
"color-function-notation": null,
"alpha-value-notation": null,
"selector-id-pattern": null,
"selector-class-pattern": null,
"scss/no-global-function-names": null,
"number-max-precision": null,
"hue-degree-notation": null,
"value-no-vendor-prefix": null,
"property-no-vendor-prefix": null,
"shorthand-property-no-redundant-values": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"extend",
"at-root",
"debug",
"warn",
"error",
"if",
"else",
"for",
"each",
"while",
"mixin",
"include",
"content",
"return",
"function",
"tailwind",
"apply",
"responsive",
"variants",
"screen"
]
}
"extends": "stylelint-config-standard-scss",
"rules": {
"no-empty-source": null,
"scss/comment-no-empty": null,
"scss/operator-no-newline-after": null,
"scss/at-extend-no-missing-placeholder": null,
"scss/dollar-variable-colon-space-after": null,
"scss/dollar-variable-empty-line-before": null,
"color-function-notation": null,
"alpha-value-notation": null,
"selector-id-pattern": null,
"selector-class-pattern": null,
"scss/no-global-function-names": null,
"number-max-precision": null,
"hue-degree-notation": null,
"value-no-vendor-prefix": null,
"property-no-vendor-prefix": null,
"shorthand-property-no-redundant-values": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"extend",
"at-root",
"debug",
"warn",
"error",
"if",
"else",
"for",
"each",
"while",
"mixin",
"include",
"content",
"return",
"function",
"tailwind",
"apply",
"responsive",
"variants",
"screen"
]
}
}
]
}
}
18 changes: 9 additions & 9 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"recommendations": [
"CoderCoder.codercoder-dark-theme",
"analytic-signal.preview-pdf",
"esbenp.prettier-vscode",
"bradgashler.htmltagwrap",
"budparr.language-hugo-vscode",
"GitHub.copilot-nightly",
"GitHub.copilot-labs"
]
"recommendations": [
"CoderCoder.codercoder-dark-theme",
"analytic-signal.preview-pdf",
"esbenp.prettier-vscode",
"bradgashler.htmltagwrap",
"budparr.language-hugo-vscode",
"GitHub.copilot-nightly",
"GitHub.copilot-labs"
]
}
62 changes: 31 additions & 31 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"editor.wordWrap": "on",
"editor.linkedEditing": true,
"editor.lineHeight": 33,
"editor.tabSize": 4,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.cursorBlinking": "expand",
"editor.guides.bracketPairs": true,
"editor.guides.highlightActiveIndentation": true,
"editor.guides.bracketPairsHorizontal": "active",
"editor.stickyScroll.enabled": true,
"workbench.colorTheme": "Coder Coder Dark Theme",
"workbench.sideBar.location": "right",
"html.autoClosingTags": true,
"javascript.autoClosingTags": true,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.autoClosingTags": true,
"typescript.suggest.autoImports": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"git.autofetch": true,
"files.autoSave": "afterDelay",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"extensions.ignoreRecommendations": false
"editor.wordWrap": "on",
"editor.linkedEditing": true,
"editor.lineHeight": 33,
"editor.tabSize": 4,
"editor.formatOnSave": false,
"editor.formatOnPaste": false,
"editor.cursorBlinking": "expand",
"editor.guides.bracketPairs": true,
"editor.guides.highlightActiveIndentation": true,
"editor.guides.bracketPairsHorizontal": "active",
"editor.stickyScroll.enabled": true,
"workbench.colorTheme": "Coder Coder Dark Theme",
"workbench.sideBar.location": "right",
"html.autoClosingTags": true,
"javascript.autoClosingTags": true,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.autoClosingTags": true,
"typescript.suggest.autoImports": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"git.autofetch": true,
"files.autoSave": "afterDelay",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"extensions.ignoreRecommendations": false
}
24 changes: 12 additions & 12 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ Así que, hemos creado este Código de Conducta para establecer algunas pautas b

Aquí hay algunos ejemplos de comportamientos que contribuyen a crear un entorno positivo:

- Ser respetuoso de los diferentes puntos de vista y experiencias
- Aceptar las críticas constructivas
- Enfocarse en lo que es mejor para la comunidad
- Mostrar empatía hacia otros miembros de la comunidad
- Ser respetuoso de los diferentes puntos de vista y experiencias
- Aceptar las críticas constructivas
- Enfocarse en lo que es mejor para la comunidad
- Mostrar empatía hacia otros miembros de la comunidad

Y aquí hay algunos comportamientos que no toleramos:

- El uso de lenguaje o imágenes sexualizadas y atención o avances sexuales no deseados
- _Trolling_, comentarios insultantes/despectivos y ataques personales o políticos
- Acoso público o privado
- Publicar información privada de otros, como una dirección física o electrónica, sin permiso explícito
- Cualquier otra conducta que razonablemente podría considerarse inapropiada en un entorno profesional
- El uso de lenguaje o imágenes sexualizadas y atención o avances sexuales no deseados
- _Trolling_, comentarios insultantes/despectivos y ataques personales o políticos
- Acoso público o privado
- Publicar información privada de otros, como una dirección física o electrónica, sin permiso explícito
- Cualquier otra conducta que razonablemente podría considerarse inapropiada en un entorno profesional

## Nuestras Responsabilidades

Expand All @@ -41,9 +41,9 @@ Los mantenedores del proyecto que no sigan o hagan cumplir el Código de Conduct

El actual Comité de Ética consiste de:

- David Duran ([david@caefisica.com](mailto:david@caefisica.com))
- Andrea Palacios
- Liuba Ramos
- David Duran ([david@caefisica.com](mailto:david@caefisica.com))
- Andrea Palacios
- Liuba Ramos

Puedes contactar a los miembros del Comité de Ética de forma individual o colectiva. Ten en cuenta que si contactas a los miembros individualmente, otros miembros aún pueden involucrarse en la resolución del problema.

Expand Down

0 comments on commit f53f7e8

Please sign in to comment.