Add ESLint configuration
This commit is contained in:
parent
7d9efc2b71
commit
75bb0a80b2
47
LesionTracker/.eslintrc.json
Normal file
47
LesionTracker/.eslintrc.json
Normal file
@ -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": {}
|
||||||
|
}
|
||||||
36
LesionTracker/package.json
Normal file
36
LesionTracker/package.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
8
Packages/.eslintignore
Normal file
8
Packages/.eslintignore
Normal file
@ -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/
|
||||||
47
Packages/.eslintrc.json
Normal file
47
Packages/.eslintrc.json
Normal file
@ -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": {}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user