eslint-config-cleanjs

An eslint config which reduces JS to a pure functional language

  • 所有者: bodil/eslint-config-cleanjs
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

DO NOT USE

This project has never been seriously maintained, and you should be using eslint-plugin-fp directly instead.

eslint-config-cleanjs

This is an ESLint configuration which aims to restrict you to a subset
of JavaScript which would be as close to an idealised pure functional
language as possible. The idea is to see if it's possible to banish
all the Bad Parts (well, except for the single numeric type being IEEE
754 floating point) and leave a language without the design flaws
which have plagued JS from the start, and which aren't easy to design
out of the language without becoming a subset of itself.

Please note that this rule set is meant for use only with ES6 or
higher (and the ES7 object rest spread proposal helps a lot).

Highlights:

  • no this and no classes
  • no null and undefined (implying that all functions must return)
  • no mutation of any kind
  • no variable reassignment
  • no statements, only expressions (including no if)
  • no CommonJS or AMD, only ES6 modules

This is all based on three ESLint plugins, which you'll have to
install to use these presets:

Usage

Just install this package somewhere your eslint can find it (npm install -g eslint-config-cleanjs if your eslint is installed with
-g too), along with the three above mentioned plugins (npm install -g eslint-plugin-better eslint-plugin-fp eslint-plugin-import), and put
this in your .eslintrc or wherever you keep your project's eslint
config:

{
  "extends": "cleanjs"
}

主要指標

概覽
名稱與所有者bodil/eslint-config-cleanjs
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證
所有者活动
創建於2016-08-23 18:29:58
推送於2018-06-22 12:58:09
最后一次提交2018-06-22 13:58:08
發布數5
最新版本名稱v4.0.0 (發布於 2016-08-31 11:39:52)
第一版名稱v1.0.0 (發布於 2016-08-23 07:58:53)
用户参与
星數1.1k
關注者數20
派生數33
提交數20
已啟用問題?
問題數17
打開的問題數8
拉請求數3
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?