프로젝트
GitHub에서 보기 eslint-plugin-fp
jfmengels/eslint-plugin-fp
소개
함수형 프로그래밍을 위한 ESLint 규칙
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaleslint-plugin-fp 
ESLint rules for functional programming
Install
$ npm install --save-dev eslint eslint-plugin-fp
Usage
Configure it in package.json.
{
"name": "my-awesome-project",
"eslintConfig": {
"env": {
"es6": true
},
"plugins": [
"fp"
],
"rules": {
"fp/no-arguments": "error",
"fp/no-class": "error",
"fp/no-delete": "error",
"fp/no-events": "error",
"fp/no-get-set": "error",
"fp/no-let": "error",
"fp/no-loops": "error",
"fp/no-mutating-assign": "error",
"fp/no-mutating-methods": "error",
"fp/no-mutation": "error",
"fp/no-nil": "error",
"fp/no-proxy": "error",
"fp/no-rest-parameters": "error",
"fp/no-this": "error",
"fp/no-throw": "error",
"fp/no-unused-expression": "error",
"fp/no-valueof-field": "error",
"no-var": "error"
}
}
}
Rules
- no-arguments - Forbid the use of
arguments. - no-class - Forbid the use of
class. - no-delete - Forbid the use of
delete. - no-events - Forbid the use of the
eventsmodule. - no-get-set - Forbid the use of getters and setters.
- no-let - Forbid the use of
let. - no-loops - Forbid the use of loops.
- no-mutating-assign - Forbid the use of
Object.assign()with a variable as first argument. - no-mutating-methods - Forbid the use of mutating methods.
- no-mutation - Forbid the use of mutating operators.
- no-nil - Forbid the use of
nullandundefined. - no-proxy - Forbid the use of
Proxy. - no-rest-parameters - Forbid the use of rest parameters.
- no-this - Forbid the use of
this. - no-throw - Forbid the use of
throw. - no-unused-expression - Enforce that an expression gets used.
- no-valueof-field - Forbid the creation of
valueOffields.
Recommended configuration
This plugin exports a recommended configuration that enforces good practices.
To enable this configuration, use the extends property in your package.json.
{
"name": "my-awesome-project",
"eslintConfig": {
"plugins": [
"fp"
],
"extends": "plugin:fp/recommended"
}
}
See ESLint documentation for more information about extending configuration files.
MIT © Jeroen Engels
관련 프로젝트 살펴보기
불러오는 중…