mirror of
https://github.com/primer/css.git
synced 2024-12-23 22:24:11 +03:00
Fixing eslint problems
This commit is contained in:
parent
9e325b1b4e
commit
e69ad4fa96
17220
package-lock.json
generated
17220
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -33,9 +33,10 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^0.20.0",
|
||||
"eslint": "^4.2.0",
|
||||
"eslint-plugin-import": "^2.7.0",
|
||||
"eslint-plugin-github": "^0.11.0",
|
||||
"eslint": "^3.19.0",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"eslint-rule-documentation": "^1.0.11",
|
||||
"eslint-plugin-github": "^0.12.0",
|
||||
"stylelint": "^7.13.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -32,8 +32,8 @@ test("no warnings with valid css", t => {
|
||||
config: config,
|
||||
})
|
||||
.then(data => {
|
||||
const { errored, results } = data
|
||||
const { warnings } = results[0]
|
||||
const {errored, results} = data
|
||||
const {warnings} = results[0]
|
||||
t.falsy(errored, "no errored")
|
||||
t.is(warnings.length, 0, "flags no warnings")
|
||||
})
|
||||
@ -45,8 +45,8 @@ test("a warning with invalid css", t => {
|
||||
config: config,
|
||||
})
|
||||
.then(data => {
|
||||
const { errored, results } = data
|
||||
const { warnings } = results[0]
|
||||
const {errored, results} = data
|
||||
const {warnings} = results[0]
|
||||
t.truthy(errored, "errored")
|
||||
t.is(warnings.length, 2, "flags two warning")
|
||||
t.is(warnings[0].text, 'Expected "top" to come before "color" (order/properties-order)', "correct warning text")
|
||||
@ -61,9 +61,9 @@ test("No deprecated config", t => {
|
||||
syntax: "scss"
|
||||
})
|
||||
.then(data => {
|
||||
const { errored, results } = data
|
||||
const {errored, results} = data
|
||||
t.falsy(errored, "errored")
|
||||
t.not(results.length, 0, "Did not find any resutls")
|
||||
t.is(results[0].deprecations.length, 0, `Expected there to be no deprecated config warnings. Please fix these:\n\n${results[0].deprecations.map((d) => d.text).join("\n")}`)
|
||||
t.is(results[0].deprecations.length, 0, `Expected there to be no deprecated config warnings. Please fix these:\n\n${results[0].deprecations.map(d => d.text).join("\n")}`)
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user