Skip to content

Commit 1c654b9

Browse files
🤖 chore: Lint source files.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/aureooms/rejuvenate/blob/84eaeb4142b3fee77a179bb93606956b18566d90/src/transforms/sources:initial-lint.js Please contact the author of the transform if you believe there was an error.
1 parent 3b103b1 commit 1c654b9

20 files changed

+278
-314
lines changed

src/boolean.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export let truth = _ => true ;
2-
export let untruth = _ => false ;
1+
export const truth = (_) => true;
2+
export const untruth = (_) => false;

src/conjunction.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
2-
export let conjunction = ( p , q ) => x => p( x ) && q( x ) ;
3-
1+
export const conjunction = (p, q) => (x) => p(x) && q(x);

src/conjunctions.js

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1+
// Could use recursion
12

2-
// could use recursion
3-
4-
export function conjunctions ( predicates ) {
5-
6-
return function ( input ) {
7-
8-
for ( let predicate of predicates ) {
9-
10-
if ( ! predicate( input ) ) return false ;
11-
3+
export function conjunctions(predicates) {
4+
return function (input) {
5+
for (const predicate of predicates) {
6+
if (!predicate(input)) return false;
127
}
138

14-
return true ;
15-
16-
} ;
17-
9+
return true;
10+
};
1811
}
19-

src/disjunction.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
2-
export let disjunction = ( p , q ) => x => p( x ) || q( x ) ;
3-
4-
1+
export const disjunction = (p, q) => (x) => p(x) || q(x);

src/disjunctions.js

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1+
// Could use recursion
12

2-
// could use recursion
3-
4-
export function disjunctions ( predicates ) {
5-
6-
return function ( input ) {
7-
8-
for ( let predicate of predicates ) {
9-
10-
if ( predicate( input ) ) return true ;
11-
3+
export function disjunctions(predicates) {
4+
return function (input) {
5+
for (const predicate of predicates) {
6+
if (predicate(input)) return true;
127
}
138

14-
return false ;
15-
16-
} ;
17-
9+
return false;
10+
};
1811
}
19-

src/equivalence.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
2-
export let equivalence = ( p , q ) => x => p( x ) === q( x ) ;
3-
4-
1+
export const equivalence = (p, q) => (x) => p(x) === q(x);

src/implication.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
2-
export let implication = ( p , q ) => x => ! p( x ) || q( x ) ;
3-
1+
export const implication = (p, q) => (x) => !p(x) || q(x);

src/negation.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
2-
export let negation = p => x => ! p( x ) ;
3-
1+
export const negation = (p) => (x) => !p(x);

src/numbers.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
2-
export let divides = y => x => y % x === 0 ;
3-
export let divisible = y => x => x % y === 0 ;
4-
1+
export const divides = (y) => (x) => y % x === 0;
2+
export const divisible = (y) => (x) => x % y === 0;

src/operators.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
export const lt = (y) => (x) => x < y;
2+
export const le = (y) => (x) => x <= y;
13

2-
export let lt = y => x => x < y ;
3-
export let le = y => x => x <= y ;
4-
5-
export let gt = y => x => x > y ;
6-
export let ge = y => x => x >= y ;
7-
8-
export let eq = y => x => x === y ;
9-
export let ne = y => x => x !== y ;
4+
export const gt = (y) => (x) => x > y;
5+
export const ge = (y) => (x) => x >= y;
106

7+
export const eq = (y) => (x) => x === y;
8+
export const ne = (y) => (x) => x !== y;

0 commit comments

Comments
 (0)