1
1
mirror of https://github.com/primer/css.git synced 2024-12-19 12:12:02 +03:00

Merge pull request #16 from primer/exclude-opera-mini

Excluding opera mini from browsers list
This commit is contained in:
Jon Rohan 2017-08-14 14:15:02 -07:00 committed by GitHub
commit 1f92198005
4 changed files with 14322 additions and 19 deletions

View File

@ -268,7 +268,15 @@ module.exports = {
"number-leading-zero": "always",
"number-no-trailing-zeros": true,
"plugin/no-unsupported-browser-features": [true, {
"severity": "warning"
"severity": "warning",
"browsers": [
"> 5%",
"last 2 firefox versions",
"last 2 chrome versions",
"last 2 safari versions",
"last 2 edge versions",
"ie 11"
]
}],
"primer/selector-no-utility": true,
"property-case": "lower",

14302
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -19,14 +19,6 @@
"stylelint",
"css"
],
"browserslist": [
"> 5%",
"last 2 firefox versions",
"last 2 chrome versions",
"last 2 safari versions",
"last 2 edge versions",
"ie 11"
],
"author": "GitHub, Inc.",
"license": "MIT",
"bugs": {
@ -40,10 +32,11 @@
"stylelint-selector-no-utility": "^1.5.0"
},
"devDependencies": {
"ava": "latest",
"eslint": "latest",
"eslint-plugin-import": "latest",
"eslint-plugin-github": "latest",
"ava": "^0.20.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": {

View File

@ -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")}`)
})
})