Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 393fa7f

Browse files
Fixing linting using 'npx prettier --write .' and ignoring storybook static folder
1 parent 7b30a4a commit 393fa7f

File tree

3 files changed

+57
-11
lines changed

3 files changed

+57
-11
lines changed

.eslintrc.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@ module.exports = {
1818
extends: ['@metamask/eslint-config-jest'],
1919
},
2020
],
21-
ignorePatterns: ['!.eslintrc.js', '!.prettierrc.js', 'dist/'],
21+
ignorePatterns: [
22+
'!.eslintrc.js',
23+
'!.prettierrc.js',
24+
'dist/',
25+
'storybook-static/',
26+
],
2227
};

CHANGELOG.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -7,12 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
78
## [Unreleased]
89

910
## [1.8.0]
11+
1012
### Changed
13+
1114
- Adding shadows to design tokens ([#137](https://github.com/MetaMask/design-tokens/pull/137))
1215
- Bump @metamask/auto-changelog from 2.6.0 to 2.6.1 ([#178](https://github.com/MetaMask/design-tokens/pull/178))
1316

1417
## [1.7.0]
18+
1519
### Changed
20+
1621
- Adding themes to token architecture for CSS-in-JS ([#148](https://github.com/MetaMask/design-tokens/pull/148))
1722
- Fix for readme badge to show correct version ([#163](https://github.com/MetaMask/design-tokens/pull/163))
1823
- Updating readme with npm and storybook badges ([#150](https://github.com/MetaMask/design-tokens/pull/150))
@@ -21,29 +26,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2126
- Bump @metamask/auto-changelog from 2.5.0 to 2.6.0 ([#142](https://github.com/MetaMask/design-tokens/pull/142))
2227

2328
## [1.6.5]
29+
2430
### Changed
31+
2532
- Update readme ([#120](https://github.com/MetaMask/design-tokens/pull/120))
2633
- [FIX] Update js font weight to string ([#127](https://github.com/MetaMask/design-tokens/pull/127))
2734

2835
## [1.6.4]
36+
2937
### Changed
38+
3039
- Setting storybook folder to root for gh-pages ([#133](https://github.com/MetaMask/design-tokens/pull/133))
3140

3241
## [1.6.3]
42+
3343
### Changed
44+
3445
- Adding homepage to package.json for gh pages ([#131](https://github.com/MetaMask/design-tokens/pull/131))
3546

3647
## [1.6.2]
48+
3749
### Changed
50+
3851
- Adding yarn setup to gh pages action ([#129](https://github.com/MetaMask/design-tokens/pull/129))
3952

4053
## [1.6.1]
54+
4155
### Changed
56+
4257
- Adding storybook pages to publish release action ([#121](https://github.com/MetaMask/design-tokens/pull/121))
4358
- Fixing some case mistakes in figma token json ([#123](https://github.com/MetaMask/design-tokens/pull/123))
4459

4560
## [1.6.0]
61+
4662
### Changed
63+
4764
- Adding initial typography tokens ([#94](https://github.com/MetaMask/design-tokens/pull/94))
4865
- Adding Circle CI and storybook builds for PRs ([#105](https://github.com/MetaMask/design-tokens/pull/105))
4966
- CSS in JS description update ([#104](https://github.com/MetaMask/design-tokens/pull/104))
@@ -53,60 +70,84 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5370
- Updating icon/default and text/alternative colors ([#90](https://github.com/MetaMask/design-tokens/pull/90))
5471

5572
## [1.5.1]
73+
5674
### Changed
75+
5776
- Fixing descriptions for dark theme overlays ([#79](https://github.com/MetaMask/design-tokens/pull/79))
5877

5978
## [1.5.0]
79+
6080
### Changed
81+
6182
- Updating dark theme background and overlay colors ([#72](https://github.com/MetaMask/design-tokens/pull/72))
6283
- background default and background alternative values swapped
6384
- overlays changed to dark for both light and dark themes
6485

6586
## [1.4.4]
87+
6688
### Changed
89+
6790
- Add types and documentation to DS code library ([#61](https://github.com/MetaMask/design-tokens/pull/61))
6891

6992
## [1.4.3]
93+
7094
### Changed
95+
7196
- Fixing secondary default color for CSS in JS ([#57](https://github.com/MetaMask/design-tokens/pull/57))
7297

7398
## [1.4.2]
99+
74100
### Changed
101+
75102
- Fix overlays, muted and disabled alpha channel ([#48](https://github.com/MetaMask/design-tokens/pull/48))
76103

77104
## [1.4.1]
105+
78106
### Changed
107+
79108
- Bump overlay alternative from 75% opacity to 80% ([#46](https://github.com/MetaMask/design-tokens/pull/46))
80109

81110
## [1.4.0]
111+
82112
### Added
113+
83114
- Add overlay alternative color for light and dark themes ([#40](https://github.com/MetaMask/design-tokens/pull/40))
84115
- Updating dark theme overlay.inverse to grey800: #24272A
85116

86117
## [1.3.1]
118+
87119
### Changed
120+
88121
- Token update generate library code ([#39](https://github.com/MetaMask/design-tokens/pull/39))
89122
- Changing hsla to HEX with alpha values. Updating Hex values and documentation.
90123

91124
## [1.3.0]
125+
92126
### Changed
127+
93128
- Changing theme class to data attribute ([#30](https://github.com/MetaMask/design-tokens/pull/30))
94129

95130
## [1.2.0]
131+
96132
### Changed
133+
97134
- token updates ([#22](https://github.com/MetaMask/design-tokens/pull/22))
98135
- Adding storybook and design token documentation ([#19](https://github.com/MetaMask/design-tokens/pull/19))
99136

100137
## [1.1.0]
138+
101139
### Changed
140+
102141
- Adding css stylesheet containg color design tokens ([#17](https://github.com/MetaMask/design-tokens/pull/17))
103142
- Add issue template ([#20](https://github.com/MetaMask/design-tokens/pull/20))
104143

105144
## [1.0.0]
145+
106146
### Changed
147+
107148
- Initial release.
108149

109-
[Unreleased]: https://github.com/MetaMask/design-tokens/compare/v1.8.0...HEAD
150+
[unreleased]: https://github.com/MetaMask/design-tokens/compare/v1.8.0...HEAD
110151
[1.8.0]: https://github.com/MetaMask/design-tokens/compare/v1.7.0...v1.8.0
111152
[1.7.0]: https://github.com/MetaMask/design-tokens/compare/v1.6.5...v1.7.0
112153
[1.6.5]: https://github.com/MetaMask/design-tokens/compare/v1.6.4...v1.6.5

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
"src/css/"
2323
],
2424
"scripts": {
25-
"setup": "yarn install && yarn allow-scripts",
26-
"test": "jest",
27-
"test:watch": "jest --watch",
28-
"prepublishOnly": "yarn build:clean && yarn lint && yarn test",
29-
"lint:eslint": "eslint . --cache --ext js,ts",
30-
"lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' --ignore-path .gitignore",
25+
"build": "tsc --project .",
26+
"build-storybook": "build-storybook",
27+
"build:clean": "rimraf dist && yarn build",
3128
"lint": "yarn lint:eslint && yarn lint:misc --check",
29+
"lint:eslint": "eslint . --cache --ext js,ts",
3230
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
33-
"build:clean": "rimraf dist && yarn build",
34-
"build": "tsc --project .",
31+
"lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' --ignore-path .gitignore",
32+
"prepublishOnly": "yarn build:clean && yarn lint && yarn test",
33+
"setup": "yarn install && yarn allow-scripts",
3534
"storybook": "start-storybook -p 6006",
36-
"build-storybook": "build-storybook"
35+
"test": "jest",
36+
"test:watch": "jest --watch"
3737
},
3838
"dependencies": {},
3939
"devDependencies": {

0 commit comments

Comments
 (0)