UNPKG

validator-chain

Version:

Powerful tool for validate input parameters in the most stylish way. Could be use as simple test case in conditional statement or in standalone chain of validation

71 lines (70 loc) 2.48 kB
{ "extends": [ "airbnb-base" ], "env": { "node": true, "mocha": true }, "globals": { "Promise": "off" }, "parserOptions": { "ecmaVersion": 9, "sourceType": "module", "ecmaFeatures": { "impliedStrict": true, "jsx": false } }, "plugins": [ "import" ], "settings": { "import/resolver": { "node": { "extensions": [".js", ".jsx", ".ts", ".tsx"] } } }, "rules": { "array-bracket-spacing": [ "error", "always" ], "arrow-body-style": 0, "brace-style": [ "error", "1tbs", { "allowSingleLine": false } ], "callback-return": "error", "camelcase": [ "error", { "properties": "always" } ], "comma-dangle": [ "error", "always-multiline", { "functions": "never" } ], "consistent-return": [ "error", { "treatUndefinedAsUnspecified": false } ], "curly": [ "error", "all" ], "eqeqeq": [ "error", "always" ], "function-paren-newline": [ "error", "consistent" ], "global-require": 0, "import/extensions": [ "error", "never" ], "import/no-dynamic-require": 0, "import/prefer-default-export": 0, "indent": [ "error", "tab", { "ignoredNodes": [ "ConditionalExpression" ] } ], "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], "max-len": [ 1, 200 ], "new-cap": [ "error", { "capIsNew": false, "properties": false } ], "newline-per-chained-call": [ "off" ], "no-bitwise": [ "error", { "allow": [ "^=", "|=", "&=", "<<=", ">>=", ">>>=", "^", "~", "<<", ">>", ">>>" ] } ], "no-cond-assign": [ "error", "except-parens" ], "no-param-reassign": [ "error", { "props": false } ], "no-plusplus": [ "error", { "allowForLoopAfterthoughts": true } ], "no-return-assign": [ "error", "except-parens" ], "no-tabs": [ "off" ], "no-shadow": [ "error", { "builtinGlobals": false, "hoist": "functions" } ], "no-underscore-dangle": [ "error", { "allowAfterThis": true } ], "no-unused-vars": [ "error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": true } ], "no-use-before-define": [ "error", { "classes": false } ], "no-useless-constructor": "off", "nonblock-statement-body-position": [ "error", "below" ], "object-curly-newline": [ "error", { "consistent": true } ], "prefer-const": [ "error", { "destructuring": "all" } ], "prefer-destructuring": [ "off", { "array": false, "object": true } ], "quotes": [ "error", "single" ], "radix": "error", "semi": [ "error", "always", { "omitLastInOneLineBlock": true} ], "valid-jsdoc": [ "error" ] } }