Skip to content

Commit 032e307

Browse files
AdamJdlabrecq
authored andcommitted
fix(stylelint): update stylelint config to match patternfly-next
1 parent ad9e5e8 commit 032e307

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

config/webpack.common.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -76,27 +76,25 @@ module.exports = {
7676
{
7777
test: /\.(woff2|woff|ttf|eot|svg)$/,
7878
use: {
79-
loader: 'url-loader',
79+
loader: "url-loader",
8080
query: {
8181
limit: 3000,
82-
// includePaths: [
83-
// path.resolve(__dirname, "../node_modules/patternfly/dist/fonts/")
84-
// ],
82+
includePaths: [
83+
path.resolve(__dirname, "../node_modules/patternfly/dist/fonts/")
84+
],
8585
name: 'assets/fonts/[name].[ext]'
8686
}
8787
},
88-
exclude: path.resolve(__dirname, "../src/demo/images/")
89-
},
90-
{
88+
exclude: path.resolve(__dirname, "../src/assets/images/")
89+
}, {
9190
test: /\.(jpg|png|svg|gif|jpeg)$/,
9291
use: {
93-
loader: 'url-loader',
92+
loader: "url-loader",
9493
query: {
9594
limit: 3000,
9695
includePaths: [
97-
path.resolve(__dirname, "../src/assets/images/")
98-
],
99-
name: 'assets/images/[name].[ext]'
96+
path.resolve(__dirname, "../src/assets/images/")
97+
]
10098
}
10199
},
102100
exclude: path.resolve(__dirname, "../node_modules/patternfly/dist/fonts/")

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"cleanup": "rimraf dist/package.json dist/bundles dist/src dist/index.d.ts dist/index.metadata.json dist/index.js dist/index.js.map dist/LICENSE dist/README.md",
1515
"commit": "git-cz",
1616
"copy-examples:demo": "gulp copy-examples",
17+
"lint": "stylelint 'src/**/*.scss' --config ./.stylelintrc --fix",
1718
"minify": "uglifyjs dist/bundles/ngx-widgets.js --screw-ie8 --compress --mangle --comments --output dist/bundles/patternfly-ng.min.js",
1819
"postinstall": "node src/scripts/install.js",
1920
"publish-travis": "node_modules/patternfly-eng-publish/script/publish-ghpages.sh -t dist-demo",
@@ -111,7 +112,6 @@
111112
"del": "3.0.0",
112113
"extract-text-webpack-plugin": "next",
113114
"file-loader": "1.1.11",
114-
"font-awesome": "4.7.0",
115115
"font-awesome-sass": "4.7.0",
116116
"gulp": "3.9.1",
117117
"gulp-changed": "3.2.0",
@@ -165,6 +165,10 @@
165165
"source-map-loader": "0.2.3",
166166
"style-loader": "0.21.0",
167167
"stylelint": "9.2.1",
168+
"stylelint-config-recommended-scss": "3.2.0",
169+
"stylelint-config-standard": "18.2.0",
170+
"stylelint-order": "0.8.1",
171+
"stylelint-scss": "3.0.0",
168172
"stylus": "0.54.5",
169173
"to-string-loader": "1.1.5",
170174
"ts-helpers": "1.1.2",

0 commit comments

Comments
 (0)