Skip to content

Commit 205a83b

Browse files
committed
Changes to prettier config
- Upgrade prettier - Use directly instead of via eslint plugin - Format .md as well as .js
1 parent b570fee commit 205a83b

File tree

5 files changed

+147
-185
lines changed

5 files changed

+147
-185
lines changed

.eslintrc.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
env:
22
node: true
33
extends: problems
4-
plugins:
5-
- prettier
64
rules:
7-
prettier/prettier:
8-
- error
9-
- { semi: false, singleQuote: true }
105
no-console: off

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.tmp/

CHANGELOG.md

Lines changed: 127 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -1,245 +1,215 @@
1-
4.1.1 / 2017-08-17
2-
==================
1+
# 4.1.1 / 2017-08-17
32

4-
- Fixed bug with `--config`
5-
- Upgraded dependencies
3+
* Fixed bug with `--config`
4+
* Upgraded dependencies
65

7-
4.1.0 / 2017-06-10
8-
==================
6+
# 4.1.0 / 2017-06-10
97

10-
- Can now pass a number to `--poll` to set poll interval
11-
- Updated `postcss-reporter` dependency to v4.0.0
8+
* Can now pass a number to `--poll` to set poll interval
9+
* Updated `postcss-reporter` dependency to v4.0.0
1210

13-
4.0.0 / 2017-05-09
14-
==================
11+
# 4.0.0 / 2017-05-09
1512

16-
- **BREAKING:** Upgrade postcss to v6.x
13+
* **BREAKING:** Upgrade postcss to v6.x
1714

18-
3.2.0 / 2017-04-21
19-
==================
15+
# 3.2.0 / 2017-04-21
2016

21-
- Added `--base` CLI option for keeping directory structure
17+
* Added `--base` CLI option for keeping directory structure
2218

23-
3.1.1 / 2017-04-04
24-
==================
19+
# 3.1.1 / 2017-04-04
2520

26-
- Fixed `files` property in `package.json`; `lib/` folder wasn't included in v3.1.0
21+
* Fixed `files` property in `package.json`; `lib/` folder wasn't included in v3.1.0
2722

28-
3.1.0 / 2017-04-04
29-
==================
23+
# 3.1.0 / 2017-04-04
3024

31-
- Improved incremental rebuilds for better performance in watch mode.
32-
- Switched to `read-cache` for file reading for better performance.
33-
- Set a dummy filename when reading from stdin to help plugins like autoprefixer find config files.
34-
- Updated `fs-promise` dependency.
25+
* Improved incremental rebuilds for better performance in watch mode.
26+
* Switched to `read-cache` for file reading for better performance.
27+
* Set a dummy filename when reading from stdin to help plugins like autoprefixer find config files.
28+
* Updated `fs-promise` dependency.
3529

36-
3.0.0 / 2017-03-15
37-
==========
30+
# 3.0.0 / 2017-03-15
3831

3932
## Changes since 3.0.0-beta
4033

4134
### Breaking Changes
4235

43-
- Don't exit on `CssSyntaxError` in watch mode. v2 behaved this way, but v3.0.0-beta didn't.
44-
- Error out if `from` or `to` options are set in the config file. Use command line arguments instead.
36+
* Don't exit on `CssSyntaxError` in watch mode. v2 behaved this way, but v3.0.0-beta didn't.
37+
* Error out if `from` or `to` options are set in the config file. Use command line arguments instead.
4538

4639
### New Features
4740

48-
- Add `--poll` option. v2 had this, however, this new implementation removes the capability to set the interval, which was supported in v2.
41+
* Add `--poll` option. v2 had this, however, this new implementation removes the capability to set the interval, which was supported in v2.
4942

5043
### Bugfixes
5144

52-
- Set `from` option for correct sourcemaps
53-
- Fix `--watch`'s glob handling
54-
- Fix error handling
55-
45+
* Set `from` option for correct sourcemaps
46+
* Fix `--watch`'s glob handling
47+
* Fix error handling
5648

5749
## Changes since v2.6.0
5850

