foobara-empty-typescript-react-project-generator 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/src/write_empty_typescript_react_project_to_disk.rb +9 -0
- data/templates/.eslintrc.js +2 -0
- metadata +4 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d2de82e547950b5f6874b942d5e53ed8c5ea7a7ae23dac3939f9ff6d4c30e9f
|
4
|
+
data.tar.gz: a790d1445df69542e132d3004cfc237287847e9a278934ec1da62ef8b0b8fe3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '085b1c412cbc858788160b949916a2d9fc73d15153baa81c20c5bebc155a23306835fb75985ff63d91f466c4b5172d6ff2d9428906858fe1147b85f16c4fa38f'
|
7
|
+
data.tar.gz: 4c16639faf6219c17b2527f7039e4253af2f2286924cb5bbac15cac36186cc9780cf9fecb15026d81fab64972d6e756a38dfe94eed1ede24893ee8022b13f416
|
data/CHANGELOG.md
CHANGED
@@ -52,6 +52,7 @@ module Foobara
|
|
52
52
|
def run_pre_generation_tasks
|
53
53
|
run_npx_create_react_app
|
54
54
|
add_necessary_dev_dependencies_for_eslint
|
55
|
+
fix_uncorrectable_lint_violations
|
55
56
|
eslint_fix
|
56
57
|
git_init
|
57
58
|
git_add_all
|
@@ -96,6 +97,14 @@ module Foobara
|
|
96
97
|
push_to_github
|
97
98
|
end
|
98
99
|
|
100
|
+
def fix_uncorrectable_lint_violations
|
101
|
+
Dir.chdir(project_directory) do
|
102
|
+
web_vitals_contents = File.read("src/reportWebVitals.ts")
|
103
|
+
web_vitals_contents.gsub!("if (onPerfEntry && ", "if (onPerfEntry != null && ")
|
104
|
+
File.write("src/reportWebVitals.ts", web_vitals_contents)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
99
108
|
def eslint_fix
|
100
109
|
puts "linting..."
|
101
110
|
|
data/templates/.eslintrc.js
CHANGED
@@ -39,5 +39,7 @@ module.exports = {
|
|
39
39
|
"@typescript-eslint/triple-slash-reference": "off",
|
40
40
|
"@typescript-eslint/explicit-function-return-type": "off",
|
41
41
|
"@typescript-eslint/no-floating-promises": "off",
|
42
|
+
"react/jsx-indent" : ["error", 2],
|
43
|
+
"react/jsx-indent-props": ["error", 2]
|
42
44
|
}
|
43
45
|
}
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-empty-typescript-react-project-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: foobara
|
@@ -38,7 +37,6 @@ dependencies:
|
|
38
37
|
- - ">="
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '0'
|
41
|
-
description:
|
42
40
|
email:
|
43
41
|
- azimux@gmail.com
|
44
42
|
executables: []
|
@@ -68,7 +66,6 @@ metadata:
|
|
68
66
|
source_code_uri: https://github.com/foobara/generators-empty-typescript-react-project-generator
|
69
67
|
changelog_uri: https://github.com/foobara/generators-empty-typescript-react-project-generator/blob/main/CHANGELOG.md
|
70
68
|
rubygems_mfa_required: 'true'
|
71
|
-
post_install_message:
|
72
69
|
rdoc_options: []
|
73
70
|
require_paths:
|
74
71
|
- lib
|
@@ -76,15 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
73
|
requirements:
|
77
74
|
- - ">="
|
78
75
|
- !ruby/object:Gem::Version
|
79
|
-
version: 3.
|
76
|
+
version: 3.4.0
|
80
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
78
|
requirements:
|
82
79
|
- - ">="
|
83
80
|
- !ruby/object:Gem::Version
|
84
81
|
version: '0'
|
85
82
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
87
|
-
signing_key:
|
83
|
+
rubygems_version: 3.6.2
|
88
84
|
specification_version: 4
|
89
85
|
summary: Generates empty typescript react projects
|
90
86
|
test_files: []
|