Skip to content

Commit b0d60ac

Browse files
authored
Merge pull request #293 from C2FO/update-depenencies
Update depenencies
2 parents 03e0678 + 7a17c58 commit b0d60ac

File tree

113 files changed

+2952
-2374
lines changed

Some content is hidden

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

113 files changed

+2952
-2374
lines changed

.eslintrc.js

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,57 @@
11
module.exports = {
22
parser: "@typescript-eslint/parser",
3-
"parserOptions": {
4-
"project": "./tsconfig.json"
3+
parserOptions: {
4+
project: "./tsconfig.json"
55
},
6-
plugins: ["@typescript-eslint"],
7-
extends: ["airbnb-base", "plugin:@typescript-eslint/recommended"],
6+
plugins: ["@typescript-eslint", "prettier"],
7+
extends: [
8+
"airbnb-base",
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"prettier",
13+
"prettier/@typescript-eslint"
14+
],
815
env: {
916
node: true,
1017
mocha: true,
1118
},
1219
settings:{
20+
"import/extensions": [
21+
".ts"
22+
],
23+
"import/parsers": {
24+
"@typescript-eslint/parser": [
25+
".ts"
26+
]
27+
},
1328
"import/resolver": {
1429
node: {
1530
extensions: [".ts"]
31+
},
32+
"typescript": {
33+
"alwaysTryTypes": true
1634
}
1735
}
1836
},
1937
globals: {
2038
NodeJS: 'readonly',
2139
},
2240
rules: {
41+
"import/extensions": [
42+
"error",
43+
"ignorePackages",
44+
{
45+
"ts": "never"
46+
}
47+
],
48+
"prettier/prettier": "error",
2349
"indent": [
2450
"error",
2551
4
2652
],
27-
"comma-dangle": ["error", {
28-
"arrays": "always-multiline",
29-
"objects": "always-multiline",
30-
"imports": "always-multiline",
31-
"exports": "always-multiline",
32-
"functions": "never"
33-
}],
3453
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
3554
"object-curly-spacing": ["error", "always"],
36-
"array-bracket-spacing": ["error", "always"],
3755
"no-underscore-dangle": 0,
3856
"max-len": ["error", 150, 2, {
3957
ignoreComments: false,
@@ -43,4 +61,24 @@ module.exports = {
4361
ignoreTemplateLiterals: true,
4462
}]
4563
},
64+
overrides: [
65+
{
66+
"files": [
67+
"*.test.ts"
68+
],
69+
"rules": {
70+
"@typescript-eslint/explicit-function-return-type": "off",
71+
"@typescript-eslint/ban-ts-ignore": "off"
72+
}
73+
},
74+
{
75+
"files": [
76+
"*.js"
77+
],
78+
"rules": {
79+
"@typescript-eslint/explicit-function-return-type": "off",
80+
"@typescript-eslint/no-var-requires": "off"
81+
}
82+
}
83+
]
4684
};

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ node_modules
55
benchmark/results
66
.nyc_output
77
build
8-
**/tmp
8+
**/tmp
9+
coverage

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ node_modules
55
History.md
66
examples
77
.nyc_output
8+
coverage

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v8.16.0
1+
v12

.nycrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"extends": "@istanbuljs/nyc-config-typescript",
33
"all": true,
44
"check-coverage": true,
5+
"lines": 90,
6+
"functions": 90,
7+
"branches": 90,
8+
"statements": 90,
59
"exclude": [
610
"**/*.d.ts",
711
"coverage/**",

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 120,
4+
"trailingComma": "all",
5+
"tabWidth": 4
6+
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "node"
3+
- "12"
44
- "10"
55
- "8"
66

History.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v3.5.0
2+
3+
* Upgraded dependencies
4+
* Reformatted code with prettier
5+
* [FIXED] Entire lodash is imported, bloating dependencies [#281](https://github.com/C2FO/fast-csv/issues/281)
6+
17
# v3.4.0
28

39
* [FIXED] formatter.js: Disabling quote doesn't work [#97](https://github.com/C2FO/fast-csv/issues/97)

examples/.eslintrc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module.exports = {
2+
parserOptions: {
3+
project: null,
4+
},
25
rules: {
3-
"no-console": 0,
4-
"@typescript-eslint/no-var-requires": 0
6+
'no-console': 0,
57
},
68
};

examples/formatting/delimiter_option.example.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const csv = require('../../');
33
const stream = csv.format({ delimiter: '\t' });
44
stream.pipe(process.stdout);
55

6-
stream.write([ 'a', 'b' ]);
7-
stream.write([ 'a1', 'b1' ]);
8-
stream.write([ 'a2', 'b2' ]);
6+
stream.write(['a', 'b']);
7+
stream.write(['a1', 'b1']);
8+
stream.write(['a2', 'b2']);
99
stream.end();

0 commit comments

Comments
 (0)