Skip to content

Commit aefd594

Browse files
authored
housekeeping (#9)
* fix package.json * Add my email * add eslint npm script * fusion 😅 * --fix * add codecov * fix email, readme, travis
1 parent aca2dac commit aefd594

6 files changed

Lines changed: 65 additions & 14 deletions

File tree

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"extends": "airbnb",
3+
"globals": {
4+
"run_spec": false
5+
},
36
"rules": {
47
"arrow-parens": "off",
58
"comma-dangle": "off",

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
language: node_js
1+
after_script:
2+
- npm run coverage
3+
language:
4+
node_js
25
node_js:
36
- "6"
47
- "8"
58
- "10"
69
script:
7-
- npm test
810
- npm run lint
11+
- npm test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ work in progress [prettier plugin](https://github.com/prettier/prettier/issues/4
44

55
## Resources
66

7-
- https://github.com/mattiaerre/prettier-plugin-solidity/issues/2
7+
- https://github.com/prettier-solidity/prettier-plugin-solidity/issues/2
88

99
## Test
1010

jest.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
'use strict';
2-
31
module.exports = {
2+
collectCoverage: true,
3+
collectCoverageFrom: ['src/**/*.js', '!<rootDir>/node_modules/'],
4+
coverageDirectory: './coverage/',
45
setupFiles: ['<rootDir>/tests_config/run_spec.js'],
56
snapshotSerializers: ['<rootDir>/tests_config/raw-serializer.js'],
6-
testRegex: 'jsfmt\\.spec\\.js$|__tests__/.*\\.js$',
7-
collectCoverage: !!process.env.CI,
8-
collectCoverageFrom: ['src/**/*.js', '!<rootDir>/node_modules/'],
97
testEnvironment: 'node',
8+
testRegex: 'jsfmt\\.spec\\.js$|__tests__/.*\\.js$',
109
transform: {},
1110
watchPlugins: [
1211
'jest-watch-typeahead/filename',

package-lock.json

Lines changed: 34 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
"description": "prettier plugin for solidity",
55
"main": "src",
66
"scripts": {
7+
"coverage": "codecov",
8+
"eslint": "eslint src/**",
9+
"lint": "npm run eslint && npm run prettier -- --list-different",
10+
"lint:fix": "npm run eslint -- --fix && npm run prettier -- --write",
711
"prettier": "prettier \"{.,{src,tests_config}/**}/*.{js{,on},md}\" \"tests/**/jsfmt.spec.js\"",
8-
"lint": "npm run prettier -- --list-different",
9-
"lint:fix": "npm run prettier -- --write",
1012
"test": "jest"
1113
},
1214
"repository": {
1315
"type": "git",
14-
"url": "git+https://github.com/mattiaerre/prettier-plugin-solidity.git"
16+
"url": "git+https://github.com/prettier-solidity/prettier-plugin-solidity.git"
1517
},
1618
"keywords": [
1719
"ethereum",
@@ -23,12 +25,23 @@
2325
"email": "[email protected]",
2426
"name": "Mattia Richetto"
2527
},
28+
"contributors": [
29+
{
30+
"email": "[email protected]",
31+
"name": "Federico Bond"
32+
},
33+
{
34+
"email": "[email protected]",
35+
"name": "Jed Fox"
36+
}
37+
],
2638
"license": "MIT",
2739
"bugs": {
28-
"url": "https://github.com/mattiaerre/prettier-plugin-solidity/issues"
40+
"url": "https://github.com/prettier-solidity/prettier-plugin-solidity/issues"
2941
},
30-
"homepage": "https://github.com/mattiaerre/prettier-plugin-solidity#readme",
42+
"homepage": "https://github.com/prettier-solidity/prettier-plugin-solidity#readme",
3143
"devDependencies": {
44+
"codecov": "^3.0.4",
3245
"eslint": "^5.0.1",
3346
"eslint-config-airbnb": "^17.0.0",
3447
"eslint-plugin-import": "^2.13.0",

0 commit comments

Comments
 (0)