Skip to content

Commit 22972c3

Browse files
authoredOct 28, 2020
Merge pull request #93 from amejiarosario/feat/linkedlist
LinkedList chapter improvements
2 parents 0e12523 + 571834a commit 22972c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+973
-377
lines changed
 

‎.eslintrc.js

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
module.exports = {
22
extends: 'airbnb-base',
33
env: {
4-
jest: true
4+
jest: true,
55
},
6+
plugins: ['jest'],
67
globals: {
78
BigInt: true,
89
},
10+
11+
// check package.json for files to include
12+
// files: ['src/**/*.js', 'book/interview-questions/*.js'],
13+
914
rules: {
1015
// https://github.com/airbnb/javascript/issues/1089
1116

1217
// https://stackoverflow.com/a/35637900/684957
1318
// allow to add properties to arguments
14-
'no-param-reassign': [2, { 'props': false }],
19+
'no-param-reassign': [2, { props: false }],
1520

1621
// https://eslint.org/docs/rules/no-plusplus
1722
// allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
18-
'no-plusplus': [0, { 'allowForLoopAfterthoughts': true }],
23+
'no-plusplus': [0, { allowForLoopAfterthoughts: true }],
1924
'no-continue': [0],
2025

2126
// Allow for..of
2227
'no-restricted-syntax': [0, 'ForOfStatement'],
23-
}
28+
29+
// jest plugin
30+
// 'jest/no-disabled-tests': 'warn',
31+
'jest/no-focused-tests': 'error',
32+
'jest/no-identical-title': 'warn',
33+
'jest/valid-expect': 'warn',
34+
},
2435
};

‎book/content/part02/linked-list.asc

+291-12
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.