Setting up ESLint + Airbnb:
cd coding-directorynpm init -ynpm i -D eslint eslint-config-airbnb-base eslint-plugin-importtouch .eslintrc.js- Inside eslint file:
module.exports = { "extends": "airbnb-base" };
Installing ESLint:
| export default class BlogPost extends Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| render() { |
| version: "2" | |
| services: | |
| my-wpdb: | |
| image: mariadb | |
| ports: | |
| - "8081:3306" | |
| environment: | |
| MYSQL_ROOT_PASSWORD: root | |
| my-wp: | |
| image: wordpress |
| <?php | |
| namespace SeshSource\Traits; | |
| use Illuminate\Support\Str; | |
| trait Uuids | |
| { | |
| /** |
| // utils/AuthService.js | |
| export default class AuthService { | |
| constructor(domain) { | |
| this.domain = domain || 'http://localhost:5000' | |
| this.fetch = this.fetch.bind(this) | |
| this.login = this.login.bind(this) | |
| this.getProfile = this.getProfile.bind(this) | |
| } | |
| login(email, password) { |
| import React, {Component} from 'react' | |
| import AuthService from './auth' | |
| export default function withAuth(AuthComponent) { | |
| const Auth = new AuthService('http://localhost:5000') | |
| return class Authenticated extends Component { | |
| constructor(props) { | |
| super(props) | |
| this.state = { | |
| isLoading: true |
| <?php | |
| namespace SeshSource\Http\Requests; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class StoreEvents extends FormRequest | |
| { | |
| /** | |
| * Determine if the user is authorized to make this request. |
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var sass = require('gulp-sass'); | |
| // Grabs a specific "root" SASS file that imports all the others | |
| // And runs SASS | |
| // Then dumps out to the specificed folder, in this case a WP theme | |
| gulp.task('sass', function () { | |
| return gulp.src('./wp-content/themes/twenty/sass/style.scss') |
| a.button | |
| { | |
| // Needs to be a block element or wont transform | |
| display:inline-block | |
| -webkit-transform: translateY(0); | |
| transform: translateY(0); | |
| transition: transform .2s linear; | |
| &:hover | |
| { |
Setting up ESLint + Airbnb:
cd coding-directorynpm init -ynpm i -D eslint eslint-config-airbnb-base eslint-plugin-importtouch .eslintrc.jsmodule.exports = { "extends": "airbnb-base" };Installing ESLint: