加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 2.50 KB
一键复制 编辑 原始数据 按行查看 历史
Chris Veness 提交于 2020-11-04 09:47 . Enable top level await in eslint
{
"name": "geodesy",
"description": "Libraries of geodesy functions",
"homepage": "http://www.movable-type.co.uk/scripts/geodesy-library.html",
"repository": {
"type": "git",
"url": "https://github.com/chrisveness/geodesy"
},
"keywords": [ "geodesy", "latitude", "longitude", "distance", "bearing", "destination", "haversine", "vincenty", "rhumb", "ellipsoid", "datum", "reference frame", "TRF", "wgs84", "utm", "mgrs" ],
"author": "Chris Veness",
"version": "2.2.1",
"license": "MIT",
"type": "module",
"engines": {
"node": ">=8.0.0"
},
"files": [ "dms.js", "latlon-*.js", "mgrs.js", "osgridref.js", "utm.js", "vector3d.js" ],
"bugs": "https://github.com/chrisveness/geodesy/issues",
"scripts": {
"test": "mocha --exit test/*.js",
"lint": "eslint .",
"cover": "c8 -r html npm test",
"docs": "jsdoc *.js README.md -d ../../geodesy/docs"
},
"devDependencies": {
"@babel/eslint-parser": "^7.0.0",
"@babel/plugin-syntax-top-level-await": "^7.0.0",
"c8": "^7.0.0",
"chai": "chaijs/chai#pull/1317/head",
"coveralls": "^3.0.0",
"eslint": "^7.0.0",
"jsdoc": "^3.0.0",
"mocha": "^7.0.0"
},
"eslintConfig": {
"env": {
"browser": true,
"mocha": true,
"node": true
},
"parser": "@babel/eslint-parser",
"extends": "eslint:recommended",
"globals": {
"chai": true,
"should": true
},
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"comma-dangle": [ "error", "always-multiline" ],
"comma-spacing": [ "error" ],
"curly": [ "error", "multi-line" ],
"indent": [ "error", 4, { "SwitchCase": 1 } ],
"key-spacing": [ "error", { "align": "value" } ],
"keyword-spacing": [ "error" ],
"no-case-declarations": "warn",
"no-console": [ "warn", { "allow": [ "error", "info", "debug" ] } ],
"no-irregular-whitespace": "warn",
"no-redeclare": "warn",
"no-shadow": "warn",
"no-unused-vars": "warn",
"no-var": "error",
"object-curly-spacing": [ "error", "always" ],
"prefer-const": "error",
"quotes": [ "error", "single", "avoid-escape" ],
"require-await": "error",
"semi": [ "error", "always" ],
"space-before-blocks": [ "error", "always" ],
"space-in-parens": [ "error" ],
"strict": [ "error", "global" ]
}
},
"babel": {
"plugins": ["@babel/plugin-syntax-top-level-await"]
},
"jsdoc": {
"plugins": [ "plugins/markdown" ],
"markdown": { "idInHeadings": true }
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化