diff --git a/LesionTracker/.eslintrc.json b/LesionTracker/.eslintrc.json new file mode 100644 index 000000000..f7b48d513 --- /dev/null +++ b/LesionTracker/.eslintrc.json @@ -0,0 +1,47 @@ +{ + "parser": "babel-eslint", + "parserOptions": { + "allowImportExportEverywhere": true + }, + "plugins": [ + "meteor" + ], + "env": { + /* Allows global vars from the Meteor environment to pass and enables certain rules */ + "meteor": true, + "node": true, + "browser": true + }, + "extends": [ + "airbnb", + "plugin:meteor/recommended" + ], + "settings": { + "import/resolver": "meteor" + }, + "rules": { + "meteor/no-session": 0, // We are actually using Session for now... + "meteor/eventmap-params": [2, {"eventParamName": "event"}], + "meteor/eventmap-params": [2, {"templateInstanceParamName": "instance"}], + "import/no-extraneous-dependencies": 0, + "import/no-unresolved": 0, // There are a bunch of ESLint problems with Meteor's resolver + "import/no-duplicates": 0, // So we are disabling these for now + "import/extensions": 0, + "import/no-absolute-path": 0, + "no-console": 0, // For development + "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }], + "indent": ["error", 4], + "new-cap": 0, // Until Match has an exception + "func-names": 0, // This is a bit of an annoying rule + "no-underscore-dangle": 0, // Doesn't seem to mesh with _id for MongoDB Ids (or SimpleSchema) + "max-len": 0, // TODO: re-enable the rules below and fix all of the errors + "consistent-return": 0, + "no-param-reassign": 0, + "no-mixed-operators": 0, + "arrow-body-style": 0, + "valid-typeof": 0, + "import/prefer-default-export": 0 + "no-undef": 0 + }, + "globals": {} +} \ No newline at end of file diff --git a/LesionTracker/package.json b/LesionTracker/package.json new file mode 100644 index 000000000..4ce6a75ed --- /dev/null +++ b/LesionTracker/package.json @@ -0,0 +1,36 @@ +{ + "name": "LesionTracker", + "private": true, + "scripts": { + "lint": "eslint .", + "fix": "eslint --fix .", + "pretest": "npm run lint --silent" + }, + "version": "1.0.0", + "description": "", + "dependencies": { + "bcrypt": "^0.8.7", + "meteor-node-stubs": "^0.2.3" + }, + "devDependencies": { + "babel-eslint": "^6.1.2", + "eslint": "^3.7.0", + "eslint-config-airbnb": "^12.0.0", + "eslint-import-resolver-meteor": "^0.3.3", + "eslint-plugin-import": "^1.16.0", + "eslint-plugin-jsx-a11y": "^2.2.2", + "eslint-plugin-meteor": "^4.0.0", + "eslint-plugin-react": "^6.3.0" + }, + "main": "index.js", + "repository": { + "type": "git", + "url": "https://github.com/OHIF/Viewers.git" + }, + "author": "OHIF", + "license": "MIT", + "bugs": { + "url": "https://github.com/OHIF/Viewers/issues" + }, + "homepage": "https://github.com/OHIF/Viewers" +} diff --git a/Packages/.eslintignore b/Packages/.eslintignore new file mode 100644 index 000000000..18d68beef --- /dev/null +++ b/Packages/.eslintignore @@ -0,0 +1,8 @@ +active-entry +hipaa-audit-log +meteor-stale-session +validatejs +orthanc-remote +ohif-cornerstone +ohif-viewerbase/client/compatibility +ohif-core/client/lib/third-party/ \ No newline at end of file diff --git a/Packages/.eslintrc.json b/Packages/.eslintrc.json new file mode 100644 index 000000000..e09c61411 --- /dev/null +++ b/Packages/.eslintrc.json @@ -0,0 +1,47 @@ +{ + "parser": "babel-eslint", + "parserOptions": { + "allowImportExportEverywhere": true + }, + "plugins": [ + "meteor" + ], + "env": { + /* Allows global vars from the Meteor environment to pass and enables certain rules */ + "meteor": true, + "node": true, + "browser": true + }, + "extends": [ + "airbnb", + "plugin:meteor/recommended" + ], + "settings": { + "import/resolver": "meteor" + }, + "rules": { + "meteor/no-session": 0, // We are actually using Session for now... + "meteor/eventmap-params": [2, {"eventParamName": "event"}], + "meteor/eventmap-params": [2, {"templateInstanceParamName": "instance"}], + "import/no-extraneous-dependencies": 0, + "import/no-unresolved": 0, // There are a bunch of ESLint problems with Meteor's resolver + "import/no-duplicates": 0, // So we are disabling these for now + "import/extensions": 0, + "import/no-absolute-path": 0, + "no-console": 0, // For development + "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }], + "indent": ["error", 4], + "new-cap": 0, // Until Match has an exception + "func-names": 0, // This is a bit of an annoying rule + "no-underscore-dangle": 0, // Doesn't seem to mesh with _id for MongoDB Ids (or SimpleSchema) + "max-len": 0, // TODO: re-enable the rules below and fix all of the errors + "consistent-return": 0, + "no-param-reassign": 0, + "no-mixed-operators": 0, + "arrow-body-style": 0, + "valid-typeof": 0, + "import/prefer-default-export": 0 + //"no-undef": 0 + }, + "globals": {} +} \ No newline at end of file