Skip to content

Commit

Permalink
Eslinting (especially, purging semicolons); moved doc to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
calebsander committed Aug 22, 2016
1 parent 166e0d4 commit cd4bcbf
Show file tree
Hide file tree
Showing 182 changed files with 4,253 additions and 3,770 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#coverage
node_modules
**/*-noutil.js
**/*-nozlib.js
client-side/upload-download.js

compiled
doc
docs
62 changes: 0 additions & 62 deletions .eslintrc.js

This file was deleted.

273 changes: 273 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
{
"env": {
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": "error",
"array-callback-return": "error",
"arrow-body-style": "error",
"arrow-parens": [
"error",
"as-needed"
],
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"stroustrup",
{"allowSingleLine": true}
],
"camelcase": [
"error",
{"properties": "always"}
],
"comma-dangle": [
"error",
"never"
],
"comma-style": "error",
"computed-property-spacing": "error",
"constructor-super": "error",
"consistent-this": [
"error",
"self"
],
"curly": [
"error",
"multi-line"
],
"default-case": "error",
"dot-location": [
"error",
"property"
],
"dot-notation": "error",
"eqeqeq": [
"error",
"always"
],
"func-call-spacing": "error",
"func-names": [
"error",
"never"
],
"func-style": [
"error",
"declaration"
],
"generator-star-spacing": [
"error",
"after"
],
"guard-for-in": "error",
"handle-callback-err": "error",
"indent": [
"error",
"tab",
{"SwitchCase": 1}
],
"linebreak-style": [
"error",
"unix"
],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"new-cap": [
"error",
{
"newIsCap": true,
"capIsNew": true,
"properties": true
}
],
"no-caller": "error",
"no-case-declarations": "error",
"no-catch-shadow": "error",
"no-class-assign": "error",
"no-cond-assign": [
"error",
"except-parens"
],
"no-console": "off",
"no-const-assign": "error",
"no-delete-var": "error",
"no-div-regex": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": [
"error",
{"allowEmptyCatch": true}
],
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-eq-null": "error",
"no-ex-assign": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-boolean-cast": "error",
"no-extra-label": "error",
"no-extra-parens": [
"error",
"all",
{"nestedBinaryExpressions": false}
],
"no-extra-semi": "error",
"no-floating-decimal": "error",
"no-func-assign": "error",
"no-global-assign": [
"error",
{"exceptions": ["__dirname"]}
],
"no-implicit-coercion": [
"error",
{"boolean": false}
],
"no-implied-eval": "error",
"no-inner-declarations": [
"error",
"both"
],
"no-invalid-regexp": "error",
"no-invalid-this": "error",
"no-irregular-whitespace": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-lone-blocks": "error",
"no-mixed-operators": [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
]
}
],
"no-mixed-requires": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 0,
"maxBOF": 0
}
],
"no-multi-spaces": "error",
"no-native-reassign": "off",
"no-negated-condition": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-process-env": "error",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-shadow-restricted-names": "error",
"no-sparse-arrays": "error",
"no-sync": "error",
"no-template-curly-in-string": "error",
"no-this-before-super": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unexpected-multiline": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-var": "error",
"no-void": "error",
"no-warning-comments": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"object-curly-spacing": "error",
"object-shorthand": "error",
"one-var-declaration-per-line": "error",
"operator-assignment": "error",
"operator-linebreak": "error",
"padded-blocks": [
"error",
"never"
],
"prefer-arrow-callback": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"radix": "error",
"require-yield": "error",
"sort-imports": "error",
"quote-props": [
"error",
"as-needed"
],
"quotes": [
"error",
"single",
{"avoidEscape": true}
],
"semi": [
"error",
"never"
],
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
"never"
],
"space-infix-ops": "error",
"space-in-parens": "error",
"space-unary-ops": [
"error",
{
"words": true,
"nonwords": false
}
],
"unicode-bom": "error",
"use-isnan": "error",
"valid-jsdoc": [
"error",
{
"prefer": {
"returns": "return"
},
"requireParamDescription": false,
"requireReturn": false
}
],
"valid-typeof": "error",
"wrap-iife": "error",
"yield-star-spacing": "error",
"yoda": "error"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ A lot of data, especially data designed to be used in many different languages,
- `Pointer<Type>` (allows multiple long instances of `Type` with the same bytes to be stored only once)

## Documentation
The `doc` folder is hosted at https://calebsander.github.io/structure-bytes/doc/.
The `docs` folder is hosted at https://calebsander.github.io/structure-bytes.

## Examples
### Type creation
Expand Down
Loading

0 comments on commit cd4bcbf

Please sign in to comment.