Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.

Commit ed968bf

Browse files
mahboob-awanahmedre
authored andcommitted
feature/scss linting (#403)
Lint SCSS/CSS files
1 parent dce8717 commit ed968bf

File tree

6 files changed

+15
-42
lines changed

6 files changed

+15
-42
lines changed

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"scripts": {
66
"test": "./node_modules/karma/bin/karma start",
77
"test:ci:unit": "./node_modules/karma/bin/karma start --browsers PhantomJS --single-run; npm run test:ci:lint",
8-
"test:ci:functional": "node ./nightwatch.js -c ./nightwatch.json -e production",
9-
"test:ci:lint": "eslint ./src/**/*.js",
108
"test:dev:unit": "./node_modules/karma/bin/karma start",
9+
"test:ci:functional": "node ./nightwatch.js -c ./nightwatch.json -e production",
1110
"test:dev:functional": "node ./nightwatch.js -c ./nightwatch.json",
11+
"test:ci:lint": "eslint ./src/**/*.js",
1212
"test:dev:lint": "eslint ./src/scripts/**/*.js",
13+
"test:stylelint": "stylelint './src/**/*.scss' --config webpack/.stylelintrc",
1314
"dev": "node webpack/dev-server.js & PORT=8000 node start.js",
1415
"start": "NODE_PATH=\"./src\" node ./start",
1516
"build": "node ./node_modules/webpack/bin/webpack.js --config webpack/prod.config.js",
@@ -139,6 +140,7 @@
139140
"path": "^0.11.14",
140141
"phantomjs-polyfill": "0.0.1",
141142
"piping": "^0.3.0",
143+
"pre-commit": "^1.1.3",
142144
"react-addons-test-utils": "^0.14.7",
143145
"react-transform-catch-errors": "^1.0.0",
144146
"react-transform-hmr": "^1.0.1",
@@ -149,11 +151,11 @@
149151
"selenium-server": "^2.48.2",
150152
"sinon": "^1.15.3",
151153
"sinon-chai": "^2.8.0",
154+
"stylelint-webpack-plugin": "^0.2.0",
152155
"webpack-dev-server": "^1.6.5"
153156
},
154157
"pre-commit": [
155-
"lint",
156-
"validate",
157-
"test"
158+
"test:dev:lint",
159+
"test:stylelint"
158160
]
159161
}

src/components/Ayah/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
b{
9393
float: right;
94-
border-color:: transparent;
94+
border-color: transparent;
9595
border-width: 0px 0px 1px 0px;
9696
border-style: solid;
9797
&.active {

src/styles/fonts/_fonts.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Montserrat);
21
@font-face{
32
font-family: 'Montserrat';
43
src: url('./static/fonts/montserrat/Montserrat-Regular.otf');

src/styles/main.scss

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//@import 'bootstrap';
21
$icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
3-
//@import '~bootstrap-sass/assets/stylesheets/bootstrap';
42

53
@import 'mixins/center';
64
@import 'components/SurahNav';
@@ -44,38 +42,6 @@ a:hover{
4442
display: none;
4543
}
4644
}
47-
.right-side{
48-
padding-top: 190px;
49-
width: 83.33333333%;
50-
float: right;
51-
display: block;
52-
position: relative;
53-
background-color: #fff;
54-
transition: width 0.5s;
55-
min-height: 100vh;
56-
z-index: 9999;
57-
58-
.navbar-brand{
59-
display: none;
60-
}
61-
62-
@media (max-width: $screen-sm-max) {
63-
width: 100%;
64-
padding-top: 150px;
65-
66-
.navbar-brand{
67-
display: block;
68-
}
69-
}
70-
71-
&.active{
72-
width: 99%;
73-
74-
.navbar{
75-
width: 99; // This is almost like `noop` to get the css working
76-
}
77-
}
78-
}
7945
}
8046

8147
.form-control:focus{

src/styles/partials/_navbar-brand.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
}
1919
img {
2020
display: inline !important;
21-
height: 100%;
2221
&.logo{
2322
height: 80%;
2423
vertical-align: top;

webpack/.stylelintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"rules": {
3+
"unit-no-unknown": true,
4+
"no-duplicate-selectors": true,
5+
"block-no-empty": true
6+
}
7+
}

0 commit comments

Comments
 (0)