Socket
Book a DemoInstallSign in
Socket

@weex-project/eslint-config-weex

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weex-project/eslint-config-weex

Eslint configs for weex bundle file.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Weex eslint configs

Eslint configs for weex file. Both .we and .js file can be linted.

Usage

First, setup ESLint in your project, and install weex specified configs.

npm install eslint-config-weex --save-dev

Then add extends property in your .eslintrc file.

{
  "extends": [ "weex" ]
}

Rules

Weex specified

  • no-timer-module: prevent the usage of timer module.

Limits

  • Danger language features
    • no-alert
    • no-debugger
    • no-caller
    • no-void
    • no-with
    • no-labels
    • no-new-func
    • no-implied-eval
    • no-multi-str
  • No global variable
    • no-global-assign
    • no-implicit-globals
    • no-restricted-globals
  • Don't change internal objects
    • no-extend-native
    • no-prototype-builtins
    • no-iterator
    • no-proto
    • no-new-wrappers
    • no-obj-calls
    • use-isnan
  • Unsave scope
    • no-shadow
    • no-use-before-define
    • block-scoped-var
    • no-redeclare
    • no-shadow-restricted-names
    • no-inner-declarations
    • no-loop-func
    • no-unsafe-negation
    • no-return-assign
    • no-cond-assign

Advice

  • no-console
  • no-empty
  • no-unused-vars
  • no-sparse-arrays
  • no-template-curly-in-string
  • no-unreachable
  • no-constant-condition
  • no-dupe-args
  • no-dupe-keys
  • no-ex-assign
  • no-func-assign
  • no-duplicate-case
  • no-self-compare
  • no-self-assign
  • no-extra-bind
  • no-useless-call
  • array-callback-return

Keywords

eslint

FAQs

Package last updated on 18 Apr 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.