5951
### Breaking Changes
60-
- Uses https://github.com/michael-ciniawsky/postcss-load-config for config files. Dropped support for the v2 config file format.
61-
- Can't set input files in config file; pass input files on the command line instead.
62-
- `--use` accepts a list of plugins. This may cause issues if you have your list of css files at the end of your command.
63-
- Can't pass options to plugins via `--plugin.key=value` anymore, use a config file.
64-
- Changed usage of the `--map` option; use `--map` for external sourcemaps, `--no-map` to disable all maps. Inline sourcemaps are default.
65-
- Removed `--log` flag; this behavior is now default.
66-
- Removed the `--local-plugins` flag; same result can be achieved with `postcss.config.js`.
67-
- Removed the global `watchCSS` handler, plugins that import/rely on other files should use a `dependency` message instead.
68-
- Changed behavior of the `--poll` option; no longer accepts an integer `interval`.
52+
53+
* Uses https://github.com/michael-ciniawsky/postcss-load-config for config files. Dropped support for the v2 config file format.
54+
* Can't set input files in config file; pass input files on the command line instead.
55+
* `--use` accepts a list of plugins. This may cause issues if you have your list of css files at the end of your command.
56+
* Can't pass options to plugins via `--plugin.key=value` anymore, use a config file.
57+
* Changed usage of the `--map` option; use `--map` for external sourcemaps, `--no-map` to disable all maps. Inline sourcemaps are default.
58+
* Removed `--log` flag; this behavior is now default.
59+
* Removed the `--local-plugins` flag; same result can be achieved with `postcss.config.js`.
60+
* Removed the global `watchCSS` handler, plugins that import/rely on other files should use a `dependency` message instead.
61+
* Changed behavior of the `--poll` option; no longer accepts an integer `interval`.
6962

7063
### New Features
71-
- `--ext` (`-x`) option allows you to set the file extensions for your output files when using `--dir`.
72-
- `--env` allows you to set `NODE_ENV` in a cross-platform manner.
64+
65+
* `--ext` (`-x`) option allows you to set the file extensions for your output files when using `--dir`.
66+
* `--env` allows you to set `NODE_ENV` in a cross-platform manner.
7367

7468
Migration guide for upgrading from v2: https://github.com/postcss/postcss-cli/wiki/Migrating-from-v2-to-v3
7569

76-
3.0.0-beta / 2017-03-17
77-
==========
70+
# 3.0.0-beta / 2017-03-17
7871

7972
## Breaking Changes
80-
- Uses https://github.com/michael-ciniawsky/postcss-load-config for config files. Dropped support for the v2 config file format.
81-
- Can't set input files in config file; pass input files on the command line instead.
82-
- `--use` accepts a list of plugins. This may cause issues if you have your list of css files at the end of your command.
83-
- Can't pass options to plugins via `--plugin.key=value` anymore, use a config file.
84-
- Changed usage of the `--map` option; use `--map` for external sourcemaps, `--no-map` to disable all maps. Inline sourcemaps are default.
85-
- Removed `--log` flag; this behavior is now default.
86-
- Removed the `--local-plugins` flag; same result can be achieved with `postcss.config.js`.
87-
- Removed the global `watchCSS` handler, plugins that import/rely on other files should use a `dependency` message instead.
73+
74+
* Uses https://github.com/michael-ciniawsky/postcss-load-config for config files. Dropped support for the v2 config file format.
75+
* Can't set input files in config file; pass input files on the command line instead.
76+
* `--use` accepts a list of plugins. This may cause issues if you have your list of css files at the end of your command.
77+
* Can't pass options to plugins via `--plugin.key=value` anymore, use a config file.
78+
* Changed usage of the `--map` option; use `--map` for external sourcemaps, `--no-map` to disable all maps. Inline sourcemaps are default.
79+
* Removed `--log` flag; this behavior is now default.
80+
* Removed the `--local-plugins` flag; same result can be achieved with `postcss.config.js`.
81+
* Removed the global `watchCSS` handler, plugins that import/rely on other files should use a `dependency` message instead.
8882

8983
## New Features
90-
- `--ext` (`-x`) option allows you to set the file extensions for your output files when using `--dir`.
91-
- `--env` allows you to set `NODE_ENV` in a cross-platform manner.
84+
85+
* `--ext` (`-x`) option allows you to set the file extensions for your output files when using `--dir`.
86+
* `--env` allows you to set `NODE_ENV` in a cross-platform manner.
9287

