8 Star 64 Fork 30

Drme/cesium

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.js 2.24 KB
一键复制 编辑 原始数据 按行查看 历史
Gabby Getz 提交于 2024-05-28 13:02 . .github/**
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",
},
},
];
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/Drmevip/cesium.git
git@gitee.com:Drmevip/cesium.git
Drmevip
cesium
cesium
main

搜索帮助