Skip to content

Commit 30d90a3

Browse files
mattiaerreJanther
andauthored
1.0.0-alpha.42 (#241)
* bump version * update dependencies * use airbnb-base * prettier * dropping support for node 8 * disable prefer-object-spread Co-authored-by: Klaus Hott Vidal <klahott@gmail.com>
1 parent 794f8a6 commit 30d90a3

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"env": {
33
"jest": true
44
},
5-
"extends": ["airbnb", "prettier"],
5+
"extends": ["airbnb-base", "prettier"],
66
"globals": {
77
"run_spec": false
88
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ after_script:
22
- npm run coverage
33
language: node_js
44
node_js:
5-
- '8'
65
- '10'
76
- '12'
7+
- '13'
88
script:
99
- npm run lint
1010
- npm test

package.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prettier-plugin-solidity",
3-
"version": "1.0.0-alpha.41",
3+
"version": "1.0.0-alpha.42",
44
"description": "prettier plugin for solidity",
55
"main": "src",
66
"scripts": {
@@ -61,25 +61,23 @@
6161
"node": ">=8"
6262
},
6363
"devDependencies": {
64-
"codecov": "^3.0.4",
65-
"eslint": "^6.1.0",
66-
"eslint-config-airbnb": "^17.1.1",
67-
"eslint-config-prettier": "^6.0.0",
68-
"eslint-plugin-import": "^2.18.2",
69-
"eslint-plugin-jsx-a11y": "^6.2.3",
70-
"eslint-plugin-react": "^7.14.3",
71-
"jest": "^24.8.0",
72-
"jest-mock-now": "^1.2.1",
73-
"jest-watch-typeahead": "^0.3.1"
64+
"codecov": "^3.6.5",
65+
"eslint": "^6.8.0",
66+
"eslint-config-airbnb-base": "^14.0.0",
67+
"eslint-config-prettier": "^6.10.0",
68+
"eslint-plugin-import": "^2.20.1",
69+
"jest": "^25.1.0",
70+
"jest-mock-now": "^1.3.0",
71+
"jest-watch-typeahead": "^0.4.2"
7472
},
7573
"dependencies": {
7674
"dir-to-object": "^2.0.0",
7775
"emoji-regex": "^8.0.0",
7876
"escape-string-regexp": "^2.0.0",
7977
"extract-comments": "^1.1.0",
80-
"prettier": "^1.15.3",
81-
"semver": "^6.3.0",
78+
"prettier": "^1.19.1",
79+
"semver": "^7.1.3",
8280
"solidity-parser-diligence": "^0.4.18",
83-
"string-width": "^4.1.0"
81+
"string-width": "^4.2.0"
8482
}
8583
}

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// const { handleComments } = require('./prettier-comments');
2-
// const printComment = require('./comments/printer');
31
const { handleComments, printComment } = require('./comments');
42

53
const massageAstNode = require('./clean');
@@ -19,7 +17,7 @@ const languages = [
1917
];
2018

2119
// https://prettier.io/docs/en/plugins.html#parsers
22-
const parser = Object.assign({}, { astFormat: 'solidity-ast', parse }, loc);
20+
const parser = { astFormat: 'solidity-ast', parse, ...loc };
2321
const parsers = {
2422
'solidity-parse': parser
2523
};

0 commit comments

Comments
 (0)