代码拉取完成,页面将自动刷新
import globals from "globals";
import html from "eslint-plugin-html";
import configCesium from "eslint-config-cesium";
export default [
{
ignores: [
"**/Build/",
"Documentation/**/*",
"Source/*",
"**/ThirdParty/",
"Tools/**/*",
"index.html",
"index.release.html",
"Apps/HelloWorld.html",
"Apps/Sandcastle/jsHintOptions.js",
"Apps/Sandcastle/gallery/gallery-index.js",
"packages/engine/Source/Scene/GltfPipeline/**/*",
"packages/engine/Source/Shaders/**/*",
"Specs/jasmine/*",
"**/*/SpecList.js",
],
},
{
...configCesium.configs.recommended,
languageOptions: {
sourceType: "module",
},
},
{
files: ["**/*.cjs"],
...configCesium.configs.node,
},
{
files: [".github/**/*.js", "scripts/**/*.js", "gulpfile.js", "server.js"],
...configCesium.configs.node,
languageOptions: {
...configCesium.configs.node.languageOptions,
sourceType: "module",
},
},
{
files: ["packages/**/*.js", "Apps/**/*.js", "Specs/**/*.js", "**/*.html"],
...configCesium.configs.browser,
plugins: { html },
rules: {
...configCesium.configs.browser.rules,
"no-unused-vars": [
"error",
{ vars: "all", args: "none", caughtErrors: "none" },
],
},
},
{
files: ["Apps/Sandcastle/**/*", "Apps/TimelineDemo/**/*"],
languageOptions: {
sourceType: "script",
globals: {
...globals.amd,
JSON: true,
console: true,
Sandcastle: true,
Cesium: true,
},
},
rules: {
"no-alert": ["off"],
"no-unused-vars": ["off"],
},
},
{
files: ["Apps/Sandcastle/load-cesium-es6.js"],
languageOptions: {
sourceType: "module",
},
},
{
files: ["Specs/**/*", "packages/**/Specs/**/*"],
languageOptions: {
globals: {
...globals.jasmine,
},
},
rules: {
"no-self-assign": "off",
},
},
{
files: ["Specs/e2e/**/*"],
languageOptions: {
globals: {
...globals.node,
Cesium: true,
},
},
rules: {
"no-unused-vars": "off",
},
},
{
files: [".github/**/*"],
rules: {
"n/no-missing-import": "off",
},
},
];
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。