Small changes

This commit is contained in:
Federico Kereki
2018-04-30 22:42:23 -03:00
parent 8d8b87ba25
commit 6a758c1f25
5 changed files with 494 additions and 883 deletions
+27 -9
View File
@@ -5,8 +5,7 @@
"main": "index.js",
"scripts": {
"build": "flow-remove-types src/ -d out/",
"buildWithMaps":
"flow-remove-types src/ -d out/ --pretty --sourcemaps",
"buildWithMaps": "flow-remove-types src/ -d out/ --pretty --sourcemaps",
"start": "npm run build && node out/doroundmath.js",
"start-db": "npm run build && node out/dbaccess.js",
"nodemon": "nodemon --watch src --delay 1 --exec npm start",
@@ -20,7 +19,10 @@
"author": "Federico Kereki",
"license": "ISC",
"babel": {
"presets": ["env", "flow"]
"presets": [
"env",
"flow"
]
},
"eslintConfig": {
"parserOptions": {
@@ -32,21 +34,37 @@
"node": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:flowtype/recommended"],
"plugins": ["babel", "flowtype"],
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"babel",
"flowtype"
],
"rules": {
"no-console": "off",
"no-var": "error",
"prefer-const": "error"
}
},
"eslintIgnore": ["**/out/*.js"],
"eslintIgnore": [
"**/out/*.js"
],
"flow-coverage-report": {
"concurrentFiles": 1,
"excludeGlob": ["node_modules/**"],
"includeGlob": ["src/**/*.js"],
"excludeGlob": [
"node_modules/**"
],
"includeGlob": [
"src/**/*.js"
],
"threshold": 90,
"type": ["text", "html", "json"]
"type": [
"text",
"html",
"json"
]
},
"prettier": {
"tabWidth": 4,