Skip to content

Commit 7bd384a

Browse files
Merge pull request #57 from MadLittleMods/feature/update-playground
Update playground dependencies
2 parents 0841900 + 86d96d7 commit 7bd384a

28 files changed

+45809
-128887
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
playground/node_modules
2+
playground/jspm_packages
3+
playground/build.js

.eslintrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true,
5+
"browser": true,
6+
},
7+
"parserOptions": {
8+
"ecmaVersion": 6,
9+
"sourceType": "module",
10+
"ecmaFeatures": {
11+
"jsx": true
12+
},
13+
},
14+
"globals": {
15+
"SystemJS": true,
16+
},
17+
"extends": "eslint:recommended",
18+
"plugins": [
19+
"react"
20+
],
21+
"rules": {
22+
23+
}
24+
}

lib/generate-scope-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var generateScopeList = function(node, /*optional*/includeSelf) {
2222

2323
// If it is a at-rule, then we need to construct the proper piece
2424
if(currentNodeParent.type === 'atrule') {
25-
scopePieces = [].concat(currentNodeParent.params).map(function(param, index) {
25+
scopePieces = [].concat(currentNodeParent.params).map(function(param) {
2626
return {
2727
value: '@' + currentNodeParent.name + ' ' + param,
2828
type: 'atrule'

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@
2323
"chai": "^4.1.1",
2424
"chai-as-promised": "^7.1.1",
2525
"clean-css": "^4.1.7",
26+
"eslint": "^4.4.1",
27+
"eslint-plugin-react": "^7.1.0",
2628
"gulp": "^3.8.11",
2729
"gulp-eslint": "^4.0.0",
2830
"gulp-mocha": "^4.3.1",
2931
"mocha": "^3.5.0"
3032
},
3133
"scripts": {
32-
"test": "gulp"
34+
"test": "gulp",
35+
"lint": "eslint ."
3336
}
3437
}

playground/.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
jspm_packages
3+
build.js

playground/.jshintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

playground/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

playground/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ The code playground for `postcss-css-variables` is [available live here](https:/
66

77
# Build
88

9-
## Prerequisites
10-
11-
- [io.js](https://iojs.org/en/index.html) *or Node.js with support for template strings (not currently available)*
12-
13-
## Instructions:
14-
159
Run once to set everything up:
1610

1711
`npm install`

0 commit comments

Comments
 (0)