Skip to content

Commit

Permalink
Add linting for CSS class names (kriasoft#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atif Afzal authored and koistya committed Dec 19, 2016
1 parent 2a293f5 commit b8db8e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"eslint": "^3.10.2",
"eslint-config-airbnb": "^13.0.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-css-modules": "^1.0.9",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.7.1",
Expand Down Expand Up @@ -128,7 +129,13 @@
},
"eslintConfig": {
"parser": "babel-eslint",
"extends": "airbnb",
"extends": [
"airbnb",
"plugin:css-modules/recommended"
],
"plugins": [
"css-modules"
],
"globals": {
"__DEV__": true
},
Expand Down
5 changes: 0 additions & 5 deletions src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
color: rgba(255, 255, 255, 0.5);
}

.textMuted {
composes: text;
color: rgba(255, 255, 255, 0.3);
}

.spacer {
color: rgba(255, 255, 255, 0.3);
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Home extends React.Component {
return (
<div className={s.root}>
<div className={s.container}>
<h1 className={s.title}>React.js News</h1>
<h1>React.js News</h1>
<ul className={s.news}>
{this.props.news.map((item, index) => (
<li key={index} className={s.newsItem}>
Expand Down

0 comments on commit b8db8e1

Please sign in to comment.