Skip to content

Commit 28130ba

Browse files
committed
adding decaffeination tools
1 parent 976afdd commit 28130ba

File tree

4 files changed

+5040
-588
lines changed

4 files changed

+5040
-588
lines changed

.eslintrc.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
"plugins": [
3+
"mocha"
4+
],
5+
"extends": ['@tabdigital/eslint-config-node'],
6+
"rules": {
7+
"consistent-return": "off",
8+
"max-len": "off"
9+
},
10+
"overrides": [
11+
{
12+
"files": [
13+
"test/**/*.js"
14+
],
15+
"env": {
16+
"mocha": true
17+
},
18+
"rules": {
19+
"no-undef": "off",
20+
"import/no-dynamic-require": "off",
21+
"no-unused-expressions": "off",
22+
"import/no-extraneous-dependencies": "off",
23+
"global-require": "off"
24+
}
25+
}
26+
]
27+
}

bulk-decaffeinate.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
jscodeshiftScripts: [
3+
'../js-codemod/transforms/arrow-function-arguments.js',
4+
'../js-codemod/transforms/object-shorthand.js',
5+
'../js-codemod/transforms/arrow-function.js',
6+
'../js-codemod/transforms/outline-require.js',
7+
'../js-codemod/transforms/trailing-commas.js',
8+
'../js-codemod/transforms/expect.js',
9+
'../js-codemod/transforms/rm-copyProperties.js',
10+
'../js-codemod/transforms/unchain-variables.js',
11+
'../js-codemod/transforms/rm-merge.js',
12+
'../js-codemod/transforms/rm-object-assign.js',
13+
'../js-codemod/transforms/unquote-properties.js',
14+
'../js-codemod/transforms/invalid-requires.js',
15+
'../js-codemod/transforms/no-reassign-params.js',
16+
'../js-codemod/transforms/updated-computed-props.js',
17+
'../js-codemod/transforms/no-vars.js',
18+
'../js-codemod/transforms/template-literals.js',
19+
]
20+
};

0 commit comments

Comments
 (0)