Skip to content

Commit

Permalink
Added initial stylelint support (#911)
Browse files Browse the repository at this point in the history
* Added initial stylelint support

* Fixed remaining styles

* Extended only default rules
  • Loading branch information
amilajack authored Apr 13, 2017
1 parent 9b679e1 commit 6c17c06
Show file tree
Hide file tree
Showing 6 changed files with 388 additions and 32 deletions.
Binary file added ..stylelintrc.un~
Binary file not shown.
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
}
8 changes: 4 additions & 4 deletions app/app.global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ body {
position: relative;
color: white;
height: 100vh;
background-color: #232C39;
background-image: linear-gradient(45deg, rgba(0, 216, 255, .5) 10%, rgba(0, 1, 127, .7));
background-color: #232c39;
background-image: linear-gradient(45deg, rgba(0, 216, 255, 0.5) 10%, rgba(0, 1, 127, 0.7));
font-family: Arial, Helvetica, Helvetica Neue, serif;
overflow-y: hidden;
}
Expand All @@ -14,7 +14,7 @@ h2 {
margin: 0;
font-size: 2.25rem;
font-weight: bold;
letter-spacing: -.025em;
letter-spacing: -0.025em;
color: #fff;
}

Expand All @@ -28,7 +28,7 @@ li {

a {
color: white;
opacity: .75;
opacity: 0.75;
text-decoration: none;
}

Expand Down
4 changes: 2 additions & 2 deletions app/components/Counter.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
left: 45%;
font-size: 10rem;
font-weight: bold;
letter-spacing: -.025em;
letter-spacing: -0.025em;
}

.btnGroup {
Expand All @@ -26,7 +26,7 @@
margin: 10px;
width: 100px;
height: 100px;
opacity: .7;
opacity: 0.7;
cursor: pointer;
font-family: Arial, Helvetica, Helvetica Neue;
}
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"test-e2e": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings ./test/runTests.js e2e",
"lint": "eslint --cache --format=node_modules/eslint-formatter-pretty .",
"lint-fix": "npm run lint -- --fix",
"lint-styles": "stylelint app/*.css app/components/*.css --syntax scss",
"hot-updates-server": "cross-env NODE_ENV=development node --trace-warnings -r babel-register ./node_modules/webpack-dev-server/bin/webpack-dev-server --config webpack.config.renderer.dev.js",
"build": "concurrently \"npm run build-main\" \"npm run build-renderer\"",
"build-dll": "cross-env NODE_ENV=development node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.renderer.dev.dll.js --progress --profile --colors",
Expand Down Expand Up @@ -172,6 +173,8 @@
"sinon": "^2.1.0",
"spectron": "^3.6.1",
"style-loader": "^0.16.1",
"stylelint": "^7.10.1",
"stylelint-config-standard": "^16.0.0",
"url-loader": "^0.5.8",
"webpack": "^2.3.2",
"webpack-dev-server": "^2.4.2",
Expand Down
Loading

0 comments on commit 6c17c06

Please sign in to comment.