File tree Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "plugins" : [
3+ " eslint-plugin-github"
4+ ],
5+ "env" : {
6+ "es6" : true ,
7+ "node" : true
8+ },
9+ "extends" : [
10+ " plugin:github/recommended" ,
11+ " plugin:github/es6"
12+ ]
13+ }
Original file line number Diff line number Diff line change 1- import config from "../"
2- import stylelint from "stylelint"
3- import test from "ava"
1+ const config = require ( "../" )
2+ const stylelint = require ( "stylelint" )
3+ const test = require ( "ava" )
44
5- const validCss = (
5+ const validCss =
66`@import "x.css";
77@import "y.css";
88
@@ -70,13 +70,13 @@ const validCss = (
7070 background-image: url("x.svg");
7171 }
7272}
73- ` )
73+ `
7474
75- const invalidCss = (
75+ const invalidCss =
7676`a {
7777 top: .2em;
7878}
79- ` )
79+ `
8080
8181test ( "no warnings with valid css" , t => {
8282 return stylelint . lint ( {
Original file line number Diff line number Diff line change 55 "main" : " index.js" ,
66 "scripts" : {
77 "ava" : " ava --verbose \" __tests__/**/*.js\" " ,
8- "test" : " npm run ava"
8+ "lint" : " eslint **/*.js" ,
9+ "test" : " npm run lint && npm run ava"
910 },
1011 "repository" : {
1112 "type" : " git" ,
3031 },
3132 "devDependencies" : {
3233 "ava" : " ^0.15.2" ,
34+ "eslint" : " ^3.0.1" ,
35+ "eslint-plugin-github" : " ^0.4.0" ,
3336 "stylelint" : " ^6.6.0"
3437 }
3538}
You can’t perform that action at this time.
0 commit comments