Skip to content

Commit 18f5fba

Browse files
Release 4.1.0 (#37)
### Features * Make `react/jsx-curly-brace-presence` warn instead of error
2 parents df9ffbf + 0c0ae44 commit 18f5fba

File tree

9 files changed

+9
-8
lines changed

9 files changed

+9
-8
lines changed

bin/commands/generator/BasePhoveaGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-underscore-dangle */
2+
const path = require('path');
23
const Generator = require('yeoman-generator');
34
const { merge, template } = require('lodash');
4-
const path = require('path');
55
const glob = require('glob').sync;
66
const fs = require('fs-extra');
77
const GeneratorUtils = require('./utils/GeneratorUtils');

bin/commands/generator/setup-workspace/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
/* eslint-disable no-param-reassign */
88
/* eslint-disable prefer-destructuring */
99
/* eslint-disable no-underscore-dangle */
10+
const path = require('path');
1011
const Base = require('yeoman-generator');
1112
const chalk = require('chalk');
1213
const fs = require('fs-extra');
13-
const path = require('path');
1414
const RepoUtils = require('../utils/RepoUtils');
1515
const SpawnUtils = require('../utils/SpawnUtils');
1616
const WorkspaceUtils = require('../utils/WorkspaceUtils');

bin/commands/generator/update/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-underscore-dangle */
2+
const fs = require('fs');
23
const chalk = require('chalk');
34
const Base = require('yeoman-generator');
4-
const fs = require('fs');
55

66
function extractFromReadme(content) {
77
const safe = (p) => (p ? p[1] : '');

bin/commands/generator/utils/GeneratorUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable global-require */
22
/* eslint-disable no-underscore-dangle */
33
/* eslint-disable no-promise-executor-return */
4+
const path = require('path');
45
const fs = require('fs-extra');
56
const yeoman = require('yeoman-environment');
6-
const path = require('path');
77
const { isError } = require('lodash');
88

99
module.exports = class GeneratorUtils {

bin/commands/generator/workspace/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
/* eslint-disable prefer-destructuring */
66
/* eslint-disable no-underscore-dangle */
77
const path = require('path');
8+
const fs = require('fs');
89
const glob = require('glob').sync;
910
const chalk = require('chalk');
1011
const { extend } = require('lodash');
1112
const _ = require('lodash');
12-
const fs = require('fs');
1313
const yaml = require('yamljs');
1414
const NpmUtils = require('../utils/NpmUtils');
1515
const PipUtils = require('../utils/PipUtils');

bin/commands/product-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/* eslint-disable no-plusplus */
99
/* eslint-disable no-continue */
1010
/* eslint-disable no-restricted-syntax */
11-
const Promise = require('bluebird');
1211
const path = require('path');
12+
const Promise = require('bluebird');
1313
const fs = Promise.promisifyAll(require('fs-extra'));
1414
const chalk = require('chalk');
1515
const GeneratorUtils = require('./generator/utils/GeneratorUtils');

config/eslintrc.template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ module.exports = ({ tsconfigRootDir }) => ({
7070
'prefer-spread': 'warn',
7171
'@typescript-eslint/ban-ts-comment': 'warn',
7272
'react/destructuring-assignment': 'off',
73+
'react/jsx-curly-brace-presence': 'warn',
7374
'react/jsx-props-no-spreading': 'off',
7475
'react/no-unused-class-component-methods': 'warn',
7576
'react/prop-types': 'off',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visyn_scripts",
33
"description": "",
4-
"version": "4.0.1",
4+
"version": "4.1.0",
55
"author": {
66
"name": "datavisyn GmbH",
77
"email": "[email protected]",

tests/standalone.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const fse = require('fs-extra');
21
const fs = require('fs');
32
const { resolve } = require('path');
43
const { execSync } = require('child_process');
4+
const fse = require('fs-extra');
55
const { setup: setupDevServer, teardown: teardownDevServer } = require('jest-dev-server');
66

77
// Mock setup of yargs inspired by https://www.kgajera.com/blog/how-to-test-yargs-cli-with-jest/

0 commit comments

Comments
 (0)