rubocop-tailwindcss 0.0.1

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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +13 -0
  3. data/lib/rubocop-tailwindcss.rb +9 -0
  4. metadata +47 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 177ea7a79bac1d1fd3f43b13073bcbe7f61ec47939ead3205c4b0529ba7c4bad
4
+ data.tar.gz: '04085a323580fe32071adb1d798d7c3c2f8dda8b1f2b7c2154ca7e0c177a3e80'
5
+ SHA512:
6
+ metadata.gz: 976d160a344bb567d69cace41aef8e05c70630e0f8b29f36d91577070ccba4b771e590ea8cd2f1515863694b819be248da4c20f0e8bc58c67f3c5e53adbf5f02
7
+ data.tar.gz: d4c002fa3b1060adc73bc8789ef6ecc6cc0ca4aacc5df5135dbc8ea30ed17797ee271a489f13236f551edcb2cc6073c8ea420c734032881535266de532a06d20
data/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # rubocop-tailwindcss
2
+
3
+ RuboCop cops that keep Tailwind CSS classes in the official order in Ruby
4
+ code - Phlex components and any Ruby that carries `class:` strings.
5
+
6
+ **Under development.** This release reserves the name; the first working
7
+ release is being built at
8
+ [am1006/tailwindcss-sorter](https://github.com/am1006/tailwindcss-sorter).
9
+
10
+ The plan: the cop finds class strings via the Ruby AST (no regex), batches
11
+ them through the `tailwindcss-sorter` npm CLI - a pinned, theme-aware order
12
+ oracle over Tailwind's own design system - and autocorrects. One Gemfile line;
13
+ no package.json, no node_modules in your Rails app.
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # rubocop-tailwindcss is under development - this release reserves the name.
4
+ # Follow along at https://github.com/am1006/tailwindcss-sorter
5
+ module RuboCop
6
+ module Tailwindcss
7
+ VERSION = "0.0.1"
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-tailwindcss
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - am1006
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Finds Tailwind CSS class strings in Ruby source via the AST and keeps
13
+ them in the official class order, with autocorrect. Built for Phlex components and
14
+ any Ruby that carries class strings. This release reserves the name while the first
15
+ working release is in development.
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - README.md
21
+ - lib/rubocop-tailwindcss.rb
22
+ homepage: https://github.com/am1006/tailwindcss-sorter
23
+ licenses:
24
+ - MIT
25
+ metadata:
26
+ homepage_uri: https://github.com/am1006/tailwindcss-sorter
27
+ source_code_uri: https://github.com/am1006/tailwindcss-sorter
28
+ rubygems_mfa_required: 'true'
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '3.1'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 4.0.3
44
+ specification_version: 4
45
+ summary: RuboCop cops that keep Tailwind CSS classes in the official order in Ruby
46
+ code
47
+ test_files: []