This file contains 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 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 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-directory
npm init -y
npm install --save-dev tslint tslint-config-airbnb
- Create
tslint.json
file 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 2048
openssl rsa -passin pass:<your_pass_key_here> -in server.pass.key -out server.key
openssl req -new -key server.key -out server.csr
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
cd coding-directory
npm init -y
npm install --save-dev --save-exact eslint eslint-config-airbnb-base eslint-plugin-import
- Create
.eslintrc
file with following content:
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true
- open Terminal/iTerm
- install brew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- install homebrew-cask:
brew tap caskroom/cask
- tap versions:
brew tap caskroom/versions
- install Java 8:
brew cask install java8
Prerequisites:
- XCode is installed (via the App Store)
- XCode Command Line Tools are installed (
xcode-select --install
in 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