Skip to content

Commit

Permalink
Merge pull request #520 from sanctuary-js/davidchambers/simple-currying
Browse files Browse the repository at this point in the history
abandon Ramda-style currying in favour of simple currying
  • Loading branch information
davidchambers authored Apr 6, 2018
2 parents a8c4bec + 359240f commit a3fd05a
Show file tree
Hide file tree
Showing 223 changed files with 4,501 additions and 4,250 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"root": true,
"extends": ["./node_modules/sanctuary-style/eslint-es3.json"]
"extends": ["./eslint/es3.js"]
}
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"types"
],
"dependencies": {
"sanctuary-def": "0.14.0",
"sanctuary-def": "0.15.0",
"sanctuary-type-classes": "8.1.1",
"sanctuary-type-identifiers": "2.0.1"
},
Expand Down
12 changes: 12 additions & 0 deletions eslint/es3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict';

module.exports = {
root: true,
extends: ['../node_modules/sanctuary-style/eslint-es3.json'],
rules: {
'func-call-spacing': ['error', 'always', {allowNewlines: true}],
'indent': require ('./rules/indent'),
'no-extra-parens': ['off'],
'no-unexpected-multiline': ['off'],
},
};
41 changes: 41 additions & 0 deletions eslint/es6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
'use strict';

module.exports = {
root: true,
extends: ['../node_modules/sanctuary-style/eslint-es6.json'],
env: {node: true},
rules: {
'func-call-spacing': ['error', 'always', {allowNewlines: true}],
'indent': require ('./rules/indent'),
'no-extra-parens': ['off'],
'no-unexpected-multiline': ['off'],
},
overrides: [
{
files: ['*.md'],
plugins: ['markdown'],
globals: {
$: false,
Cons: false,
Just: false,
Left: false,
Nil: false,
Nothing: false,
R: false,
Right: false,
S: false,
Sum: false,
},
rules: {
'array-bracket-spacing': ['off'],
'indent': ['off'],
'no-eval': ['off'],
'no-extra-semi': ['off'],
'no-unused-vars': ['off'],
'object-shorthand': ['error', 'always'],
'prefer-template': ['off'],
'strict': ['off'],
},
},
],
};
13 changes: 13 additions & 0 deletions eslint/rules/indent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

const common = require ('sanctuary-style/eslint-common.json');


const indent = (JSON.parse (JSON.stringify (common))).rules['indent'];
indent[2].ignoredNodes.push (
'CallExpression',
'CallExpression > *',
'CallExpression > ArrowFunctionExpression ArrowFunctionExpression > *',
'CallExpression > FunctionExpression > BlockStatement'
);
module.exports = indent;
Loading

0 comments on commit a3fd05a

Please sign in to comment.