add browser check

pull/2789/head
Peter Varholak 6 years ago
parent 818ea25976
commit fdc96af796
No known key found for this signature in database
GPG Key ID: 19AC6B9476876A84

@ -0,0 +1,27 @@
{
"root": true,
"plugins": [
"builtin-compat"
],
"rules": {
"builtin-compat/no-incompatible-builtins": 2
},
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"settings": {
"import/core-modules": [
"svelte"
],
"svelte3/extensions": [
"html"
]
}
}

@ -26,12 +26,14 @@
"codecov": "codecov", "codecov": "codecov",
"precodecov": "npm run coverage", "precodecov": "npm run coverage",
"lint": "eslint src test/*.js", "lint": "eslint src test/*.js",
"lint:browser-check": "npm run prepare && eslint --no-eslintrc -c .eslintrc.browser-check.json ./*.js --no-ignore",
"build": "rollup -c", "build": "rollup -c",
"prepare": "npm run build && npm run tsd", "prepare": "npm run build && npm run tsd",
"dev": "rollup -cw", "dev": "rollup -cw",
"pretest": "npm run build", "pretest": "npm run build",
"posttest": "agadoo src/internal/index.js", "posttest": "agadoo src/internal/index.js",
"prepublishOnly": "export PUBLISH=true && npm run lint && npm test", "prepublishOnly": "export PUBLISH=true && npm run lint && npm test",
"supportedbrowsers": "browserslist",
"tsd": "tsc -d src/store.ts --outDir ." "tsd": "tsc -d src/store.ts --outDir ."
}, },
"repository": { "repository": {
@ -95,5 +97,10 @@
"sourceMap": true, "sourceMap": true,
"instrument": true "instrument": true
}, },
"dependencies": {} "dependencies": {},
"browserslist": [
"> 1%",
"not ie <= 11",
"not dead"
]
} }

Loading…
Cancel
Save