Skip to content

Commit

Permalink
Merge branch 'staging' into l10n_staging
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Mar 3, 2019
2 parents 3d3c797 + 318b054 commit 77f6a78
Show file tree
Hide file tree
Showing 12 changed files with 305 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
jshint:
config_file: .jshintrc
scss:
config_file: .scss-lint.yml
253 changes: 253 additions & 0 deletions .scss-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
# Default application configuration that all configurations inherit from.

scss_files: "**/*.scss"
plugin_directories: ['.scss-linters']

# List of gem names to load custom linters from (make sure they are already
# installed)
plugin_gems: []

# Default severity of all linters.
severity: warning

linters:
BangFormat:
enabled: true
space_before_bang: true
space_after_bang: false

BemDepth:
enabled: false
max_elements: 1

BorderZero:
enabled: true
convention: zero # or `none`

ChainedClasses:
enabled: false

ColorKeyword:
enabled: true

ColorVariable:
enabled: false

Comment:
enabled: true
style: silent

DebugStatement:
enabled: true

DeclarationOrder:
enabled: false

DisableLinterReason:
enabled: false

DuplicateProperty:
enabled: true

ElsePlacement:
enabled: true
style: same_line # or 'new_line'

EmptyLineBetweenBlocks:
enabled: true
ignore_single_line_blocks: true

EmptyRule:
enabled: true

ExtendDirective:
enabled: false

FinalNewline:
enabled: true
present: true

HexLength:
enabled: false
style: short # or 'long'

HexNotation:
enabled: true
style: lowercase # or 'uppercase'

HexValidation:
enabled: true

IdSelector:
enabled: true

ImportantRule:
enabled: true

ImportPath:
enabled: true
leading_underscore: false
filename_extension: false

Indentation:
enabled: true
allow_non_nested_indentation: false
character: space # or 'tab'
width: 2

LeadingZero:
enabled: true
style: include_zero # or 'exclude_zero'

MergeableSelector:
enabled: true
force_nesting: true

NameFormat:
enabled: true
allow_leading_underscore: true
convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern

NestingDepth:
enabled: true
max_depth: 4
ignore_parent_selectors: false

PlaceholderInExtend:
enabled: false

PrivateNamingConvention:
enabled: false
prefix: _

PropertyCount:
enabled: true
include_nested: false
max_properties: 10

PropertySortOrder:
enabled: true
ignore_unspecified: false
min_properties: 2
separate_groups: false

PropertySpelling:
enabled: true
extra_properties: []
disabled_properties: []

PropertyUnits:
enabled: true
global: [
'ch', 'em', 'ex', 'rem', # Font-relative lengths
'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q', # Absolute lengths
'vh', 'vw', 'vmin', 'vmax', # Viewport-percentage lengths
'deg', 'grad', 'rad', 'turn', # Angle
'ms', 's', # Duration
'Hz', 'kHz', # Frequency
'dpi', 'dpcm', 'dppx', # Resolution
'%'] # Other
properties: {}

PseudoElement:
enabled: true

QualifyingElement:
enabled: true
allow_element_with_attribute: false
allow_element_with_class: false
allow_element_with_id: false

SelectorDepth:
enabled: true
max_depth: 2

SelectorFormat:
enabled: true
convention: hyphenated_lowercase # or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern

Shorthand:
enabled: true
allowed_shorthands: [1, 2, 3]

SingleLinePerProperty:
enabled: true
allow_single_line_rule_sets: true

SingleLinePerSelector:
enabled: true

SpaceAfterComma:
enabled: true
style: one_space # or 'no_space', or 'at_least_one_space'

SpaceAfterPropertyColon:
enabled: true
style: one_space # or 'no_space', or 'at_least_one_space', or 'aligned'

SpaceAfterPropertyName:
enabled: true

SpaceAfterVariableColon:
enabled: false
style: one_space # or 'no_space', 'at_least_one_space' or 'one_space_or_newline'

SpaceAfterVariableName:
enabled: true

SpaceAroundOperator:
enabled: true
style: one_space # or 'at_least_one_space', or 'no_space'

SpaceBeforeBrace:
enabled: true
style: space # or 'new_line'
allow_single_line_padding: false

SpaceBetweenParens:
enabled: true
spaces: 0

