-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev #22
base: main
Are you sure you want to change the base?
Dev #22
Changes from all commits
a81a11c
59b90fa
2f558ba
9d775a8
d6d931f
30235ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:tailwind/recommended", | ||
"next", // includes eslint-plugin-react / eslint-plugin-react-hooks /eslint-plugin-next | ||
"next/core-web-vitals", | ||
"prettier" // deletes props with conflict with prettier | ||
], | ||
"rules": { | ||
"no-console": "warn", | ||
"react/prop-types": "off", | ||
"react/display-name": "off", | ||
"react/jsx-indent-props": [2, "first"], | ||
"import/prefer-default-export": "off", | ||
"import/no-cycle": "off", | ||
"no-multi-assign": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"jsx-a11y/anchor-is-valid": "off", | ||
"no-unused-vars": "warn", | ||
"import/order": [ | ||
"warn", | ||
{ | ||
"pathGroups": [ | ||
{ | ||
"pattern": "@/**", | ||
"group": "external", | ||
"position": "after" | ||
} | ||
], | ||
"newlines-between": "always" | ||
} | ||
], | ||
"react/jsx-sort-props": [ | ||
"error", | ||
{ | ||
"callbacksLast": true, | ||
"shorthandFirst": true, | ||
"noSortAlphabetically": false, | ||
"reservedFirst": true | ||
} | ||
], | ||
"padding-line-between-statements": [ | ||
"error", | ||
{ "blankLine": "always", "prev": "*", "next": "return" }, | ||
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" }, | ||
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] } | ||
] | ||
}, | ||
"plugins": ["import", "@typescript-eslint"] | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn eslint --fix | ||
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// other settings | ||
// formatting using eslint | ||
// let editor format using prettier for all other files | ||
"editor.formatOnSave": true, | ||
// disable editor formatting, so eslint can handle it | ||
"[javascript]": { | ||
"editor.formatOnSave": false | ||
}, | ||
// available through eslint plugin in vscode | ||
"eslint.alwaysShowStatus": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
{ | ||
"name": "react-three-next", | ||
"version": "2.0.0", | ||
"name": "coderhood", | ||
"version": "1.0.0", | ||
"authors": [ | ||
"Renaud ROHLINGER <https://twitter.com/onirenaud>" | ||
"Emanuel Lorenzo <https://twitter.com/aemalorenzo>", | ||
"Tomas Discoli <https://twitter.com/tomasdisk>" | ||
], | ||
"private": false, | ||
"scripts": { | ||
"lint": "yarn prettier && yarn eslint", | ||
"eslint": "eslint --max-warnings 20 'src/**/*.{js,jsx}' --ext jsconfig.json", | ||
"eslint-fix": "eslint --fix 'src/**/*.{js,jsx}' --ext jsconfig.json", | ||
"eslint": "eslint --max-warnings 50 'src/**/*.{js,jsx,ts,tsx}' --ext tsconfig.json", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 50 👀 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Jajaja era para que me deje pushear y me colgué. Lo tengo que sacar 😅 |
||
"eslint-fix": "eslint --fix 'src/**/*.{js,jsx,ts,tsx}' --ext tsconfig.json", | ||
"prettier": "prettier --list-different '**/*.{js,jsx,md}'", | ||
"tsc": "tsc --noEmit", | ||
"dev": "next dev", | ||
|
@@ -17,14 +18,6 @@ | |
"analyze": "ANALYZE=true next build", | ||
"start": "next start" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,json,md}": [ | ||
"prettier --write" | ||
], | ||
"*.{js,jsx}": [ | ||
"eslint --fix" | ||
] | ||
}, | ||
"dependencies": { | ||
"@code-surfer/themes": "^3.1.1", | ||
"@headlessui/react": "^1.2.0", | ||
|
@@ -53,24 +46,23 @@ | |
"@next/bundle-analyzer": "^10.0.7", | ||
"@types/node": "^16.3.3", | ||
"@types/react": "^17.0.14", | ||
"@typescript-eslint/eslint-plugin": "^4.28.5", | ||
"@typescript-eslint/parser": "^4.28.5", | ||
"autoprefixer": "^10.2.6", | ||
"babel-eslint": "^10.1.0", | ||
"babel-plugin-glsl": "^1.0.0", | ||
"code-surfer": "^3.1.1", | ||
"eslint": "^7.25.0", | ||
"eslint": "^7.31.0", | ||
"eslint-config-next": "^11.0.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-react-app": "^6.0.0", | ||
"eslint-plugin-flowtype": "^5.2.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.23.2", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"eslint-plugin-tailwind": "^0.2.1", | ||
"file-loader": "^6.2.0", | ||
"glslify": "^7.1.1", | ||
"glslify-loader": "^2.0.0", | ||
"lint-staged": "^10.5.4", | ||
"husky": "^7.0.1", | ||
"mdx-code": "^2.0.0", | ||
"mdx-deck": "^4.1.1", | ||
"next-compose-plugins": "^2.2.1", | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No me gusta que te edite el codigo sin que te des cuenta 😕
como prefieras, no es nada grave igual xD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Buen punto eh, tenes razon banco también que no hayan sorpresas