Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lillem4n committed Aug 21, 2018
1 parent 3d50794 commit bbd07e0
Show file tree
Hide file tree
Showing 6 changed files with 346 additions and 251 deletions.
97 changes: 76 additions & 21 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,82 @@
"node": true
},
"rules": {
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": [0],
"comma-spacing": [2, {"before": false, "after": true}],
"eol-last": [0],
"function-paren-newline": ["error", "never"],
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"capitalized-comments": ["error", "always", {"ignoreConsecutiveComments": true}],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "that"],
"eol-last": ["error", "always"],
"eqeqeq": ["warn", "always"],
"func-call-spacing": ["error", "never"],
"func-style": ["error", "declaration", {"allowArrowFunctions": true}],
"function-paren-newline": ["error", "multiline"],
"indent": ["error", "tab"],
"key-spacing": [0],
"no-mixed-requires": [0],
"no-multi-spaces": [0],
"no-process-exit": [0],
"no-shadow": [0],
"no-underscore-dangle": [0],
"no-unused-expressions": [2],
"no-unused-vars": [2],
"no-use-before-define": [0],
"one-var": [2],
"quotes": [2, "single"],
"semi": [2, "always"],
"space-infix-ops": [2],
"space-unary-ops": [1, { "words": true, "nonwords": true }],
"strict": [2, "global"],
"vars-on-top": [2]
"key-spacing": [
"error",
{"beforeColon": false, "afterColon": true, "mode": "strict", "align": "value"}
],
"keyword-spacing": ["error", {"before": true, "after": true}],
"linebreak-style": ["error", "unix"],
"lines-around-comment": ["error", {"beforeBlockComment": true, "afterBlockComment": false}],
"lines-between-class-members": ["error", "always"],
"multiline-ternary": ["error", "never"],
"new-cap": ["error"],
"new-parens": ["error"],
"newline-per-chained-call": ["error"],
"no-dupe-args": ["error"],
"no-dupe-keys": ["error"],
"no-invalid-regexp": ["error"],
"no-irregular-whitespace": ["error", {"skipStrings": true, "skipComments": true, "skipRegExps": true, "skipTemplates": true}],
"no-lonely-if": ["error"],
"no-mixed-operators": ["error"],
"no-mixed-requires": ["off"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 1, "maxBOF": 0}],
"no-process-exit": ["off"],
"no-redeclare": ["error"],
"no-sequences": ["error"],
"no-shadow": ["off"],
"no-trailing-spaces": ["error", {"ignoreComments": true}],
"no-underscore-dangle": ["off"],
"no-unexpected-multiline": ["error"],
"no-unreachable": ["error"],
"no-unused-expressions": ["error"],
"no-unused-vars": ["error", {"caughtErrors": "all"}],
"no-use-before-define": ["error", {"functions": true, "classes": true, "variables": true}],
"no-var": ["error"],
"no-whitespace-before-property": ["error"],
"nonblock-statement-body-position": ["error", "beside"],
"one-var": ["error", "never"],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": [
"error",
{"blankLine": "always", "prev": "*", "next": "return"},
{"blankLine": "always", "prev": ["const", "let"], "next": "*"},
{"blankLine": "any", "prev": ["const", "let"], "next": ["const", "let"]}
],
"quote-props": ["error", "always"],
"quotes": ["error", "single"],
"require-jsdoc": ["error", {"require": {"FunctionDeclaration": true, "MethodDefinition": false, "ClassDeclaration": false, "ArrowFunctionExpression": false, "FunctionExpression": false}}],
"semi-spacing": ["error", {"before": false, "after": true}],
"semi-style": ["error", "last"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error", {"words": true, "nonwords": true}],
"spaced-comment": ["error", "always"],
"strict": ["error", "global"],
"template-tag-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"valid-jsdoc": ["error", {"requireReturn": false}],
"valid-typeof": ["error"],
"vars-on-top": ["off"]
}
}
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ npm i larvitfs
Paths are relative to process.cwd() as first priority. If nothing is found there, all modules will be tested as relative to this path to try to find a matching file. The modules are searched in the order given in package.json dependencies.

```javascript
const Lfs = require('larvitfs'),
lfs = new Lfs({
'basePath': process.cwd(), // OPTIONAL
'cacheMaxSize': 10000 // OPTIONAL
const LUtils = require('larvitutils'),
Lfs = require('larvitfs'),
lfs = new Lfs({
'basePath': process.cwd(), // OPTIONAL
'cacheMaxSize': 10000, // OPTIONAL
'log': new (new LUtils()).Log(), // OPTIONAL
'fs': require('fs') // OPTIONAL
});
```

Expand Down
Loading

0 comments on commit bbd07e0

Please sign in to comment.