Skip to content

Commit

Permalink
Set typescript prettier vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
broekhuisg committed Oct 11, 2022
1 parent 3e3757f commit 828d6b5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 69 deletions.
39 changes: 0 additions & 39 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,6 @@
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.quickSuggestions": {
"strings": true
},
"editor.insertSpaces": true,
"editor.tabSize": 4,
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.languageServer": "Pylance",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--load-plugins=pylint_django",
"--disable=django-not-configured",
"--django-settings-module=pipit.settings.local"
],
"python.formatting.provider": "black",
"python.formatting.blackArgs": ["--line-length", "100"],
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
"python.testing.pytestPath": "/usr/local/py-utils/bin/pytest",
"python.testing.pytestEnabled": true,
"files.associations": {
"*.css": "tailwindcss"
},
"eslint.validate": ["javascript"],
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
Expand Down
64 changes: 41 additions & 23 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
// {
// "editor.formatOnSave": true,
// "python.formatting.provider": "black",
// "python.formatting.blackArgs": ["--line-length", "100"],
// "editor.codeActionsOnSave": {
// "source.fixAll.eslint": true
// },
// "editor.quickSuggestions": {
// "strings": true
// },
// "files.associations": {
// "*.css": "tailwindcss"
// },
// "eslint.validate": ["javascript"],
// "[javascript]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
// "[javascriptreact]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
// "python.linting.pylintArgs": ["--load-plugins=pylint_django"],
// "[python]": {}
// }
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.quickSuggestions": {
"strings": true
},
"editor.insertSpaces": true,
"editor.tabSize": 4,
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.languageServer": "Pylance",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--load-plugins=pylint_django",
"--disable=django-not-configured",
"--django-settings-module=pipit.settings.local"
],
"python.formatting.provider": "black",
"python.formatting.blackArgs": ["--line-length", "100"],
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
"python.testing.pytestPath": "/usr/local/py-utils/bin/pytest",
"python.testing.pytestEnabled": true,
"files.associations": {
"*.css": "tailwindcss"
},
"eslint.validate": ["javascript"],
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
7 changes: 0 additions & 7 deletions frontend/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import React from "react";

// import i18n from '../../i18n';
// import PropTypes from 'prop-types';
import styles from "./Button.module.css";

const Button = ({ onClick, text }) => (
Expand All @@ -10,8 +7,4 @@ const Button = ({ onClick, text }) => (
</button>
);

Button.propTypes = {};

Button.defaultProps = {};

export default Button;

0 comments on commit 828d6b5

Please sign in to comment.