9388
Migration guide: https://github.com/postcss/postcss-cli/wiki/Migrating-from-v2-to-v3
9489

95-
2.6.0 / 2016-08-30
96-
==================
90+
# 2.6.0 / 2016-08-30
9791

98-
* Add log option
99-
* Update postcss-import to v8.1.2 from v7.1.0
100-
* Update globby to v4.1.0 from v3.0.1
101-
* Update postcss-url to v5.1.2 from v4.0.0
102-
* Update jshint to v2.9.2 from v2.6.3
103-
* Update chokidar to v1.5.1 from v1.0.3
104-
* Update yargs to v4.7.1 from v3.32.0
105-
* Support es6 export
106-
* Allow running without plugins
107-
* Add test for --poll
108-
* Add --poll flag
92+
* Add log option
93+
* Update postcss-import to v8.1.2 from v7.1.0
94+
* Update globby to v4.1.0 from v3.0.1
95+
* Update postcss-url to v5.1.2 from v4.0.0
96+
* Update jshint to v2.9.2 from v2.6.3
97+
* Update chokidar to v1.5.1 from v1.0.3
98+
* Update yargs to v4.7.1 from v3.32.0
99+
* Support es6 export
100+
* Allow running without plugins
101+
* Add test for --poll
102+
* Add --poll flag
109103

110-
2.5.2 / 2016-04-18
111-
==================
104+
# 2.5.2 / 2016-04-18
112105

113-
* Fix typo in help message: -use => [--use|-u]
114-
* npm install --save mkdirp
115-
* Support mkdirp to create dest path if it doesn't exists
116-
* Fix booleans in config file
106+
* Fix typo in help message: -use => [--use|-u]
107+
* npm install --save mkdirp
108+
* Support mkdirp to create dest path if it doesn't exists
109+
* Fix booleans in config file
117110

118-
2.5.1 / 2016-02-11
119-
==================
111+
# 2.5.1 / 2016-02-11
120112

121-
* fix `input` argument
113+
* fix `input` argument
122114

123-
2.5.0 / 2016-01-30
124-
==================
115+
# 2.5.0 / 2016-01-30
125116

126-
* move to postcss/postcss-cli repository
127-
* Update Readme.md
117+
* move to postcss/postcss-cli repository
118+
* Update Readme.md
128119

129-
2.4.1 / 2016-01-27
130-
==================
120+
# 2.4.1 / 2016-01-27
131121

132-
* improve warning disply format
122+
* improve warning disply format
133123

134-
2.4.0 / 2016-01-15
135-
==================
124+
# 2.4.0 / 2016-01-15
136125

137-
* add support for source maps
126+
* add support for source maps
138127

139-
2.3.3 / 2015-12-28
140-
==================
128+
# 2.3.3 / 2015-12-28
141129

142-
* add usage example for `local-plugins` option in config file
130+
* add usage example for `local-plugins` option in config file
143131

144-
2.3.2 / 2015-10-27
145-
==================
132+
# 2.3.2 / 2015-10-27
146133

147-
* auto-configure postcss-import support
148-
* add support for watching multiple entry points
134+
* auto-configure postcss-import support
135+
* add support for watching multiple entry points
149136

150-
2.3.1 / 2015-10-25
151-
==================
137+
# 2.3.1 / 2015-10-25
152138

153-
* update Travis config
154-
* upgrade postcss-import dependency - fix deprecation warnings during make test-watch
139+
* update Travis config
140+
* upgrade postcss-import dependency - fix deprecation warnings during make test-watch
155141

156-
2.3.0 / 2015-10-24
157-
==================
142+
# 2.3.0 / 2015-10-24
158143

159-
* add --local-plugins option that lets postcss-cli to look for plugins in current directory
144+
* add --local-plugins option that lets postcss-cli to look for plugins in current directory
160145

161-
2.2.0 / 2015-10-09
162-
==================
146+
# 2.2.0 / 2015-10-09
163147

