GithubHelp home page GithubHelp logo

lin-123 / javascript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from airbnb/javascript

2.0K 2.0K 434.0 4.19 MB

eslint-config-airbnb 中文版

Home Page: https://lin-123.github.io/javascript/

License: MIT License

JavaScript 98.93% Shell 1.07%
airbnb chinese-translation eslint

javascript's People

Contributors

1pete avatar ajacksified avatar bl00mber avatar chentsulin avatar chrisngobanh avatar felipethome avatar goatslacker avatar graingert avatar hshoff avatar jabacchetta avatar justjake avatar kevinweber avatar lencioni avatar lin-123 avatar ljharb avatar lvarayut avatar mitsuruog avatar pigoz avatar raunofreiberg avatar ryan-mcbride avatar sharmilajesupaul avatar simenb avatar simono avatar spikebrehm avatar ssorallen avatar taion avatar trshafer avatar vsemozhetbyt avatar wyattdanger avatar yangfong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

javascript's Issues

21.1小节中 good样例的引号使用不正确

// good
const reaction = "No! That’s impossible!";
(async function meanwhileOnTheFalcon() {
  // handle `leia`, `lando`, `chewie`, `r2`, `c3p0`
  // ...
}());

此处应为单引号

// good
const reaction = 'No! That’s impossible!';
(async function meanwhileOnTheFalcon() {
  // handle `leia`, `lando`, `chewie`, `r2`, `c3p0`
  // ...
}());

5.3 翻译有误

5.3 翻译有误
英文原文L“5.3 Use object destructuring for multiple return values, not array destructuring.”
您翻译成“多个返回值用对象的解构,而不是数据解构。”
“array destructuring” 应该翻译成“数组解构”。

5.1 翻译存疑

Destructuring 一章的 5.1 中
英文原本是**“Why? Destructuring saves you from creating temporary references for those properties.”**,
您翻译为“Why? 解构保存了这些属性的临时值/引用”,
个人认为应当翻译为“Why?因为解构使您不必为这些属性创建临时引用。”
个人愚见。

3.7 中 has包使用存在问题

3.7对象验证属性中使用了has包,
根据测试,has.call(object,key)不能正确使用,
应当按照npm包库中作者的要求直接使用has(object,key)进行验证。

16.3 和 23.10

16.3 最后一个 //good 内的 else 是不是没必要?

// good
function dogs(x) {
  if (x) {
    if (z) {
      return y;
    }
  } else {
    return z;
  }
}

23.10 以下语法不是挺规范的吗?为什么是不友好的呢?难道变量名含义问题?

// bad
export const THING_TO_BE_CHANGED = 'should obviously not be uppercased';

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.