-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RFC: Add Automatic Code Formatting Using Prettier (#417)
* initial prettier setup * update prettier r config * update settinggs and add script * prettier component library * pin Prettier version * prettier on whole project * update CONTRIBUTING.md re: Prettier and ESLint * update lockfile * Revert "prettier on whole project" This reverts commit 30929fc. * attempt to prettier everything
- Loading branch information
1 parent
4d34c24
commit 42a6c6b
Showing
477 changed files
with
16,249 additions
and
11,065 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
const webpack = require('webpack'); | ||
const autoprefixer = require('autoprefixer'); | ||
const { | ||
createConfig, | ||
match, | ||
css, | ||
postcss, | ||
file, | ||
} = require('webpack-blocks'); | ||
const { createConfig, match, css, postcss, file } = require('webpack-blocks'); | ||
|
||
module.exports = createConfig([ | ||
match(['*.css'], [ | ||
css(), | ||
postcss({ | ||
plugins: [autoprefixer({ browsers: ['last 2 versions'] })], | ||
}), | ||
]), | ||
match(['*.svg', '*.png', '*.gif', '*.jpg', '*.jpeg'], [ | ||
file(), | ||
]), | ||
]) | ||
match( | ||
['*.css'], | ||
[ | ||
css(), | ||
postcss({ | ||
plugins: [autoprefixer({ browsers: ['last 2 versions'] })], | ||
}), | ||
] | ||
), | ||
match(['*.svg', '*.png', '*.gif', '*.jpg', '*.jpeg'], [file()]), | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.