Commit a0420a0c authored by Julien Fontanet's avatar Julien Fontanet

chore: use Standard config

parent 9309fb9c
module.exports = { module.exports = {
env: { extends: ['standard', 'prettier'],
node: true,
},
extends: ['eslint:recommended', 'plugin:node/recommended'],
globals: { globals: {
Promise: true, Promise: true,
}, },
parserOptions: { parserOptions: {
ecmaVersion: 5, ecmaVersion: 5,
}, },
plugins: ['node'],
rules: { rules: {
indent: 'off', // detect incorrect import/require
'linebreak-style': ['error', 'unix'], 'node/no-extraneous-import': 'error',
quotes: [ 'node/no-extraneous-require': 'error',
'error', 'node/no-missing-require': 'error',
'single', 'node/no-missing-import': 'error',
{
avoidEscape: true,
},
],
semi: ['error', 'always'],
}, },
}; };
...@@ -51,7 +51,7 @@ SMB2Forge.response = function(c) { ...@@ -51,7 +51,7 @@ SMB2Forge.response = function(c) {
var r = c.responseBuffer.slice(4, msgLength + 4); var r = c.responseBuffer.slice(4, msgLength + 4);
var message = new SMB2Message(); var message = new SMB2Message();
message.parseBuffer(r); message.parseBuffer(r);
//debug // debug
if (c.debug) { if (c.debug) {
console.log('--response'); // eslint-disable-line no-console console.log('--response'); // eslint-disable-line no-console
console.log(r.toString('hex')); // eslint-disable-line no-console console.log(r.toString('hex')); // eslint-disable-line no-console
......
This diff is collapsed.
...@@ -39,9 +39,14 @@ ...@@ -39,9 +39,14 @@
}, },
"devDependencies": { "devDependencies": {
"babel": "^5.8.34", "babel": "^5.8.34",
"eslint": "^5.0.1", "eslint": "^5.9.0",
"eslint-config-prettier": "^3.3.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^8.0.0", "eslint-plugin-node": "^8.0.0",
"prettier": "^1.13.7", "eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"prettier": "^1.15.3",
"source-map-support": "^0.4.0" "source-map-support": "^0.4.0"
}, },
"license": "MIT" "license": "MIT"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment