jt_tools 0.0.5 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +24 -6
- data/.gitignore +1 -0
- data/.standard.yml +10 -0
- data/Gemfile +4 -1
- data/README.md +1 -0
- data/Rakefile +5 -5
- data/bin/standardrb +29 -0
- data/bin/test +20 -13
- data/jt_tools.gemspec +14 -14
- data/lib/install/.circleci/config.yml +31 -15
- data/lib/install/.editorconfig +1 -232
- data/lib/install/.erb-lint.yml +6 -6
- data/lib/install/.reek.yml +8 -13
- data/lib/install/.rubocop.yml +15 -45
- data/lib/install/.simplecov +8 -8
- data/lib/install/Brewfile +11 -13
- data/lib/install/Gemfile.tools +4 -2
- data/lib/install/app.json +19 -13
- data/lib/install/bin/circleci-auto_upgrade_tools +3 -3
- data/lib/install/bin/git-hooks/{post-merge.sample → post-merge} +5 -1
- data/lib/install/bin/git-hooks/{pre-push.sample → pre-push} +1 -1
- data/lib/install/bin/heroku-postdeploy +1 -1
- data/lib/install/bin/lint-pr +1 -1
- data/lib/install/bin/tools-setup +4 -1
- data/lib/install/bin/tools-upgrade +4 -1
- data/lib/install/config/rails_best_practices.yml +5 -5
- data/lib/jt_tools.rb +2 -2
- data/lib/jt_tools/railtie.rb +2 -2
- data/lib/jt_tools/version.rb +1 -1
- data/lib/tasks/install.rake +3 -3
- data/rejuvenation.rb +4 -5
- data/shipit.rubygems.yml +1 -0
- data/template.rb +120 -94
- metadata +11 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15859809ddca0429ae3711dd7ef6d6284af2cf89cd79b3ec7c42b7ed360856c2
|
4
|
+
data.tar.gz: 034d908682932f3bfa5ae314fa2547f50bbad2cbd8ec2d22f91b37585ea46800
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e8202ef39e94a60a54801567c05c3d3d0ada201336f8c592a8b32901c2caa896b58d0fc29865bd688e5026f55132d9d1b1178aaa019d79cf139e9cf73feda0
|
7
|
+
data.tar.gz: c5f0c683579a0a927e39874d753283a1d51874bea645323ae7baff5988e1224ebff1a9aaa06a4cc908ef78cc4a84c2d5c43ea95af0fae47c2bac9911c0846b2a
|
data/.circleci/config.yml
CHANGED
@@ -3,7 +3,7 @@ version: 2.1
|
|
3
3
|
jobs:
|
4
4
|
test:
|
5
5
|
docker:
|
6
|
-
- image:
|
6
|
+
- image: cimg/ruby:2.7-node
|
7
7
|
environment:
|
8
8
|
DATABASE_URL: postgresql://ubuntu@127.0.0.1/db_test
|
9
9
|
BUNDLE_JOBS: 4
|
@@ -13,15 +13,33 @@ jobs:
|
|
13
13
|
environment:
|
14
14
|
POSTGRES_USER: ubuntu
|
15
15
|
POSTGRES_DB: db_test
|
16
|
-
parallelism:
|
16
|
+
parallelism: 2
|
17
17
|
steps:
|
18
18
|
- checkout
|
19
|
+
- restore_cache:
|
20
|
+
keys:
|
21
|
+
- rails-v2-{{ arch }}-{{ .Revision }}
|
22
|
+
- rails-v2-{{ arch }}-
|
23
|
+
- rails-v2-
|
24
|
+
|
19
25
|
- run: gem install rails -N --update-sources
|
20
|
-
|
21
|
-
- run:
|
26
|
+
|
27
|
+
- run: sudo apt-get update -qq && sudo apt-get install -yq --no-install-recommends
|
28
|
+
cmake curl yamllint python3-setuptools python3-pkg-resources pkg-config
|
29
|
+
- run: curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh |
|
30
|
+
sudo bash
|
22
31
|
- run: git config --global user.email "you@example.com" && git config --global user.name "Your Name"
|
23
|
-
|
24
|
-
- run:
|
32
|
+
|
33
|
+
- run: |
|
34
|
+
[[ $CIRCLE_NODE_INDEX == "0" ]] || bin/test
|
35
|
+
- run: |
|
36
|
+
[[ $CIRCLE_NODE_INDEX == "1" ]] || TEST_APP_TEMPLATE=true bin/test
|
37
|
+
|
38
|
+
- save_cache:
|
39
|
+
key: rails-v2-{{ arch }}-{{ .Revision }}
|
40
|
+
paths:
|
41
|
+
- /home/circleci/.rubygems
|
42
|
+
- /home/circleci/.cache
|
25
43
|
|
26
44
|
workflows:
|
27
45
|
test:
|
data/.gitignore
CHANGED
data/.standard.yml
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
[](https://circleci.com/gh/jetthoughts/jt_tools)
|
2
2
|
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjetthoughts%2Fjt_tools?ref=badge_shield)
|
3
|
+
[](https://badge.fury.io/rb/jt_tools)
|
3
4
|
|
4
5
|
# JetThoughts Tools
|
5
6
|
|
data/Rakefile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rake/testtask"
|
5
5
|
|
6
6
|
Rake::TestTask.new(:test) do |t|
|
7
|
-
t.libs <<
|
8
|
-
t.libs <<
|
9
|
-
t.test_files = FileList[
|
7
|
+
t.libs << "test"
|
8
|
+
t.libs << "lib"
|
9
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
10
10
|
end
|
11
11
|
|
12
12
|
task default: :test
|
data/bin/standardrb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'standardrb' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("standard", "standardrb")
|
data/bin/test
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
|
3
|
-
set -
|
3
|
+
set -eo pipefail
|
4
4
|
|
5
|
-
echo "
|
5
|
+
echo ""
|
6
|
+
echo "== Yamllint: =="
|
6
7
|
yamllint --config-file lib/install/.yamllint.yml --strict .*/*.yml
|
7
8
|
yamllint --config-file lib/install/.yamllint.yml --strict *.yml
|
8
9
|
yamllint --config-file lib/install/.yamllint.yml --strict lib/**/.*.yml
|
@@ -16,25 +17,29 @@ rm -rf test_tmpl
|
|
16
17
|
# Test installation of missed gems on applying template
|
17
18
|
gem uninstall oj || true
|
18
19
|
|
19
|
-
if [[ "TEST_APP_TEMPLATE" == "true" ]]
|
20
|
+
if [[ "$TEST_APP_TEMPLATE" == "true" ]]
|
20
21
|
then
|
21
|
-
rails new test_tmpl --quiet
|
22
|
+
rails new test_tmpl --quiet --database postgresql
|
22
23
|
cd test_tmpl
|
23
|
-
|
24
|
+
bin/setup
|
25
|
+
bin/rails app:template LOCATION="../../template.rb"
|
24
26
|
else
|
25
27
|
rails new test_tmpl --template ../template.rb --quiet --database postgresql
|
26
28
|
cd test_tmpl
|
27
|
-
|
29
|
+
bin/setup
|
28
30
|
fi
|
29
31
|
|
30
|
-
echo "
|
32
|
+
echo ""
|
33
|
+
echo "== Verify CircleCI config =="
|
31
34
|
circleci config validate
|
32
35
|
|
33
|
-
echo "
|
36
|
+
echo ""
|
37
|
+
echo "== Verify installation scripts =="
|
34
38
|
bin/tools-setup
|
35
39
|
bin/tools-upgrade
|
36
40
|
|
37
|
-
echo "
|
41
|
+
echo ""
|
42
|
+
echo "== Verify linters setup =="
|
38
43
|
|
39
44
|
git add .
|
40
45
|
git commit -m 'Initial Commit'
|
@@ -50,13 +55,15 @@ git commit -m 'Adds sample_for_linters'
|
|
50
55
|
bin/rubocop --fail-level F sample_for_linters.rb
|
51
56
|
bin/pronto run -c HEAD~1 --no-exit-code
|
52
57
|
BUNDLE_GEMFILE=Gemfile.tools bin/bundle exec rails_best_practices --without-color --silent --test .
|
53
|
-
|
58
|
+
# FIXME: https://github.com/Shopify/erb-lint/issues/162
|
59
|
+
# BUNDLE_GEMFILE=Gemfile.tools bin/bundle exec erblint --config ../../lib/install/.erb-lint.yml --autocorrect .
|
54
60
|
|
55
61
|
CIRCLECI=false bin/lint-pr -f text
|
56
62
|
|
57
|
-
echo "
|
58
|
-
|
59
|
-
|
63
|
+
echo ""
|
64
|
+
echo "== Run git hooks verifications =="
|
65
|
+
bin/git-hooks/post-merge
|
66
|
+
CIRCLECI=false bin/git-hooks/pre-push
|
60
67
|
|
61
68
|
bin/rubocop --config ../../lib/install/.rubocop.yml --debug --extra-details --display-style-guide --parallel ../../lib
|
62
69
|
node_modules/.bin/eslint --config ../../lib/install/.eslintrc.js --quiet --no-color ../../lib/**/.*.js
|
data/jt_tools.gemspec
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
lib = File.expand_path(
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require
|
5
|
+
require "jt_tools/version"
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.name =
|
8
|
+
spec.name = "jt_tools"
|
9
9
|
spec.version = JtTools::VERSION
|
10
|
-
spec.authors = [
|
11
|
-
spec.email = [
|
10
|
+
spec.authors = ["Paul Keen"]
|
11
|
+
spec.email = ["pftg@users.noreply.github.com"]
|
12
12
|
|
13
|
-
spec.summary =
|
14
|
-
spec.description =
|
15
|
-
spec.homepage =
|
16
|
-
spec.license =
|
13
|
+
spec.summary = "Setup development scripts to manage code base effectively"
|
14
|
+
spec.description = "Helpful scripts to run linters locally and on CI"
|
15
|
+
spec.homepage = "https://jtway.co"
|
16
|
+
spec.license = "MIT"
|
17
17
|
|
18
|
-
spec.metadata[
|
19
|
-
spec.metadata[
|
20
|
-
spec.metadata[
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/jetthoughts/jt-tools/"
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/jetthoughts/jt-tools/"
|
21
21
|
|
22
|
-
spec.add_dependency
|
22
|
+
spec.add_dependency "railties", ">= 4.2"
|
23
23
|
|
24
24
|
# Specify which files should be added to the gem when it is released.
|
25
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
|
|
27
27
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
28
28
|
end
|
29
29
|
|
30
|
-
spec.require_paths = [
|
30
|
+
spec.require_paths = ["lib"]
|
31
31
|
end
|
@@ -7,8 +7,8 @@
|
|
7
7
|
version: 2.1
|
8
8
|
|
9
9
|
orbs:
|
10
|
-
ruby: circleci/ruby@1.0.
|
11
|
-
node: circleci/node@
|
10
|
+
ruby: circleci/ruby@1.0.5
|
11
|
+
node: circleci/node@3.0.1
|
12
12
|
|
13
13
|
workflows:
|
14
14
|
version: 2
|
@@ -61,13 +61,28 @@ jobs:
|
|
61
61
|
|
62
62
|
steps:
|
63
63
|
- checkout
|
64
|
+
|
65
|
+
- restore_cache:
|
66
|
+
name: Restore Bundler Cache between Branches
|
67
|
+
keys:
|
68
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
69
|
+
- v1-dependencies-
|
70
|
+
|
64
71
|
- ruby/install-deps:
|
65
72
|
bundler-version: '`cat Gemfile.lock | tail -1 | tr -d " "`'
|
66
73
|
key: v1-dependencies
|
74
|
+
with-cache: false
|
75
|
+
path: './vendor/bundle'
|
76
|
+
|
77
|
+
- save_cache:
|
78
|
+
name: Save Bundler Cache between Branches
|
79
|
+
paths:
|
80
|
+
- ./vendor/bundle
|
81
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
82
|
+
|
67
83
|
- node/install-packages:
|
68
84
|
app-dir: .
|
69
85
|
pkg-manager: yarn
|
70
|
-
cache-key: yarn.lock
|
71
86
|
cache-version: v1
|
72
87
|
|
73
88
|
- restore_cache:
|
@@ -75,7 +90,7 @@ jobs:
|
|
75
90
|
- asset-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ .Environment.CIRCLE_SHA1 }}
|
76
91
|
- asset-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}-
|
77
92
|
- asset-cache-v1-{{ arch }}-{{ .Branch }}-
|
78
|
-
- asset-cache-v1-
|
93
|
+
- asset-cache-v1-{{ arch }}-master-
|
79
94
|
|
80
95
|
- run:
|
81
96
|
name: Precompile Assets
|
@@ -114,11 +129,8 @@ jobs:
|
|
114
129
|
paths:
|
115
130
|
- tmp/cache/jest
|
116
131
|
|
117
|
-
- run:
|
118
|
-
|
119
|
-
command: |
|
120
|
-
bin/rails db:schema:load
|
121
|
-
bin/rspec --format RspecJunitFormatter --out tmp/reports/rspec-results.xml --format progress
|
132
|
+
- run: bin/rails db:schema:load
|
133
|
+
# rails test
|
122
134
|
|
123
135
|
# collect reports
|
124
136
|
- store_test_results:
|
@@ -127,7 +139,7 @@ jobs:
|
|
127
139
|
path: ./coverage
|
128
140
|
lint:
|
129
141
|
docker:
|
130
|
-
- image:
|
142
|
+
- image: cimg/ruby:2.7-node
|
131
143
|
environment:
|
132
144
|
DISABLE_SPRING: 1
|
133
145
|
BUNDLE_GEMFILE: Gemfile.tools
|
@@ -144,7 +156,9 @@ jobs:
|
|
144
156
|
|
145
157
|
- run:
|
146
158
|
name: Install cmake for building pronto dependencies
|
147
|
-
command: sudo apt-get update
|
159
|
+
command: sudo apt-get update -qq
|
160
|
+
&& sudo apt-get install -yq --no-install-recommends
|
161
|
+
cmake yamllint python3-setuptools python3-pkg-resources pkg-config
|
148
162
|
|
149
163
|
- run:
|
150
164
|
name: Install Bundle Dependencies
|
@@ -164,7 +178,7 @@ jobs:
|
|
164
178
|
|
165
179
|
upgrade_tools:
|
166
180
|
docker:
|
167
|
-
- image:
|
181
|
+
- image: cimg/ruby:2.7-node
|
168
182
|
environment:
|
169
183
|
DISABLE_SPRING: 1
|
170
184
|
BUNDLE_GEMFILE: Gemfile.tools
|
@@ -181,9 +195,11 @@ jobs:
|
|
181
195
|
source $BASH_ENV
|
182
196
|
gem install bundler:$BUNDLER_VERSION
|
183
197
|
|
184
|
-
- run:
|
198
|
+
- run:
|
199
|
+
name: Install System Dependencies
|
200
|
+
command: sudo apt-get update
|
201
|
+
&& sudo apt-get install cmake yamllint python3-setuptools python3-pkg-resources pkg-config
|
185
202
|
|
186
203
|
- run:
|
187
204
|
name: Run Gemfile tools update in separate branch
|
188
|
-
command:
|
189
|
-
./bin/circleci-auto_upgrade_tools
|
205
|
+
command: ./bin/circleci-auto_upgrade_tools
|
data/lib/install/.editorconfig
CHANGED
@@ -15,268 +15,37 @@ ij_continuation_indent_size = 2
|
|
15
15
|
ij_css_align_closing_brace_with_properties = false
|
16
16
|
ij_css_blank_lines_around_nested_selector = 1
|
17
17
|
ij_css_blank_lines_between_blocks = 1
|
18
|
-
# ij_css_brace_placement = 0
|
19
|
-
# ij_css_enforce_quotes_on_format = false
|
20
|
-
# ij_css_hex_color_long_format = false
|
21
|
-
# ij_css_hex_color_lower_case = false
|
22
|
-
# ij_css_hex_color_short_format = false
|
23
|
-
# ij_css_hex_color_upper_case = false
|
24
18
|
ij_css_keep_blank_lines_in_code = 2
|
25
|
-
# ij_css_keep_indents_on_empty_lines = false
|
26
|
-
# ij_css_keep_single_line_blocks = false
|
27
19
|
ij_css_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow
|
28
|
-
# ij_css_space_after_colon = true
|
29
|
-
# ij_css_space_before_opening_brace = true
|
30
|
-
# ij_css_use_double_quotes = true
|
31
|
-
# ij_css_value_alignment = 0
|
32
20
|
|
33
21
|
[*.haml]
|
34
22
|
tab_width = 2
|
35
23
|
ij_haml_keep_indents_on_empty_lines = false
|
36
24
|
|
37
25
|
[*.properties]
|
38
|
-
# ij_properties_align_group_field_declarations = false
|
39
26
|
|
40
27
|
[*.scss]
|
41
28
|
ij_continuation_indent_size = 2
|
42
29
|
ij_scss_align_closing_brace_with_properties = false
|
43
30
|
ij_scss_blank_lines_around_nested_selector = 1
|
44
31
|
ij_scss_blank_lines_between_blocks = 1
|
45
|
-
# ij_scss_brace_placement = 0
|
46
|
-
# ij_scss_enforce_quotes_on_format = false
|
47
|
-
# ij_scss_hex_color_long_format = false
|
48
|
-
# ij_scss_hex_color_lower_case = false
|
49
|
-
# ij_scss_hex_color_short_format = false
|
50
|
-
# ij_scss_hex_color_upper_case = false
|
51
|
-
# ij_scss_keep_blank_lines_in_code = 2
|
52
|
-
# ij_scss_keep_indents_on_empty_lines = false
|
53
|
-
# ij_scss_keep_single_line_blocks = false
|
54
|
-
# ij_scss_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow
|
55
|
-
# ij_scss_space_after_colon = true
|
56
|
-
# ij_scss_space_before_opening_brace = true
|
57
|
-
# ij_scss_use_double_quotes = true
|
58
|
-
# ij_scss_value_alignment = 0
|
59
32
|
|
60
33
|
[.editorconfig]
|
61
|
-
# ij_editorconfig_align_group_field_declarations = true
|
62
|
-
# ij_editorconfig_space_after_colon = true
|
63
|
-
# ij_editorconfig_space_after_comma = true
|
64
|
-
# ij_editorconfig_space_before_colon = false
|
65
|
-
# ij_editorconfig_space_before_comma = false
|
66
|
-
# ij_editorconfig_spaces_around_assignment_operators = true
|
67
34
|
|
68
35
|
[{*.js,*.cjs}]
|
69
36
|
ij_continuation_indent_size = 2
|
70
|
-
# ij_javascript_align_imports = false
|
71
|
-
# ij_javascript_align_multiline_array_initializer_expression = false
|
72
|
-
# ij_javascript_align_multiline_binary_operation = false
|
73
|
-
# ij_javascript_align_multiline_chained_methods = false
|
74
|
-
# ij_javascript_align_multiline_extends_list = false
|
75
|
-
# ij_javascript_align_multiline_for = false
|
76
|
-
# ij_javascript_align_multiline_parameters = false
|
77
|
-
# ij_javascript_align_multiline_parameters_in_calls = false
|
78
|
-
# ij_javascript_align_multiline_ternary_operation = false
|
79
|
-
# ij_javascript_align_object_properties = 0
|
80
|
-
# ij_javascript_align_union_types = false
|
81
|
-
# ij_javascript_align_var_statements = 0
|
82
|
-
# ij_javascript_array_initializer_new_line_after_left_brace = false
|
83
|
-
# ij_javascript_array_initializer_right_brace_on_new_line = false
|
84
|
-
# ij_javascript_array_initializer_wrap = off
|
85
|
-
# ij_javascript_assignment_wrap = off
|
86
|
-
# ij_javascript_binary_operation_sign_on_next_line = false
|
87
|
-
# ij_javascript_binary_operation_wrap = off
|
88
|
-
# ij_javascript_blacklist_imports = rxjs/Rx,node_modules/**/*,@angular/material,@angular/material/typings/**
|
89
|
-
# ij_javascript_blank_lines_after_imports = 1
|
90
|
-
# ij_javascript_blank_lines_around_class = 1
|
91
|
-
# ij_javascript_blank_lines_around_field = 0
|
92
|
-
# ij_javascript_blank_lines_around_function = 1
|
93
|
-
# ij_javascript_blank_lines_around_method = 1
|
94
|
-
# ij_javascript_block_brace_style = end_of_line
|
95
|
-
# ij_javascript_call_parameters_new_line_after_left_paren = false
|
96
|
-
# ij_javascript_call_parameters_right_paren_on_new_line = false
|
97
|
-
# ij_javascript_call_parameters_wrap = off
|
98
|
-
# ij_javascript_catch_on_new_line = false
|
99
|
-
# ij_javascript_chained_call_dot_on_new_line = true
|
100
|
-
# ij_javascript_class_brace_style = end_of_line
|
101
|
-
# ij_javascript_comma_on_new_line = false
|
102
|
-
# ij_javascript_do_while_brace_force = never
|
103
|
-
# ij_javascript_else_on_new_line = false
|
104
|
-
# ij_javascript_enforce_trailing_comma = keep
|
105
|
-
# ij_javascript_extends_keyword_wrap = off
|
106
|
-
# ij_javascript_extends_list_wrap = off
|
107
|
-
# ij_javascript_field_prefix = _
|
108
|
-
# ij_javascript_file_name_style = relaxed
|
109
|
-
# ij_javascript_finally_on_new_line = false
|
110
|
-
# ij_javascript_for_brace_force = never
|
111
|
-
# ij_javascript_for_statement_new_line_after_left_paren = false
|
112
|
-
# ij_javascript_for_statement_right_paren_on_new_line = false
|
113
|
-
# ij_javascript_for_statement_wrap = off
|
114
|
-
# ij_javascript_force_quote_style = true
|
115
|
-
# ij_javascript_force_semicolon_style = true
|
116
|
-
# ij_javascript_function_expression_brace_style = end_of_line
|
117
|
-
# ij_javascript_if_brace_force = never
|
118
|
-
# ij_javascript_import_merge_members = global
|
119
|
-
# ij_javascript_import_prefer_absolute_path = global
|
120
|
-
# ij_javascript_import_sort_members = true
|
121
|
-
# ij_javascript_import_sort_module_name = false
|
122
|
-
# ij_javascript_import_use_node_resolution = true
|
123
|
-
# ij_javascript_imports_wrap = on_every_item
|
124
|
-
# ij_javascript_indent_case_from_switch = true
|
125
|
-
# ij_javascript_indent_chained_calls = true
|
126
|
-
# ij_javascript_indent_package_children = 0
|
127
|
-
# ij_javascript_jsx_attribute_value = braces
|
128
|
-
# ij_javascript_keep_blank_lines_in_code = 1
|
129
|
-
# ij_javascript_keep_first_column_comment = true
|
130
|
-
# ij_javascript_keep_indents_on_empty_lines = false
|
131
|
-
# ij_javascript_keep_line_breaks = true
|
132
|
-
# ij_javascript_keep_simple_blocks_in_one_line = true
|
133
|
-
# ij_javascript_keep_simple_methods_in_one_line = true
|
134
|
-
# ij_javascript_line_comment_add_space = true
|
135
|
-
# ij_javascript_line_comment_at_first_column = false
|
136
|
-
# ij_javascript_method_brace_style = end_of_line
|
137
|
-
# ij_javascript_method_call_chain_wrap = off
|
138
|
-
# ij_javascript_method_parameters_new_line_after_left_paren = false
|
139
|
-
# ij_javascript_method_parameters_right_paren_on_new_line = false
|
140
|
-
# ij_javascript_method_parameters_wrap = off
|
141
|
-
# ij_javascript_object_literal_wrap = on_every_item
|
142
|
-
# ij_javascript_parentheses_expression_new_line_after_left_paren = false
|
143
|
-
# ij_javascript_parentheses_expression_right_paren_on_new_line = false
|
144
|
-
# ij_javascript_place_assignment_sign_on_next_line = false
|
145
|
-
# ij_javascript_prefer_as_type_cast = false
|
146
|
-
# ij_javascript_prefer_parameters_wrap = false
|
147
|
-
# ij_javascript_reformat_c_style_comments = false
|
148
|
-
# ij_javascript_space_after_colon = true
|
149
|
-
# ij_javascript_space_after_comma = true
|
150
|
-
# ij_javascript_space_after_dots_in_rest_parameter = false
|
151
|
-
# ij_javascript_space_after_generator_mult = true
|
152
|
-
# ij_javascript_space_after_property_colon = true
|
153
|
-
# ij_javascript_space_after_quest = true
|
154
|
-
# ij_javascript_space_after_type_colon = true
|
155
|
-
# ij_javascript_space_after_unary_not = false
|
156
|
-
# ij_javascript_space_before_async_arrow_lparen = true
|
157
|
-
# ij_javascript_space_before_catch_keyword = true
|
158
|
-
# ij_javascript_space_before_catch_left_brace = true
|
159
|
-
# ij_javascript_space_before_catch_parentheses = true
|
160
|
-
# ij_javascript_space_before_class_lbrace = true
|
161
|
-
# ij_javascript_space_before_class_left_brace = true
|
162
|
-
# ij_javascript_space_before_colon = true
|
163
|
-
# ij_javascript_space_before_comma = false
|
164
|
-
# ij_javascript_space_before_do_left_brace = true
|
165
|
-
# ij_javascript_space_before_else_keyword = true
|
166
|
-
# ij_javascript_space_before_else_left_brace = true
|
167
|
-
# ij_javascript_space_before_finally_keyword = true
|
168
|
-
# ij_javascript_space_before_finally_left_brace = true
|
169
|
-
# ij_javascript_space_before_for_left_brace = true
|
170
|
-
# ij_javascript_space_before_for_parentheses = true
|
171
|
-
# ij_javascript_space_before_for_semicolon = false
|
172
|
-
# ij_javascript_space_before_function_left_parenth = true
|
173
|
-
# ij_javascript_space_before_generator_mult = true
|
174
|
-
# ij_javascript_space_before_if_left_brace = true
|
175
|
-
# ij_javascript_space_before_if_parentheses = true
|
176
|
-
# ij_javascript_space_before_method_call_parentheses = false
|
177
|
-
# ij_javascript_space_before_method_left_brace = true
|
178
|
-
# ij_javascript_space_before_method_parentheses = true
|
179
|
-
# ij_javascript_space_before_property_colon = false
|
180
|
-
# ij_javascript_space_before_quest = true
|
181
|
-
# ij_javascript_space_before_switch_left_brace = true
|
182
|
-
# ij_javascript_space_before_switch_parentheses = true
|
183
|
-
# ij_javascript_space_before_try_left_brace = true
|
184
|
-
# ij_javascript_space_before_type_colon = false
|
185
|
-
# ij_javascript_space_before_unary_not = false
|
186
|
-
# ij_javascript_space_before_while_keyword = true
|
187
|
-
# ij_javascript_space_before_while_left_brace = true
|
188
|
-
# ij_javascript_space_before_while_parentheses = true
|
189
|
-
# ij_javascript_spaces_around_additive_operators = true
|
190
|
-
# ij_javascript_spaces_around_arrow_function_operator = true
|
191
|
-
# ij_javascript_spaces_around_assignment_operators = true
|
192
|
-
# ij_javascript_spaces_around_bitwise_operators = true
|
193
|
-
# ij_javascript_spaces_around_equality_operators = true
|
194
|
-
# ij_javascript_spaces_around_logical_operators = true
|
195
|
-
# ij_javascript_spaces_around_multiplicative_operators = true
|
196
|
-
# ij_javascript_spaces_around_relational_operators = true
|
197
|
-
# ij_javascript_spaces_around_shift_operators = true
|
198
|
-
# ij_javascript_spaces_around_unary_operator = false
|
199
|
-
# ij_javascript_spaces_within_array_initializer_brackets = false
|
200
|
-
# ij_javascript_spaces_within_brackets = false
|
201
|
-
# ij_javascript_spaces_within_catch_parentheses = false
|
202
|
-
# ij_javascript_spaces_within_for_parentheses = false
|
203
|
-
# ij_javascript_spaces_within_if_parentheses = false
|
204
|
-
# ij_javascript_spaces_within_imports = true
|
205
|
-
# ij_javascript_spaces_within_interpolation_expressions = false
|
206
|
-
# ij_javascript_spaces_within_method_call_parentheses = false
|
207
|
-
# ij_javascript_spaces_within_method_parentheses = false
|
208
|
-
# ij_javascript_spaces_within_object_literal_braces = true
|
209
|
-
# ij_javascript_spaces_within_object_type_braces = true
|
210
|
-
# ij_javascript_spaces_within_parentheses = false
|
211
|
-
# ij_javascript_spaces_within_switch_parentheses = false
|
212
|
-
# ij_javascript_spaces_within_type_assertion = false
|
213
|
-
# ij_javascript_spaces_within_union_types = true
|
214
|
-
# ij_javascript_spaces_within_while_parentheses = false
|
215
|
-
# ij_javascript_special_else_if_treatment = true
|
216
|
-
# ij_javascript_ternary_operation_signs_on_next_line = true
|
217
|
-
# ij_javascript_ternary_operation_wrap = off
|
218
|
-
# ij_javascript_union_types_wrap = on_every_item
|
219
|
-
# ij_javascript_use_chained_calls_group_indents = false
|
220
|
-
# ij_javascript_use_double_quotes = false
|
221
|
-
# ij_javascript_use_explicit_js_extension = global
|
222
|
-
# ij_javascript_use_path_mapping = always
|
223
|
-
# ij_javascript_use_public_modifier = false
|
224
|
-
# ij_javascript_use_semicolon_after_statement = false
|
225
|
-
# ij_javascript_var_declaration_wrap = normal
|
226
|
-
# ij_javascript_while_brace_force = never
|
227
|
-
# ij_javascript_while_on_new_line = false
|
228
|
-
# ij_javascript_wrap_comments = false
|
229
37
|
|
230
38
|
[{*.sht,*.html,*.shtm,*.shtml,*.htm}]
|
231
39
|
ij_continuation_indent_size = 2
|
232
|
-
# ij_html_add_new_line_before_tags = body,div,p,form,h1,h2,h3
|
233
|
-
# ij_html_align_attributes = true
|
234
|
-
# ij_html_align_text = false
|
235
|
-
# ij_html_attribute_wrap = normal
|
236
|
-
# ij_html_block_comment_at_first_column = true
|
237
|
-
# ij_html_do_not_align_children_of_min_lines = 0
|
238
|
-
# ij_html_do_not_break_if_inline_tags = title,h1,h2,h3,h4,h5,h6,p
|
239
|
-
# ij_html_do_not_indent_children_of_tags = html,body,thead,tbody,tfoot,script,style
|
240
|
-
# ij_html_enforce_quotes = false
|
241
|
-
# ij_html_inline_tags = a,abbr,acronym,b,basefont,bdo,big,br,cite,cite,code,dfn,em,font,i,img,input,kbd,label,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var
|
242
|
-
# ij_html_keep_blank_lines = 2
|
243
|
-
# ij_html_keep_indents_on_empty_lines = false
|
244
|
-
# ij_html_keep_line_breaks = true
|
245
|
-
# ij_html_keep_line_breaks_in_text = true
|
246
|
-
# ij_html_keep_whitespaces = false
|
247
|
-
# ij_html_keep_whitespaces_inside = span,pre,textarea
|
248
|
-
# ij_html_line_comment_at_first_column = true
|
249
|
-
# ij_html_new_line_after_last_attribute = never
|
250
|
-
# ij_html_new_line_before_first_attribute = never
|
251
|
-
# ij_html_quote_style = double
|
252
|
-
# ij_html_remove_new_line_before_tags = br
|
253
|
-
# ij_html_space_after_tag_name = false
|
254
|
-
# ij_html_space_around_equality_in_attribute = false
|
255
|
-
# ij_html_space_inside_empty_tag = true
|
256
|
-
# ij_html_text_wrap = normal
|
257
40
|
|
258
41
|
[{*.xslt,*.rng,*.ant,*.xsl,*.xsd,*.xul,*.jhm,*.xml,*.tld,*.fxml,*.wsdl,*.jrxml,*.jnlp}]
|
259
42
|
tab_width = 2
|
260
|
-
# ij_xml_block_comment_at_first_column = true
|
261
|
-
# ij_xml_keep_indents_on_empty_lines = false
|
262
|
-
# ij_xml_line_comment_at_first_column = true
|
263
43
|
|
264
44
|
[{*.yml,*.yaml}]
|
265
|
-
|
266
|
-
# ij_yaml_keep_line_breaks = true
|
45
|
+
tab_width = 2
|
267
46
|
|
268
47
|
[{.babelrc,.stylelintrc,.eslintrc,jest.config,.resultset.json.lock,bowerrc,*.json,*.jsb3,*.jsb2}]
|
269
48
|
tab_width = 2
|
270
|
-
# ij_json_keep_blank_lines_in_code = 0
|
271
|
-
# ij_json_keep_indents_on_empty_lines = false
|
272
|
-
# ij_json_keep_line_breaks = true
|
273
|
-
# ij_json_space_after_colon = true
|
274
|
-
# ij_json_space_after_comma = true
|
275
|
-
# ij_json_space_before_colon = true
|
276
|
-
# ij_json_space_before_comma = false
|
277
|
-
# ij_json_spaces_within_braces = false
|
278
|
-
# ij_json_spaces_within_brackets = false
|
279
|
-
# ij_json_wrap_long_lines = false
|
280
49
|
|
281
50
|
[{Podfile,Brewfile,cucumber,yarn,spork,Gemfile.tools,rake,.simplecov,rcov,rails,spec,capfile,gemfile,rakefile,guardfile,isolate,vagrantfile,*.gemspec,*.jbuilder,*.thor,*.rbw,*.ru,*.rb,*.rake}]
|
282
51
|
ij_ruby_align_group_field_declarations = false
|