StringQuotes:
enabled: true
style: double_quotes # or single_quotes

TrailingSemicolon:
enabled: true

TrailingWhitespace:
enabled: true

TrailingZero:
enabled: false

TransitionAll:
enabled: false

UnnecessaryMantissa:
enabled: true

UnnecessaryParentReference:
enabled: true

UrlFormat:
enabled: true

UrlQuotes:
enabled: true

VariableForProperty:
enabled: false
properties: []

VendorPrefix:
enabled: true
identifier_list: base
additional_identifiers: []
excluded_identifiers: []

ZeroUnit:
enabled: true

Compass::*:
enabled: false
2 changes: 1 addition & 1 deletion chrome-ext-files/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Altair GraphQL Client",
"short_name": "Altair",
"description": "The only graphQL client you'll ever need.",
"version": "2.1.0",
"version": "2.1.1",
"icons": {
"16": "assets/img/altair_logo_128.png",
"48": "assets/img/altair_logo_128.png",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "2.1.0",
"version": "2.1.1",
"registry": "https://registry.npmjs.org/",
"npmClient": "yarn"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "altair",
"productName": "Altair GraphQL Client",
"version": "2.1.0",
"version": "2.1.1",
"license": "MIT",
"author": "Samuel Imolorhe <samuelimolo4real@gmail.com> (https://sirmuel.design/)",
"description": "The best graphQL client you will ever need",
Expand Down Expand Up @@ -119,7 +119,7 @@
"@types/electron": "^1.4.38",
"@types/jasmine": "3.3.9",
"@types/mousetrap": "^1.6.0",
"@types/node": "11.10.1",
"@types/node": "9",
"ajv-cli": "^3.0.0",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-preset-env": "^1.6.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/altair-express-middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "altair-express-middleware",
"version": "2.1.0",
"version": "2.1.1",
"description": "Express middleware for altair graphql client",
"main": "./build/index.js",
"types": "./build/index.d.ts",
Expand Down Expand Up @@ -30,7 +30,7 @@
},
"homepage": "https://github.com/imolorhe/altair#readme",
"dependencies": {
"altair-static": "^2.1.0",
"altair-static": "^2.1.1",
"express": "^4.16.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-static/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "altair-static",
"version": "2.1.0",
"version": "2.1.1",
"description": "Static package for altair graphql client",
"main": "./build/index.js",
"types": "./build/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-altair-graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-altair-graphql",
"version": "2.1.0",
"version": "2.1.1",
"description": "A gatsby plugin for using Altair GraphQL client",
"main": "gatsby-node.js",
"scripts": {
Expand Down Expand Up @@ -28,6 +28,6 @@
"typescript": "^3.3.1"
},
"dependencies": {
"altair-express-middleware": "^2.1.0"
"altair-express-middleware": "^2.1.1"
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { empty as observableEmpty } from 'rxjs';
import { FormsModule } from '@angular/forms';
import { ClarityModule } from '@clr/angular';
import { CodemirrorModule } from '@ctrl/ngx-codemirror';
import { TranslateModule } from '@ngx-translate/core';

import { SettingsDialogComponent } from './settings-dialog.component';
import { NotifyService } from 'app/services';
import { NotifyService, KeybinderService, WindowService, DbService, ElectronAppService } from 'app/services';
import { ToastrModule } from 'ngx-toastr';
import { Store } from '@ngrx/store';
import { ElectronService } from 'ngx-electron';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

describe('SettingsDialogComponent', () => {
let component: SettingsDialogComponent;
Expand All @@ -17,14 +21,28 @@ describe('SettingsDialogComponent', () => {
TestBed.configureTestingModule({
declarations: [ SettingsDialogComponent ],
imports: [
BrowserAnimationsModule,
FormsModule,
CodemirrorModule,
ClarityModule,
ToastrModule.forRoot(),
TranslateModule.forRoot()
TranslateModule.forRoot(),
],
providers: [
NotifyService
NotifyService,
KeybinderService,
WindowService,
DbService,
ElectronAppService,
ElectronService,
{
provide: Store, useValue: {
subscribe: () => { },
select: () => [],
map: () => observableEmpty(),
dispatch: () => { }
}
}
]
})
.compileComponents();
Expand Down

0 comments on commit 77f6a78

Please sign in to comment.