Skip to content

Instantly share code, notes, and snippets.

Avatar

Rogério Oliveira Yokoi rogerioyokoi

View GitHub Profile
@rogerioyokoi
rogerioyokoi / scaffolding.md
Created Mar 5, 2020
My idea of ​​organizing folders for Angular projects
View scaffolding.md

src/ ├── e2e/ | └── ... ├── src/ | ├── app/ | | ├── core/ | | ├── modules/ | | | ├── module/ | | | | ├── components/ | | | | | └── component-name/

@rogerioyokoi
rogerioyokoi / contrast-function.scss
Last active Jan 28, 2019
Contrast Mixin to helper implement accessibility colors.
View contrast-function.scss
// ----
// libsass (v3.5.4)
// ----
$contrasts: 'base', 'contrast-white', 'contrast-black';
$colors: (
'primary': (
'base': red,
'contrast-white': white,
@rogerioyokoi
rogerioyokoi / .eslintrc
Created May 24, 2017 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
View .eslintrc
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@rogerioyokoi
rogerioyokoi / .eslintrc.yaml
Created May 24, 2017 — forked from odedw/.eslintrc.yaml
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
View .eslintrc.yaml
# http:#eslint.org/docs/rules/
ecmaFeatures:
binaryLiterals: false # enable binary literals
blockBindings: false # enable let and const (aka block bindings)
defaultParams: false # enable default function parameters
forOf: false # enable for-of loops
generators: false # enable generators
objectLiteralComputedProperties: false # enable computed object literal property names
objectLiteralDuplicateProperties: false # enable duplicate object literal properties in strict mode
objectLiteralShorthandMethods: false # enable object literal shorthand methods