Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
amejiarosario committed Mar 29, 2019
1 parent 4c65486 commit 2e9912b
Show file tree
Hide file tree
Showing 17 changed files with 166 additions and 157 deletions.
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/runtimes/**
src/data-structures/maps/hash-maps/hashing.js
src/data-structures/maps/hash-maps/*-test.js
src/data-structures/maps/hash-maps/hash-map-*.js
src/data-structures/linked-lists/linked-list-*.js
src/data-structures/custom/lru-cache-*.js
18 changes: 9 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
module.exports = {
"extends": "airbnb-base",
"env": {
"jest": true
extends: 'airbnb-base',
env: {
jest: true
},
globals: {
BigInt: true,
},
rules: {
// https://github.com/airbnb/javascript/issues/1089

// https://stackoverflow.com/a/35637900/684957
// allow to add properties to arguments
"no-param-reassign": [2, { "props": false }],
'no-param-reassign': [2, { 'props': false }],

// https://eslint.org/docs/rules/no-plusplus
// allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
"no-plusplus": [2, { "allowForLoopAfterthoughts": true }],
'no-plusplus': [2, { 'allowForLoopAfterthoughts': true }],

// Allow for..of
"no-restricted-syntax": [0, "ForOfStatement"],
},
globals: {
BigInt: true,
'no-restricted-syntax': [0, 'ForOfStatement'],
}
};
Loading

0 comments on commit 2e9912b

Please sign in to comment.