You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

eslint-config-cesium

Package Overview
Dependencies
5
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-cesium

ESLint shareable configs for Cesium


Version published
Maintainers
2
Created

Readme

Source

eslint-config-cesium

The official shareable ESLint config for the Cesium ecosystem.

Usage

We export three ESLint configurations.

eslint-config-cesium default

This config contains basic Cesium syntax and style config, from which browser and node extend. Extends @eslint/js recommended rules and eslint-config/prettier with additional rules.

eslint.config.js

import configCesium from "eslint-config-cesium";

exports default [
    // Apply recommended rules to all files
    configCesium.configs.recommended,
    // Apply recommended rules to JS files with an override
    {
        files: ["**/*.js"],
        rules: {
            ...configCesium.configs.recommended.rules,
            "no-unused-vars": "off"
        } 
    },
]

eslint-config-cesium/browser

For use in browser environments.

eslint.config.js

import configCesium from "eslint-config-cesium";

exports default [
    // Apply recommended rules to all files
    configCesium.configs.browser,
    // Apply recommended rules to JS files with an override
    {
        files: ["**/*.js"],
        ...configCesium.configs.browser,
        rules: {
            ...configCesium.configs.browser.rules,
            "no-unused-vars": "off"
        } 
    },
]

eslint-config-cesium/node

For use in Node.js environments. Extends plugin/n:recommended

eslint.config.js

import configCesium from "eslint-config-cesium";

exports default [
    // Apply recommended rules to all files
    configCesium.configs.node,
    // Apply recommended rules to JS files with an override
    {
        files: ["**/*.js"],
        ...configCesium.configs.node,
        rules: {
            ...configCesium.configs.node.rules,
            "no-unused-vars": "off"
        } 
    },
]

Keywords

FAQs

Package last updated on 20 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc