Skip to content

Commit 60dbfd4

Browse files
tillmoeugenk
authored andcommitted
Initialize ontohub-frontend repository.
0 parents  commit 60dbfd4

File tree

6 files changed

+352
-0
lines changed

6 files changed

+352
-0
lines changed

.codeclimate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
engines:
2+
eslint:
3+
enabled: true
4+
channel: "eslint-2"

.eslintrc

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"root": true,
3+
"parserOptions": {
4+
"ecmaVersion": 6,
5+
"sourceType": "module"
6+
},
7+
"extends": "eslint:recommended",
8+
"env": {
9+
"browser": true,
10+
"mocha": true
11+
},
12+
"globals": {
13+
"andThen": true,
14+
"Application": true,
15+
"click": true,
16+
"currentPath": true,
17+
"currentRoutePath": true,
18+
"currentURL": true,
19+
"fillIn": true,
20+
"find": true,
21+
"keyEvent": true,
22+
"server": true,
23+
"triggerEvent": true,
24+
"visit": true
25+
},
26+
"rules": {
27+
"arrow-body-style": ["error"],
28+
"arrow-parens": ["warn", "always"],
29+
"arrow-spacing": ["error"],
30+
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
31+
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
32+
"indent": ["error", 2, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }],
33+
"linebreak-style": ["error", "unix"],
34+
"max-len": ["warn", 80],
35+
"no-confusing-arrow": ["warn"],
36+
"no-const-assign": ["error"],
37+
"no-eval": ["error"],
38+
"no-mixed-spaces-and-tabs": ["error"],
39+
"no-trailing-spaces": ["error"],
40+
"no-var": ["error"],
41+
"object-curly-spacing": ["error", "always"],
42+
"one-var": ["error", "always"],
43+
"prefer-arrow-callback": ["warn", { "allowNamedFunctions": true }],
44+
"prefer-rest-params": ["error"],
45+
"semi": ["warn", "never"],
46+
"semi-spacing": ["error"],
47+
"template-curly-spacing": ["error"],
48+
"quotes": ["warn", "single", { "avoidEscape": true }]
49+
}
50+
}

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# compiled output
2+
/dist
3+
/tmp
4+
5+
# dependencies
6+
/node_modules
7+
8+
# misc
9+
/.sass-cache
10+
/connect.lock
11+
/coverage/*
12+
/libpeerconnection.log
13+
npm-debug.log
14+
testem.log
15+
.vscode
16+
testem.local.js

.hound.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
eslint:
2+
enabled: true
3+
config_file: .eslintrc
4+
5+
scss:
6+
config_file: .scss-lint.yml

.scss-lint.yml

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
scss_files: 'app/styles/**/*.scss'
2+
plugin_directories: ['.scss-linters']
3+
4+
# List of gem names to load custom linters from (make sure they are already
5+
# installed)
6+
plugin_gems: []
7+
8+
# Default severity of all linters.
9+
severity: warning
10+
11+
linters:
12+
BangFormat:
13+
enabled: true
14+
space_before_bang: true
15+
space_after_bang: false
16+
17+
BemDepth:
18+
enabled: false
19+
max_elements: 1
20+
21+
BorderZero:
22+
enabled: true
23+
convention: zero # or `none`
24+
25+
ChainedClasses:
26+
enabled: false
27+
28+
ColorKeyword:
29+
enabled: true
30+
31+
ColorVariable:
32+
enabled: true
33+
34+
Comment:
35+
enabled: true
36+
style: silent
37+
38+
DebugStatement:
39+
enabled: true
40+
41+
DeclarationOrder:
42+
enabled: true
43+
44+
DisableLinterReason:
45+
enabled: false
46+
47+
DuplicateProperty:
48+
enabled: true
49+
50+
ElsePlacement:
51+
enabled: true
52+
style: same_line # or 'new_line'
53+
54+
EmptyLineBetweenBlocks:
55+
enabled: true
56+
ignore_single_line_blocks: true
57+
58+
EmptyRule:
59+
enabled: true
60+
61+
ExtendDirective:
62+
enabled: false
63+
64+
FinalNewline:
65+
enabled: true
66+
present: true
67+
68+
HexLength:
69+
enabled: false
70+
style: short # or 'long'
71+
72+
HexNotation:
73+
enabled: true
74+
style: lowercase # or 'uppercase'
75+
76+
HexValidation:
77+
enabled: true
78+
79+
IdSelector:
80+
enabled: true
81+
82+
ImportantRule:
83+
enabled: true
84+
85+
ImportPath:
86+
enabled: true
87+
leading_underscore: false
88+
filename_extension: false
89+
90+
Indentation:
91+
enabled: true
92+
allow_non_nested_indentation: false
93+
character: space # or 'tab'
94+
width: 2
95+
96+
LeadingZero:
97+
enabled: true
98+
style: exclude_zero # or 'exclude_zero'
99+
100+
MergeableSelector:
101+
enabled: true
102+
force_nesting: true
103+
104+
NameFormat:
105+
enabled: true
106+
allow_leading_underscore: true
107+
convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern
108+
109+
NestingDepth:
110+
enabled: true
111+
max_depth: 4
112+
ignore_parent_selectors: false
113+
114+
PlaceholderInExtend:
115+
enabled: false
116+
117+
PrivateNamingConvention:
118+
enabled: false
119+
prefix: _
120+
121+
PropertyCount:
122+
enabled: true
123+
include_nested: false
124+
max_properties: 10
125+
126+
PropertySortOrder:
127+
enabled: true
128+
ignore_unspecified: false
129+
min_properties: 2
130+
separate_groups: false
131+
132+
PropertySpelling:
133+
enabled: true
134+
extra_properties: []
135+
disabled_properties: []
136+
137+
PropertyUnits:
138+
enabled: true
139+
global: [
140+
'ch', 'em', 'ex', 'rem', # Font-relative lengths
141+
'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q', # Absolute lengths
142+
'vh', 'vw', 'vmin', 'vmax', # Viewport-percentage lengths
143+
'deg', 'grad', 'rad', 'turn', # Angle
144+
'ms', 's', # Duration
145+
'Hz', 'kHz', # Frequency
146+
'dpi', 'dpcm', 'dppx', # Resolution
147+
'%'] # Other
148+
properties: {}
149+
150+
PseudoElement:
151+
enabled: true
152+
153+
QualifyingElement:
154+
enabled: true
155+
allow_element_with_attribute: false
156+
allow_element_with_class: false
157+
allow_element_with_id: false
158+
159+
SelectorDepth:
160+
enabled: true
161+
max_depth: 4
162+
163+
SelectorFormat:
164+
enabled: true
165+
convention: hyphenated_lowercase # or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern
166+
167+
Shorthand:
168+
enabled: true
169+
allowed_shorthands: [1, 2, 3]
170+
171+
SingleLinePerProperty:
172+
enabled: true
173+
allow_single_line_rule_sets: true
174+
175+
SingleLinePerSelector:
176+
enabled: true
177+
178+
SpaceAfterComma:
179+
enabled: true
180+
style: one_space # or 'no_space', or 'at_least_one_space'
181+
182+
SpaceAfterPropertyColon:
183+
enabled: true
184+
style: one_space # or 'no_space', or 'at_least_one_space', or 'aligned'
185+
186+
SpaceAfterPropertyName:
187+
enabled: true
188+
189+
SpaceAfterVariableColon:
190+
enabled: false
191+
style: one_space # or 'no_space', 'at_least_one_space' or 'one_space_or_newline'
192+
193+
SpaceAfterVariableName:
194+
enabled: true
195+
196+
SpaceAroundOperator:
197+
enabled: true
198+
style: one_space # or 'at_least_one_space', or 'no_space'
199+
200+
SpaceBeforeBrace:
201+
enabled: true
202+
style: space # or 'new_line'
203+
allow_single_line_padding: false
204+
205+
SpaceBetweenParens:
206+
enabled: true
207+
spaces: 0
208+
209+
StringQuotes:
210+
enabled: true
211+
style: single_quotes # or single_quotes
212+
213+
TrailingSemicolon:
214+
enabled: true
215+
216+
TrailingWhitespace:
217+
enabled: true
218+
219+
TrailingZero:
220+
enabled: false
221+
222+
TransitionAll:
223+
enabled: false
224+
225+
UnnecessaryMantissa:
226+
enabled: true
227+
228+
UnnecessaryParentReference:
229+
enabled: true
230+
231+
UrlFormat:
232+
enabled: true
233+
234+
UrlQuotes:
235+
enabled: true
236+
237+
VariableForProperty:
238+
enabled: false
239+
properties: []
240+
241+
VendorPrefix:
242+
enabled: true
243+
identifier_list: base
244+
additional_identifiers: []
245+
excluded_identifiers: []
246+
247+
ZeroUnit:
248+
enabled: true
249+
250+
Compass::*:
251+
enabled: false

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
dist: trusty
2+
language: node_js
3+
sudo: false
4+
5+
node_js:
6+
- "6"
7+
- "7"
8+
9+
cache:
10+
directories:
11+
- "/home/travis/.yarn-cache"
12+
13+
before_install:
14+
- "yarn --version"
15+
16+
install:
17+
- "yarn install --pure-lockfile --no-emoji"
18+
- "yarn run bower install"
19+
20+
script:
21+
- "yarn test"
22+
23+
after_script:
24+
- "cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js"
25+
- "cat coverage/lcov.info | node_modules/codeclimate-test-reporter/bin/codeclimate.js"

0 commit comments

Comments
 (0)