Skip to content

Commit

Permalink
feat/ag/develop-to-master (#54)
Browse files Browse the repository at this point in the history
Co-authored-by: MelHellrigl <hellriglandreamelissa@gmail.com>
Co-authored-by: Ianina Mia Passalia <miau.passalia99@hotmail.com>
Co-authored-by: Melissa Hellrigl <100803744+MelHellrigl@users.noreply.github.com>
Co-authored-by: gavogar <gustavogarcete@gmail.com>
Co-authored-by: Rutito2010 <kakaroto11@live.com.ar>
  • Loading branch information
6 people authored Oct 21, 2024
1 parent d289b04 commit 7c898a6
Show file tree
Hide file tree
Showing 279 changed files with 7,167 additions and 20,391 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
NEXT_PUBLIC_URL_BASE=http://localhost:8090
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
NEXT_PUBLIC_API_PROTOCOL='http'
Expand All @@ -7,3 +6,4 @@ NEXT_PUBLIC_API_PORT=8089
NEXT_PUBLIC_API_WITH_CREDENTIALS=include
NEXT_PUBLIC_API_BASE=api
NEXT_PUBLIC_URL_FRONT=http://localhost:3000

213 changes: 50 additions & 163 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,179 +1,66 @@
{
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:tailwindcss/recommended"
],
"plugins": [
"prefer-arrow"
],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"node": true
},
"ignorePatterns": [
"*.mdx",
"*.md",
"*.rs",
"*.toml"
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "prettier", "import"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"tailwindcss/no-contradicting-classname": "error",
"react-hooks/rules-of-hooks": "off",
"quotes": [
"warn",
"single"
],
"import/no-unused-modules": [
"warn",
{
"missingExports": true
}
],
"semi": [
"warn",
"always"
],
"semi-spacing": [
"warn",
{
"before": false,
"after": true
}
],
"comma-spacing": [
"warn",
{
"before": false,
"after": true
}
],
"space-infix-ops": 2,
"space-in-parens": [
1,
"never"
],
"spaced-comment": [
"error",
"always"
],
"array-bracket-spacing": [
"warn",
"never"
],
"object-curly-spacing": [
"warn",
"always"
],
"block-spacing": "warn",
"arrow-spacing": "warn",
"space-before-function-paren": [
"warn",
"never"
],
"keyword-spacing": [
"warn",
{
"before": true
}
],
"linebreak-style": [
"error",
"unix"
],
"padded-blocks": [
"error",
"never"
],
"eol-last": [
"error",
"always"
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"prefer-const": [
"warn"
],
"max-len": [
"error",
{
"ignoreStrings": true,
"ignoreRegExpLiterals": true,
"code": 200
}
],
"no-shadow-restricted-names": "error",
"no-sequences": "error",
"no-new-wrappers": "error",
"no-multiple-empty-lines": "warn",
"no-eval": "error",
"no-fallthrough": "warn",
"no-invalid-this": "off",
"no-cond-assign": "error",
"no-duplicate-case": "error",
"no-empty": "off",
"no-caller": "error",
"new-parens": "error",
"max-lines": [
"warn",
600
],
"no-trailing-spaces": [
"warn",
{
"ignoreComments": false,
"skipBlankLines": false
}
],
"prettier/prettier": ["error", {
"singleQuote": true,
"jsxSingleQuote": true
}],
"max-len": "off",
"no-unused-vars": "off",
"no-prototype-builtins": "warn",
"comma-dangle": [
"error",
"@typescript-eslint/no-unused-vars": "error",
"no-console": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"react/display-name": "off",
"react/no-unescaped-entities": "off",
"jsx-a11y/alt-text": [
"warn",
{
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
"elements": ["img"],
"img": ["Image"]
}
],
"no-console": 1,
"prefer-template": "error",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"object-shorthand": "warn",
"one-var": [
"warn",
"never"
],
"prefer-object-spread": "error",
"quote-props": [
"@next/next/no-img-element": "error",
"import/order": [
"error",
"consistent-as-needed"
],
"radix": "error",
"curly": "warn",
"use-isnan": "error",
"indent": [
"warn",
2,
{
"SwitchCase": 1,
"MemberExpression": "off"
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"type"
],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
},
{
"pattern": "@/**",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always-and-inside-groups", // Cambia esto para agregar espacio entre grupos
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"distinctGroup": false
}
],
"react/prop-types": "off"
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-object-type": "off"
}
}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ node_modules
.pnp.js
.yarn/install-state.gz
.idea
.env.local
.env
.env.local

# testing
Expand Down Expand Up @@ -38,4 +38,5 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts


package-lock.json
pnpm-lock.yaml
6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm ts:check
pnpm lint:fix

pnpm ts:check || exit 1
pnpm format || exit 1
pnpm lint-staged || exit 1
3 changes: 3 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write ./src/*'],
};
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
jsxSingleQuote: true,
printWidth: 120,
tabWidth: 2,
plugins: ['prettier-plugin-tailwindcss'],
};
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit 7c898a6

Please sign in to comment.