164-
* add support for --replace|-r - if used input files are replaced with generated output
165-
* refactor support for custom syntax options
148+
* add support for --replace|-r - if used input files are replaced with generated output
149+
* refactor support for custom syntax options
166150

167-
2.1.1 / 2015-10-08
168-
==================
151+
# 2.1.1 / 2015-10-08
169152

170-
* add globby to support wildcards in Windows
171-
* remove obsolete note on postcss-import compatibility
153+
* add globby to support wildcards in Windows
154+
* remove obsolete note on postcss-import compatibility
172155

173-
2.1.0 / 2015-09-01
174-
==================
156+
# 2.1.0 / 2015-09-01
175157

176-
* add support for PostCSS 5.0 custom syntax options
158+
* add support for PostCSS 5.0 custom syntax options
177159

178-
2.0.0 / 2015-08-24
179-
==================
160+
# 2.0.0 / 2015-08-24
180161

181-
* remove support for --safe option
182-
* switch to using postcss 5.x
162+
* remove support for --safe option
163+
* switch to using postcss 5.x
183164

184-
1.5.0 / 2015-07-20
185-
==================
165+
# 1.5.0 / 2015-07-20
186166

187-
* add watch mode (-w|--watch) in which postcss-cli observes and recompiles inputs whenever they change
188-
* update neo-async dependency to released version
189-
* update postcss-url dependency (used in tests only)
167+
* add watch mode (-w|--watch) in which postcss-cli observes and recompiles inputs whenever they change
168+
* update neo-async dependency to released version
169+
* update postcss-url dependency (used in tests only)
190170

191-
1.4.0 / 2015-07-12
192-
==================
171+
# 1.4.0 / 2015-07-12
193172

194-
* allow specifying input file via config file
195-
* allow specifying -u|--use via config file
173+
* allow specifying input file via config file
174+
* allow specifying -u|--use via config file
196175

197-
1.3.1 / 2015-05-03
198-
==================
176+
# 1.3.1 / 2015-05-03
199177

200-
* update npm keyword: postcssrunner -> postcss-runner
178+
* update npm keyword: postcssrunner -> postcss-runner
201179

202-
1.3.0 / 2015-04-28
203-
==================
180+
# 1.3.0 / 2015-04-28
204181

205-
* add support for stdin/stdout if no input/output file specified
182+
* add support for stdin/stdout if no input/output file specified
206183

207-
1.2.1 / 2015-04-20
208-
==================
184+
# 1.2.1 / 2015-04-20
209185

210-
* fix typo in readme
186+
* fix typo in readme
211187

212-
1.2.0 / 2015-04-02
213-
==================
188+
# 1.2.0 / 2015-04-02
214189

215-
* display warnings and errors
216-
* stop testing on node 0.10
190+
* display warnings and errors
191+
* stop testing on node 0.10
217192

218-
1.1.0 / 2015-03-28
219-
==================
193+
# 1.1.0 / 2015-03-28
220194

221-
* prefer postcss async API if available
195+
* prefer postcss async API if available
222196

223-
1.0.0 / 2015-03-22
224-
==================
197+
# 1.0.0 / 2015-03-22
225198

226-
* use official yargs version
227-
* add support for multiple input files
199+
* use official yargs version
200+
* add support for multiple input files
228201

229-
0.3.0 / 2015-03-19
230-
==================
202+
# 0.3.0 / 2015-03-19
231203

232-
* support JS format as plugins config
204+
* support JS format as plugins config
233205

234-
0.2.0 / 2015-03-13
235-
==================
206+
# 0.2.0 / 2015-03-13
236207

237-
* use autoprefixer instead of autoprefixer-core
238-
* change short options for --use from `p` to `u`
239-
* add -v|--version support
240-
* add --safe option to enable postcss safe mode
208+
* use autoprefixer instead of autoprefixer-core
209+
* change short options for --use from `p` to `u`
210+
* add -v|--version support
211+
* add --safe option to enable postcss safe mode
241212

242-
0.1.0 / 2015-03-11
243-
==================
213+
# 0.1.0 / 2015-03-11
244214

245-
* initial implementaion
215+
* initial implementaion

0 commit comments

Comments
 (0)