New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add textlint rules and plugins #54443
Conversation
c6e5b9a
to
d2c484d
Compare
Is this sufficient? This is all I did in the previous PR. However I'm also happy to go through the checklist—is there documentation on how to "test using sandboxing"? |
@matthew-piziak How would I use texlint with your added rules? |
@Mic92 Hi! Like this:
|
@Mic92 Does that make sense? |
Bump. Looking for some beginner device here. I've only make one other nixpkgs PR before, and that one was just merged without further ceremony. |
cafa963
to
dd0d90b
Compare
@adisbladis @6AA4FD Does this look okay to you? |
Looks like I can't get any attention here. I will try to contribute to NUR instead. |
@matthew-piziak I think the pull requests should only update the .json file so that .nix file is updated by nodejs maintainers in a more synchronized fashion. Perhaps we could try doing this for your contribution. |
@veprbl That sounds great! Thank you so much for helping me out. My thinking is that the I will remove the generate |
8d043b7
to
631c802
Compare
nodePackages_10_x.textlint-plugin-latex: init at 1.0.4 nodePackages_10_x.textlint-rule-abbr-within-parentheses: init at 1.0.2 nodePackages_10_x.textlint-rule-alex: init at 1.3.1 nodePackages_10_x.textlint-rule-common-misspellings: init at 1.0.1 nodePackages_10_x.textlint-rule-diacritics: init at 0.0.2 nodePackages_10_x.textlint-rule-en-max-word-count: init at 1.0.1 nodePackages_10_x.textlint-rule-max-comma: init at 1.0.4 nodePackages_10_x.textlint-rule-no-start-duplicated-conjunction: init at 2.0.2 nodePackages_10_x.textlint-rule-period-in-list-item: init at 0.2.0 nodePackages_10_x.textlint-rule-stop-words: init at 1.0.8 nodePackages_10_x.textlint-rule-terminology: init at 1.1.30 nodePackages_10_x.textlint-rule-unexpanded-acronym: init at 1.2.3 nodePackages_10_x.textlint-rule-write-good: init at 1.6.2
631c802
to
8e8152d
Compare
@veprbl Okay, now the diff is restricted to |
Sorry, your pr got burden under the other ones. $ textlint \
--rule write-good \
--rule no-start-duplicated-conjunction \
--rule max-comma \
--rule terminology \
--rule period-in-list-item \
--rule period-in-list-item \
--rule unexpanded-acronym \
--rule abbr-within-parentheses \
--rule alex \
--rule common-misspellings \
--rule en-max-word-count \
--rule diacritics \
--rule stop-words \
file_to_check How can I bring the other packages get into scope? Do they just provide a binary each, that is picked up by texlint or do they need to be loaded as a library? |
All these packages are so-called "plugins" of I'm not exactly sure how plugin discovery works...I've never used |
If I were doing this myself and guessing, I'd probably just make all the rules dependencies of |
I wonder if the correct thing is to relax checks on the node stuff in nixpkgs so that we get more users and npm-aware nixpkgs contributors? I don't have a dog in this race, because I don't do any JS, but it's a thought. |
@endgame I think you're right. |
@astro do you know if there was a way to extend the npm modules search path via environment variables? |
@Mic92 Not npm itself, but node evaluates
|
@astro I'm looking at
Does that mean we should be including all these packages as |
@matthew-piziak Yes. If that doesn't do the trick, |
Hmm, I don't know how to do either of those things. That is, I do not know how to add a dependency to the One thing I did try is, I cloned
|
You can see my experimentation here: textlint/textlint@6aa579a...matthew-piziak:master |
Can a maintainer help me get this merged? Textlint without the rules is basically useless, and I've been trying to get this merged for three months now. |
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-january/2002/5 |
@GrahamcOfBorg build nodePackages.textlint-plugin-latex |
Motivation for this change
This is a continuation of #53981. That pull request installed
textlint
; this one installs rules and plugins.Question: these are separate npm packages, but should I be grouping these under a common label in nix somehow? I'm assuming not, but let me know if there's a way to keep things more organized. Thanks!
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)