Instantly share code, notes, and snippets.

View good-data-example.js
{
name: 'Poppyseed',
address: {
street: '1234 Marion St.',
suite: '29',
postalCode: '12345',
city: 'Andersonville',
state: 'IL',
country: 'US',
},
View bad-data-example.js
{
lol: 'This will not work.',
dangerousData: 129301924109214,
name: 'Fake Restuarant'
}
View Restaurants.js
import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
const Restaurants = new Mongo.Collection('Restaurants');
Restaurants.allow({
insert: () => false,
update: () => false,
remove: () => false,
});
View styles.less
// Styling Error Types
atom-text-editor.editor .linter-highlight, .linter-highlight{
&.badge {
border-radius: @component-border-radius;
overflow: hidden;
text-overflow: ellipsis;
}
&.error {
&:not(.line-number){
background-color: transparent;