Skip to content

Commit

Permalink
adding prettier (not enabling yet) (#100)
Browse files Browse the repository at this point in the history
* adding prettier (not enabling yet)
to format few files only:
remove requirePragma from prettier config & run
node_modules\.bin\prettier --config prettier.config.js --write --insert-pragma "<path>"
& add back the requirePragma config

* fixing build break

* adding gitattributes file

* removing all the rules that have the default values

* remove extensions not supported for copyright check
  • Loading branch information
devaradhanm committed Jan 22, 2019
1 parent b2f4ec6 commit 407f724
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 229 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
* text=auto eol=lf
14 changes: 14 additions & 0 deletions .prettierignore
@@ -0,0 +1,14 @@
drop/
dist/
extension/
.github/
test-results/

copyright-header.txt
LICENSE
package-lock.json
.prettierignore

**/*.snap
**/*.png
**/*.gitignore
3 changes: 0 additions & 3 deletions Gruntfile.js
Expand Up @@ -36,10 +36,7 @@ module.exports = function (grunt) {
".yaml",
".md",
".txt",
".npmrc",
".gitignore",
".xml",
".npmignore"
],
insert_license: false,
license_formats: {
Expand Down
229 changes: 6 additions & 223 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -56,6 +56,7 @@
"make-dir": "^1.3.0",
"node-sass": "^4.9.3",
"preprocess": "^3.1.0",
"prettier": "1.15.3",
"puppeteer": "^1.11.0",
"qunit": "^2.6.2",
"react-test-renderer": "^16.5.0",
Expand Down
10 changes: 10 additions & 0 deletions prettier.config.js
@@ -0,0 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
module.exports = {
endOfLine: 'lf',
printWidth: 140,
requirePragma: true,
singleQuote: true,
tabWidth: 4,
trailingComma: 'all',
};
5 changes: 2 additions & 3 deletions src/assessments/color/test-steps/flashing-text-example.html
@@ -1,8 +1,8 @@
<html>

<head>
<style type "text/css">
<!--
<style>

/* @group Blink */
.blink {
-webkit-animation: blink .33s linear infinite;
Expand Down Expand Up @@ -42,7 +42,6 @@
100% { opacity: 0; }
}
/* @end */
-->
</style>
</head>

Expand Down

0 comments on commit 407f724

Please sign in to comment.