Skip to content
#

es2015

Here are 921 public repositories matching this topic...

Zamiell
Zamiell commented Apr 7, 2020
  1. The users of this style guide will probably expect that all of the rules that it prescribes will be enforced by eslint. However, this is not the case - there is a secret, non-documented segmentation where some rules are enforced and others are not, because they would be "too noisy on a legacy codebase". An example of a problematic rule like this is covered in issue #2020. I propose that all of
ava
eu81273
eu81273 commented May 19, 2017

If the document.domain property is set in the page, _has module throws error "Access is denied" when try to check window's property for example 'hasOwnProperty'.

So I think it is better to change _has module like below.

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function(it, key){
  try {
    return hasOwnProperty.call(it, key);
  } catch(e){
    return 
jkjustjoshing
jkjustjoshing commented Jun 14, 2017

In the TypeScript styleguide, you mention that "Use index.ts for the module definition file, so you can import the module by directory name", but then go on to use componentName.module.ts as the module file name. Do you recommend using index.ts (or index.js for ES6+ projects) or componentName.module.ts/js?

I personally like index.js, but it's only mentioned in passing in the TS style

flftfqwxf
flftfqwxf commented May 15, 2017

DESC

在v2.2.12版本上,通过 thinkjs plugin xxx 创建的插件,在经过babel编译时存在问题,编译后的代码,无法在thinkjs系统中使用,其依赖和编译命令为:

 "dependencies": {
    "babel-runtime": "6.x.x"
  },
  "devDependencies": {
    "mocha": "1.20.1",
    "istanbul": "0.4.0",
    "babel-cli": "6.x.x",
    "babel-preset-es2015-loose": "6.x.x",
    "babel-preset-stage-1": "6.x.x",
    "babel-plugin-transform-runtime": "6.x.x",
    "ba
DeAnnHuang
DeAnnHuang commented Mar 2, 2017

嗨, 您好
在學習CH05的時候,遇到一個問題
發現在 webpack.config.js 裡面的 module: { preLoaders: [ { ... } ],
似乎造成webpack錯誤 無法執行

如下terminal截圖
image

稍微查了一下,解決方法是用 webpack@2.1.0-beta.22 版本
我目前是 "webpack": "^2.2.0", _應該也

jdesbonnet
jdesbonnet commented Oct 28, 2017

I am using JsBarcode to make a barcode scanner programming sheet for our application. Our barcode scanner adds some unusual Code128 symbols at the start to make sure that regular barcodes do not cause it to change its settings. For our scanner the programming codes are always in format: START B, FNC3, programming code, STOP.

Forcing Code128B is well documented, but inserting the FNC3 symbol (

creeperyang
creeperyang commented Apr 26, 2017

React是目前(2017.04)流行的创建组件化UI的框架,自身有一套完整和强大的生态系统;同时它也是我目前工作中的主力框架,所以学习和理解React是很自然的需求。

本文在翻译React Components, Elements, and Instances的基础上,主要专注理解React的一个核心理念:用Elements Tree描述UI。本文也应该是接下来几片React相关文章的开头,所以更合适的标题可能是:

React学习笔记一:Components,Elements和Instances

*请注意,阅读本文最好对React有基本的了解,但React新手也应该

Improve this page

Add a description, image, and links to the es2015 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the es2015 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.