Skip to content

Commit d659f9f

Browse files
author
sam bacha
committed
feat(release): v1.5.0
1 parent bb6a009 commit d659f9f

217 files changed

Lines changed: 23379 additions & 24923 deletions

File tree

Some content is hidden

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

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ tests_config/
77
test/
88
__snapshots__
99
coverage/
10+
tests/format/**/*.sol
11+
tests/format/RespectDefaultOptions/respect-default-options.js
12+
src/prettier-comments/**/*.js

CHANGELOG.md

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,40 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
3+
All notable changes to this project will be documented in this file. See
4+
[standard-version](https://github.com/conventional-changelog/standard-version) for commit
5+
guidelines.
46

57
### [1.4.2](https://github.com/sambacha/prettier-config-solidity/compare/v1.4.1...v1.4.2) (2021-04-16)
68

79
### [1.4.1](https://github.com/sambacha/prettier-config-solidity/compare/v1.4.0...v1.4.1) (2021-04-16)
810

9-
1011
### Bug Fixes
1112

12-
* **lint:** format update ([63bba83](https://github.com/sambacha/prettier-config-solidity/commit/63bba83382ee79d30ba2e2714c3030ca2fb0f205))
13+
- **lint:** format update
14+
([63bba83](https://github.com/sambacha/prettier-config-solidity/commit/63bba83382ee79d30ba2e2714c3030ca2fb0f205))
1315

1416
#### [1.0.4](https://github.com/sambacha/prettier-solidity-config/compare/1.0.3...1.0.4)
1517

1618
> 2 March 2021
1719
1820
- semantic verisoning [`#10`](https://github.com/sambacha/prettier-solidity-config/pull/10)
19-
- docs(readme): v1.0.3 [`95799a8`](https://github.com/sambacha/prettier-solidity-config/commit/95799a816e29f8def2d6b121dfe3e68cda51b5f8)
20-
- feat(cfg): improve base config [`9b0cd7c`](https://github.com/sambacha/prettier-solidity-config/commit/9b0cd7c2db67efb8edf8d976eb8c4928ce7275cb)
21-
- ci(nodejs): run test and semantic release [`e25756e`](https://github.com/sambacha/prettier-solidity-config/commit/e25756ea45e8fed66a0859f733b539c314dbd1d5)
21+
- docs(readme): v1.0.3
22+
[`95799a8`](https://github.com/sambacha/prettier-solidity-config/commit/95799a816e29f8def2d6b121dfe3e68cda51b5f8)
23+
- feat(cfg): improve base config
24+
[`9b0cd7c`](https://github.com/sambacha/prettier-solidity-config/commit/9b0cd7c2db67efb8edf8d976eb8c4928ce7275cb)
25+
- ci(nodejs): run test and semantic release
26+
[`e25756e`](https://github.com/sambacha/prettier-solidity-config/commit/e25756ea45e8fed66a0859f733b539c314dbd1d5)
2227

2328
#### [1.0.3](https://github.com/sambacha/prettier-solidity-config/compare/1.0.2...1.0.3)
2429

2530
> 20 February 2021
2631
27-
- chore(lts): update prettier-solidity-plugin and jest [`e531d92`](https://github.com/sambacha/prettier-solidity-config/commit/e531d926393055d6c1aaf0fcb1c90dff5ccc363a)
28-
- chore(deps): update dependency prettier-plugin-solidity to v1.0.0-beta.5 [`a4e3e70`](https://github.com/sambacha/prettier-solidity-config/commit/a4e3e7060ed59a3cfdce40ba950f13c74de0eff7)
29-
- docs(readme): quickstart [`e3cacfb`](https://github.com/sambacha/prettier-solidity-config/commit/e3cacfb8888a7ea2331feb7bc1bf237f4a50b855)
32+
- chore(lts): update prettier-solidity-plugin and jest
33+
[`e531d92`](https://github.com/sambacha/prettier-solidity-config/commit/e531d926393055d6c1aaf0fcb1c90dff5ccc363a)
34+
- chore(deps): update dependency prettier-plugin-solidity to v1.0.0-beta.5
35+
[`a4e3e70`](https://github.com/sambacha/prettier-solidity-config/commit/a4e3e7060ed59a3cfdce40ba950f13c74de0eff7)
36+
- docs(readme): quickstart
37+
[`e3cacfb`](https://github.com/sambacha/prettier-solidity-config/commit/e3cacfb8888a7ea2331feb7bc1bf237f4a50b855)
3038

3139
#### [1.0.2](https://github.com/sambacha/prettier-solidity-config/compare/v1.0.1...1.0.2)
3240

@@ -39,18 +47,24 @@ All notable changes to this project will be documented in this file. See [standa
3947
- v1.0.7 [`#12`](https://github.com/sambacha/prettier-solidity-config/pull/12)
4048
- semantic verisoning [`#10`](https://github.com/sambacha/prettier-solidity-config/pull/10)
4149
- Configure Renovate [`#2`](https://github.com/sambacha/prettier-solidity-config/pull/2)
42-
- 1..0.0 [`#1`](https://github.com/sambacha/prettier-solidity-config/pull/1)
43-
- chore(lts): update prettier-solidity-plugin and jest [`e531d92`](https://github.com/sambacha/prettier-solidity-config/commit/e531d926393055d6c1aaf0fcb1c90dff5ccc363a)
44-
- fix: npm [`a2b40e5`](https://github.com/sambacha/prettier-solidity-config/commit/a2b40e51e99a018273dee01816781c0aa5e7de3a)
45-
- fix(git): coverage [`6251595`](https://github.com/sambacha/prettier-solidity-config/commit/6251595eee452dec9a612d92ae7027d783d159cf)
50+
- 1..0.0 [`#1`](https://github.com/sambacha/prettier-solidity-config/pull/1)
51+
- chore(lts): update prettier-solidity-plugin and jest
52+
[`e531d92`](https://github.com/sambacha/prettier-solidity-config/commit/e531d926393055d6c1aaf0fcb1c90dff5ccc363a)
53+
- fix: npm
54+
[`a2b40e5`](https://github.com/sambacha/prettier-solidity-config/commit/a2b40e51e99a018273dee01816781c0aa5e7de3a)
55+
- fix(git): coverage
56+
[`6251595`](https://github.com/sambacha/prettier-solidity-config/commit/6251595eee452dec9a612d92ae7027d783d159cf)
4657

4758
#### [1.0.1](https://github.com/sambacha/prettier-solidity-config/compare/v1.0.0...1.0.1)
4859

4960
> 12 January 2021
5061
51-
- feat(1.0.0): release 1.0.0 [`e5da423`](https://github.com/sambacha/prettier-solidity-config/commit/e5da423e6007ea317aba167a3cfacca4608257b7)
52-
- release: 1..0.0 [`cc5bde3`](https://github.com/sambacha/prettier-solidity-config/commit/cc5bde36c3faa291a60d16ee79540b137188031e)
53-
- Release 1.0.1 [`e429ed1`](https://github.com/sambacha/prettier-solidity-config/commit/e429ed1d415243f4786ce09fa22c103ab5dc0096)
62+
- feat(1.0.0): release 1.0.0
63+
[`e5da423`](https://github.com/sambacha/prettier-solidity-config/commit/e5da423e6007ea317aba167a3cfacca4608257b7)
64+
- release: 1..0.0
65+
[`cc5bde3`](https://github.com/sambacha/prettier-solidity-config/commit/cc5bde36c3faa291a60d16ee79540b137188031e)
66+
- Release 1.0.1
67+
[`e429ed1`](https://github.com/sambacha/prettier-solidity-config/commit/e429ed1d415243f4786ce09fa22c103ab5dc0096)
5468

5569
#### v1.0.0
5670

@@ -59,7 +73,10 @@ All notable changes to this project will be documented in this file. See [standa
5973
- v1.0.7 [`#12`](https://github.com/sambacha/prettier-solidity-config/pull/12)
6074
- semantic verisoning [`#10`](https://github.com/sambacha/prettier-solidity-config/pull/10)
6175
- Configure Renovate [`#2`](https://github.com/sambacha/prettier-solidity-config/pull/2)
62-
- 1..0.0 [`#1`](https://github.com/sambacha/prettier-solidity-config/pull/1)
63-
- chore(lts): update prettier-solidity-plugin and jest [`e531d92`](https://github.com/sambacha/prettier-solidity-config/commit/e531d926393055d6c1aaf0fcb1c90dff5ccc363a)
64-
- fix(git): coverage [`6251595`](https://github.com/sambacha/prettier-solidity-config/commit/6251595eee452dec9a612d92ae7027d783d159cf)
65-
- docs(readme): v1.0.3 [`95799a8`](https://github.com/sambacha/prettier-solidity-config/commit/95799a816e29f8def2d6b121dfe3e68cda51b5f8)
76+
- 1..0.0 [`#1`](https://github.com/sambacha/prettier-solidity-config/pull/1)
77+
- chore(lts): update prettier-solidity-plugin and jest
78+
[`e531d92`](https://github.com/sambacha/prettier-solidity-config/commit/e531d926393055d6c1aaf0fcb1c90dff5ccc363a)
79+
- fix(git): coverage
80+
[`6251595`](https://github.com/sambacha/prettier-solidity-config/commit/6251595eee452dec9a612d92ae7027d783d159cf)
81+
- docs(readme): v1.0.3
82+
[`95799a8`](https://github.com/sambacha/prettier-solidity-config/commit/95799a816e29f8def2d6b121dfe3e68cda51b5f8)

jest.config.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
// @file jest.configuration
2-
// @source pretteir-plugin-solidity
1+
const FULL_TEST = Boolean(process.env.FULL_TEST);
2+
const TEST_STANDALONE = Boolean(process.env.TEST_STANDALONE);
3+
34
module.exports = {
4-
collectCoverage: true,
5+
collectCoverage: FULL_TEST,
56
collectCoverageFrom: [
67
'scripts/**/*.js',
78
'!scripts/generateIndexes.js',
8-
'!scripts/makeData.js',
99
'src/**/*.js',
1010
'!<rootDir>/node_modules/',
1111
'!src/prettier-comments/**/*.js',
1212
],
1313
coverageDirectory: './coverage/',
14+
coveragePathIgnorePatterns: ['/node_modules/', '/scripts/'],
1415
coverageThreshold: {
1516
global: {
1617
branches: 100,
@@ -19,10 +20,15 @@ module.exports = {
1920
statements: 100,
2021
},
2122
},
22-
setupFiles: ['<rootDir>/tests_config/run_spec.js'],
23-
snapshotSerializers: ['<rootDir>/tests_config/raw-serializer.js'],
23+
moduleNameMapper: {
24+
'^prettier$': TEST_STANDALONE
25+
? '<rootDir>/node_modules/prettier/standalone'
26+
: '<rootDir>/node_modules/prettier',
27+
},
28+
setupFiles: ['<rootDir>/tests/config/setup.js'],
29+
snapshotSerializers: ['jest-snapshot-serializer-raw', 'jest-snapshot-serializer-ansi'],
2430
testEnvironment: 'node',
25-
testRegex: 'jsfmt\\.spec\\.js$|__tests__/.*\\.js$|scripts/.*\\.test\\.js$',
31+
testRegex: 'jsfmt\\.spec\\.js$|tests/unit/.*\\.js$',
2632
transform: {},
2733
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
2834
};

0 commit comments

Comments
 (0)