Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Update for ESLint rules.
Browse files Browse the repository at this point in the history
1. Updated ESLint rules for expecting for modern JavaScript features: use of const where possible, use of destructuring, use of arrow functions where appropriate.
  • Loading branch information
Wobbabits committed Dec 19, 2019
1 parent 3968f18 commit cfae128
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 31 deletions.
17 changes: 16 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
"rules": {
"constructor-super": 2,
"curly": 0,
"eol-last": 2,
"eol-last": [
"error",
"always"
],
"linebreak-style": [
"error",
"unix"
],
"no-case-declarations": 2,
"no-class-assign": 2,
"no-compare-neg-zero": 2,
Expand Down Expand Up @@ -57,6 +64,7 @@
"no-unused-labels": 2,
"no-unused-vars": 2,
"no-useless-escape": 2,
"no-var": 2,
"require-yield": 2,
"use-isnan": 2,
"valid-typeof": 2,
Expand All @@ -68,6 +76,13 @@
2,
"as-needed"
],
"object-shorthand": [
"error",
"always"
],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-destructuring": 2,
"yoda": 2
},
"env": {
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# composi/core Changelog

## 2.7.5 (December 18, 2019)

## .eslinrc.json

* Updated Eslint rules to include modern JavaScript features like const and destructuring.

## src/h.js, src/runtime.js, src/union.js, src/vdom.js

* Updated to use more const and destructuring.

## 2.7.4 (December 14, 2019)

### src/index.d.ts
Expand Down
2 changes: 1 addition & 1 deletion dist/composi-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/composi-core.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/composi-core.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit cfae128

Please sign in to comment.