diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 000000000..6ddd64160 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,7 @@ +{ + "preferSingleQuotes": false, + "tabWidth": 2, + "printWidth": 80, + "addTrailingCommas": true, + "bracketSpacing": true +} diff --git a/Gemfile b/Gemfile index 54c7acf21..1b469ec2e 100644 --- a/Gemfile +++ b/Gemfile @@ -81,6 +81,7 @@ group :development, :test do gem "rubocop", "~> 0.77.0" gem 'rubocop-performance', '~> 1.5', '>= 1.5.1' gem "rubocop-rails", "~> 2.4" + gem 'prettier', '~> 0.13.0' gem "better_errors" gem "binding_of_caller" gem "byebug", platforms: [:mri, :mingw, :x64_mingw] diff --git a/Gemfile.lock b/Gemfile.lock index 1708f69c8..5da2c0b3c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -52,7 +52,7 @@ GEM addressable (2.7.0) public_suffix (>= 2.0.2, < 5.0) ansi (1.5.0) - apollo-federation (1.1.3) + apollo-federation (1.1.4) google-protobuf (~> 3.7) graphql (>= 1.9.8) arel (9.0.0) @@ -60,21 +60,21 @@ GEM audited (4.9.0) activerecord (>= 4.2, < 6.1) aws-eventstream (1.1.0) - aws-partitions (1.368.0) - aws-sdk-core (3.105.0) + aws-partitions (1.381.0) + aws-sdk-core (3.109.1) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.239.0) aws-sigv4 (~> 1.1) jmespath (~> 1.0) - aws-sdk-kms (1.37.0) - aws-sdk-core (~> 3, >= 3.99.0) + aws-sdk-kms (1.39.0) + aws-sdk-core (~> 3, >= 3.109.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.80.0) - aws-sdk-core (~> 3, >= 3.104.3) + aws-sdk-s3 (1.83.0) + aws-sdk-core (~> 3, >= 3.109.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.1) - aws-sdk-sqs (1.32.0) - aws-sdk-core (~> 3, >= 3.99.0) + aws-sdk-sqs (1.34.0) + aws-sdk-core (~> 3, >= 3.109.0) aws-sigv4 (~> 1.1) aws-sigv4 (1.2.2) aws-eventstream (~> 1, >= 1.0.2) @@ -94,7 +94,7 @@ GEM oj (>= 2.8.3) pandoc-ruby (~> 2.0, >= 2.0.0) safe_yaml (~> 1.0, >= 1.0.4) - better_errors (2.7.1) + better_errors (2.8.3) coderay (>= 1.0.0) erubi (>= 1.0.0) rack (>= 0.9.0) @@ -102,7 +102,7 @@ GEM latex-decode (~> 0.0) binding_of_caller (0.8.0) debug_inspector (>= 0.0.1) - bolognese (1.8.9) + bolognese (1.8.10) activesupport (>= 4.2.5) benchmark_methods (~> 0.7) bibtex-ruby (>= 5.1.0) @@ -165,10 +165,9 @@ GEM country_select (3.1.1) countries (~> 2.0) sort_alphabetical (~> 1.0) - crack (0.4.3) - safe_yaml (~> 1.0.0) + crack (0.4.4) crass (1.0.6) - crawler_detect (1.0.1) + crawler_detect (1.0.2) oj (>= 3.0) qonfig (~> 0.24) csl (1.5.1) @@ -177,7 +176,7 @@ GEM csl (~> 1.0) css_parser (1.7.1) addressable - dalli (2.7.10) + dalli (2.7.11) database_cleaner (1.8.5) ddtrace (0.32.0) msgpack @@ -251,7 +250,7 @@ GEM globalid (0.4.2) activesupport (>= 4.2.0) google-protobuf (3.10.0.rc.1) - graphql (1.11.4) + graphql (1.11.5) graphql-batch (0.4.3) graphql (>= 1.3, < 2) promise.rb (~> 0.7.2) @@ -259,7 +258,7 @@ GEM graphql (~> 1, > 1.8) graphql-errors (0.4.0) graphql (>= 1.6.0, < 2) - haml (5.1.2) + haml (5.2.0) temple (>= 0.8.0) tilt hamster (3.0.0) @@ -366,7 +365,7 @@ GEM net-http-persistent (3.1.0) connection_pool (~> 2.2) netrc (0.11.0) - nio4r (2.5.3) + nio4r (2.5.4) nokogiri (1.10.10) mini_portile2 (~> 2.4.0) oj (3.10.14) @@ -374,22 +373,23 @@ GEM optimist (3.0.1) pandoc-ruby (2.1.4) parallel (1.19.2) - parser (2.7.1.4) + parser (2.7.2.0) ast (~> 2.4.1) postrank-uri (1.0.24) addressable (>= 2.4.0) nokogiri (>= 1.8.0) public_suffix (>= 2.0.0, < 2.1) - premailer (1.13.1) + premailer (1.14.2) addressable css_parser (>= 1.6.0) htmlentities (>= 4.0.0) + prettier (0.13.0) promise.rb (0.7.4) public_suffix (2.0.5) pwqgen.rb (0.1.0) docopt (~> 0.5) sysrandom - qonfig (0.24.1) + qonfig (0.25.0) rack (2.2.3) rack-accept (0.4.5) rack (>= 0.4) @@ -449,11 +449,11 @@ GEM rdf-turtle (3.1.2) ebnf (~> 2.0) rdf (~> 3.1, >= 3.1.2) - rdf-vocab (3.1.7) + rdf-vocab (3.1.8) rdf (~> 3.1, >= 3.1.2) rdf-xsd (3.1.0) rdf (~> 3.1) - regexp_parser (1.7.1) + regexp_parser (1.8.1) request_store (1.5.0) rack (>= 1.4) rest-client (2.0.2) @@ -468,7 +468,7 @@ GEM benchmark-perf (~> 0.4.0) benchmark-trend (~> 0.2.0) rspec (>= 3.0.0, < 4.0.0) - rspec-core (3.9.2) + rspec-core (3.9.3) rspec-support (~> 3.9.3) rspec-expectations (3.9.2) diff-lcs (>= 1.2.0, < 2.0) @@ -581,7 +581,7 @@ GEM uuid (2.3.9) macaddr (~> 1.0) vcr (5.1.0) - webmock (3.8.3) + webmock (3.9.1) addressable (>= 2.3.6) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) @@ -662,6 +662,7 @@ DEPENDENCIES oj (>= 2.8.3) oj_mimic_json (~> 1.0, >= 1.0.1) premailer (~> 1.11, >= 1.11.1) + prettier (~> 0.13.0) pwqgen.rb (~> 0.1.0) rack-cors (~> 1.0) rack-utf8_sanitizer (~> 1.6)