This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) install dependencies: | |
| yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-airbnb-typescript eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier --dev | |
| 2) create .eslintrc.js file: | |
| ``` | |
| module.exports = { | |
| parser: "@typescript-eslint/parser", // Specifies the ESLint parser | |
| extends: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(() => { | |
| $('#contactForm input,#contactForm textarea').jqBootstrapValidation({ | |
| preventSubmit: true, | |
| submitError() { | |
| // additional error messages or events | |
| }, | |
| submitSuccess($form, event) { | |
| event.preventDefault(); // prevent default submit behaviour | |
| // get values from FORM | |
| const name = $('input#name').val(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Check for empty fields | |
| if(empty($_POST['name']) || | |
| empty($_POST['email']) || | |
| empty($_POST['message']) || | |
| empty($_POST['response']) || | |
| !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL)) | |
| { | |
| echo "No arguments Provided!"; | |
| return false; |
cd coding-directorynpm init -ynpm install --save-dev tslint tslint-config-airbnb- Create
tslint.jsonfile with following content:
{
"extends": "tslint-config-airbnb"
}- Install TSLint plugin in Visual Studio Code
openssl genrsa -des3 -passout pass:<your_pass_key_here> -out server.pass.key 2048openssl rsa -passin pass:<your_pass_key_here> -in server.pass.key -out server.keyopenssl req -new -key server.key -out server.csropenssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
cd coding-directorynpm init -ynpm install --save-dev --save-exact eslint eslint-config-airbnb-base eslint-plugin-import- Create
.eslintrcfile with following content:
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": truePrerequisites:
- XCode is installed (via the App Store)
- XCode Command Line Tools are installed (
xcode-select --installin Terminal/iTerm) - Java
Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Make sure the doctor is happy (do what it tells you):
NewerOlder
