From 6e5bc8a2df8a2e179fe2d24fcd3adcd4c002fa65 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 21 Mar 2019 12:02:55 -0700 Subject: [PATCH] bcfg: pkg: upgrade deps. update ignore and rc files. --- .eslintrc.json | 58 ++++++++++++++++++++++++++++++++++++++++++++++++-- .gitignore | 1 - .npmignore | 13 +++++++++-- package.json | 4 ++-- 4 files changed, 69 insertions(+), 7 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 7ce723f..4db51ca 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,8 +4,53 @@ "node": true }, "extends": "eslint:recommended", + "globals": { + "Atomics": "readable", + "BigInt": "readable", + "BigInt64Array": "readable", + "BigUint64Array": "readable", + "queueMicrotask": "readable", + "SharedArrayBuffer": "readable", + "TextEncoder": "readable", + "TextDecoder": "readable" + }, + "overrides": [ + { + "files": ["*.mjs"], + "parserOptions": { + "sourceType": "module" + } + }, + { + "files": ["*.cjs"], + "parserOptions": { + "sourceType": "script" + } + }, + { + "files": [ + "test/{,**/}*.{mjs,cjs,js}" + ], + "env": { + "mocha": true + }, + "globals": { + "register": "readable" + }, + "rules": { + "max-len": "off", + "prefer-arrow-callback": "off" + } + } + ], + "parser": "babel-eslint", "parserOptions": { - "ecmaVersion": 9 + "ecmaVersion": 10, + "ecmaFeatures": { + "globalReturn": true + }, + "requireConfigFile": false, + "sourceType": "script" }, "root": true, "rules": { @@ -27,11 +72,20 @@ }], "func-name-matching": "error", "indent": ["off", 2, { + "ArrayExpression": "off", "SwitchCase": 1, "CallExpression": { "arguments": "off" }, - "ArrayExpression": "off" + "FunctionDeclaration": { + "parameters": "off" + }, + "FunctionExpression": { + "parameters": "off" + }, + "MemberExpression": "off", + "ObjectExpression": "off", + "ImportDeclaration": "off" }], "handle-callback-err": "off", "linebreak-style": ["error", "unix"], diff --git a/.gitignore b/.gitignore index 66654c5..94a5fd9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ build/ node_modules/ npm-debug.log -package-lock.json diff --git a/.npmignore b/.npmignore index 11b0749..67d7010 100644 --- a/.npmignore +++ b/.npmignore @@ -1,8 +1,17 @@ +.babel* +.bmocharc* +.bpkgignore +.editorconfig +.eslint* .git* +.mocharc* +.yarnignore bench/ -docs/ build/ -test/ +docs/ node_modules/ npm-debug.log package-lock.json +test/ +webpack.*.js +yarn.lock diff --git a/package.json b/package.json index f7d0233..7c7e5ff 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,10 @@ "test": "bmocha --reporter spec test/*-test.js" }, "dependencies": { - "bsert": "~0.0.8" + "bsert": "~0.0.9" }, "devDependencies": { - "bmocha": "^1.0.0" + "bmocha": "^2.1.0" }, "engines": { "node": ">=8.0.0"