Skip to content

Commit

Permalink
eslint no errors
Browse files Browse the repository at this point in the history
  • Loading branch information
awatson1978 committed Dec 3, 2019
1 parent 7725e7e commit 92a47e9
Show file tree
Hide file tree
Showing 9 changed files with 12,080 additions and 9 deletions.
142 changes: 142 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"parser": "babel-eslint",
"parserOptions": {
"allowImportExportEverywhere": true,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"plugins": [
"meteor",
"react"
],
"extends": [
"airbnb",
"plugin:meteor/recommended"
],
"settings": {
"import/resolver": "meteor"
},
"ignorePatterns": ["node_modules/", "packages/", "tests/"],
"rules": {
"indent": [
"warn",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"warn",
"double"
],
"semi": [
"warn",
"always"
],
"key-spacing": [
"warn"
],
"space-before-blocks": [
"warn"
],

"react/jsx-filename-extension": 0,
"import/no-absolute-path": 0,
"import/extensions": 0,
"no-trailing-spaces": ["warn"],
"no-unused-vars": ["warn"],
"max-len": ["warn"],
"no-undef": ["warn"],
"meteor/no-session": ["warn"],
"quote-props": ["warn"],
"comma-dangle": ["warn"],
"spaced-comment": ["warn"],
"no-var": ["warn"],
"prefer-template": ["warn"],
"keyword-spacing": ["warn"],
"vars-on-top": ["warn"],
"no-plusplus": ["warn"],
"block-scoped-var": ["warn"],
"no-redeclare": ["warn"],
"space-before-blocks": ["warn"],
"consistent-return": ["warn"],
"object-curly-spacing": ["warn"],
"class-methods-use-this": ["warn"],
"react/sort-comp": ["warn"],
"no-multiple-empty-lines": ["warn"],
"no-unused-expressions": ["warn"],
"dot-notation": ["warn"],
"react/prop-types": ["warn"],
"no-multi-spaces": ["warn"],
"jsx-quotes": ["warn"],
"keyword-spacing": ["warn"],
"no-extra-semi": ["warn"],
"import/no-duplicates": ["warn"],
"padded-blocks": ["warn"],
"react/jsx-indent": ["warn"],
"react/self-closing-comp": ["warn"],
"import/no-unresolved": ["warn"],
"array-callback-return": ["warn"],
"react/jsx-curly-spacing": ["warn"],
"eol-last": ["warn"],
"no-duplicate-imports": ["warn"],
"prefer-const": ["warn"],
"semi-spacing": ["warn"],
"no-shadow": ["warn"],
"no-empty": ["warn"],
"import/imports-first": ["warn"],
"react/jsx-first-prop-new-line": ["warn"],
"react/jsx-wrap-multilines": ["warn"],
"no-lonely-if": ["warn"],
"react/jsx-closing-bracket-location": ["warn"],
"react/jsx-space-before-closing": ["warn"],
"new-cap": ["warn"],
"react/jsx-no-target-blank": ["warn"],
"arrow-body-style": ["warn"],
"no-else-return": ["warn"],
"no-mixed-operators": ["warn"],
"jsx-a11y/img-has-alt": ["warn"],
"import/newline-after-import": ["warn"],
"comma-spacing": ["warn"],
"import/no-named-as-default": ["warn"],
"arrow-parens": ["warn"],
"no-useless-constructor": ["warn"],
"react/jsx-no-bind": ["warn"],
"no-param-reassign": ["warn"],

// disabled so that we're not expecting to find 'meteor' within
// our dependencies.
// XXX: this *should* be taken care of by eslint-import-resolver-meteor, investigate.
"import/no-extraneous-dependencies": 0,

"no-underscore-dangle": [
"warn",
{
"allow": [
"_id",
"_ensureIndex"
]
}
],
"object-shorthand": [
"warn",
"always",
{
"avoidQuotes": false
}
],

"space-before-function-paren": 0,

// for Meteor API's that rely on `this` context, e.g. Template.onCreated and publications
"func-names": 0,
"prefer-arrow-callback": 0
}
}


18 changes: 16 additions & 2 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
clinical:[email protected]
clinical:[email protected]
clinical:[email protected]
clinical:[email protected]
clinical:[email protected]
clinical:[email protected]
clinical:[email protected].7
clinical:[email protected].8
clinical:[email protected]
[email protected]
[email protected]
Expand All @@ -32,7 +36,9 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
fortawesome:[email protected]_1
fourseven:[email protected]
[email protected]
[email protected]
Expand All @@ -41,13 +47,15 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
matb33:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Expand All @@ -63,6 +71,7 @@ [email protected]
[email protected]
npdev:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
raix:[email protected]
Expand All @@ -80,15 +89,20 @@ [email protected]
simple:[email protected]
socialize:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
symptomatic:[email protected]
symptomatic:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
tmeasday:[email protected]
tmeasday:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Expand Down
19 changes: 18 additions & 1 deletion INSTALLATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

## Quickstart
## Installation

```bash
# install the meteor compiler; this will take care of node, nvm, npm, yarn, etc.
Expand All @@ -18,7 +18,24 @@ meteor yarn install
# you will want to create your own settings file
# and a plugin if you have assets you want to keep private
meteor run --settings configs/settings.nodeonfhir.json --extra-packages symptomatic:example-plugin
```

## Testing
```bash
# run the app
meteor --settings configs/settings.nodeonfhir.localhost.json

# in a second terminal, run static code analysis tools
meteor npm run-script lint

# in a second terminal, run the test runner
meteor npm run-script nightwatch
```



## Production Build
```bash
# build and minifiy the application
meteor add symptomatic:example-plugin
meteor build --directory ../output
Expand Down
6 changes: 4 additions & 2 deletions app/api/links.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Mongo } from 'meteor/mongo';
import { Mongo } from "meteor/mongo";

export default Links = new Mongo.Collection('links');
const Links = new Mongo.Collection("links");

export default Links;
Loading

0 comments on commit 92a47e9

Please sign in to comment.