Skip to content

Commit

Permalink
Added stylelint support (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack authored and apercu committed Jan 25, 2017
1 parent cb5ce51 commit 68c0ccf
Show file tree
Hide file tree
Showing 10 changed files with 1,084 additions and 836 deletions.
6 changes: 6 additions & 0 deletions .stylelintrc
@@ -0,0 +1,6 @@
{
"extends": "stylelint-config-standard",
"rules": {
"selector-list-comma-newline-after": "always"
}
}
2 changes: 1 addition & 1 deletion examples/complex-chart/app.js
Expand Up @@ -24,7 +24,7 @@ import window from 'global/window';
import document from 'global/document';

import ComplexChartExample from './complex-chart-example';
import '../examples.scss';
import '../../src/styles/examples.scss';

export default class App extends Component {
componentWillMount() {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -23,6 +23,7 @@
"clean": "rm -rf dist bundle.* index.html && mkdir dist",
"build": "npm run clean && babel src -d dist --copy-files && node-sass src/main.scss main.css",
"lint": "eslint src tests showcase --ignore-pattern node_modules --ignore-pattern bundle.js",
"lint-styles": "stylelint src/styles/*.scss --syntax scss",
"test": "tape -r babel-register tests/**/*.js",
"cover": "nyc --reporter=text --reporter=html --reporter=lcov npm test"
},
Expand Down Expand Up @@ -61,6 +62,8 @@
"react-addons-shallow-compare": ">=15.4.2",
"react-addons-test-utils": ">=15.4.2",
"react-dom": ">=15.4.2",
"stylelint": "^7.7.1",
"stylelint-config-standard": "^15.0.1",
"tape": "^4.6.3"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion showcase/index.js
Expand Up @@ -68,7 +68,7 @@ import SearchableDiscreteColorLegendExample from './legends/searchable-discrete-
import ContinuousColorLegendExample from './legends/continuous-color';
import ContinuousSizeLegendExample from './legends/continuous-size';

import './index.scss';
import '../src/styles/examples.scss';

const App = (
<main>
Expand Down
287 changes: 0 additions & 287 deletions showcase/index.scss

This file was deleted.

2 changes: 1 addition & 1 deletion showcase/webpack.config.js
Expand Up @@ -21,7 +21,7 @@ const config = isProd ? {

module: {
rules: [jsRule, {
test: /index.scss$/,
test: /\.scss$/,
loader: ExtractTextPlugin.extract({
fallbackLoader: 'style-loader',
loader: ['css-loader', 'sass-loader']
Expand Down

0 comments on commit 68c0ccf

Please sign in to comment.