Or even better, what is the closest ESLint/Prettier ruleset?
I'm trying to enforce ESLint on a legacy AngularJS project, and the maintainer is reluctant to accept this enforcement. In order to placate him, I want the ESLint ruleset/config to match his current style as closely as possible.
I questioned him, and he told me that he is using formatting on save. I expect he is using whatever is default, because I could not get him to tell me what configuration he is using. It makes me think he has not changed the default.
The IDE own formatter doesn't work on save, so he must be using some linter/beautifier.
The default WebStorm code style preferences are not based on any existing standards/ruleset
Related
I've been trying to create a vscode theme for a couple of weeks, and everything is working out pretty well, except that something called "Semantic Highlighting" keeps overriding my theme's configurations.
Now there are a lot of questions and solutions regarding this already, but none seem to make a difference. I like semantic highlighting, but there ARE some colors I would like to modify.
I couldn't find a way to "override" the semantic highlighting with my theme configurations, so I tried disabling it by:
theme.json: "semanticHighlighting": false"
and
settings.json: "editor.semanticHighlighting.enabled": false"
But none of them make a difference.
To keep it simple, I would like to keep semantic highlighting turned on (if possible) and just override some of its coloring with my theme's configurations. I don't want to mess with "semanticTokenColors": {} since my target scopes are really specific and semanticTokenColors only offer to modify a wide range of scopes such as type, string, class, etc...
Is there any way I can achieve this? Thanks in advance.
OS: Windows 11
Vscode Version: 1.73.1 Stable Build
Installed C++ Extensions:
C/C++
C/C++ Advanced Lint
Code Runner
Better C++ Syntax (I've tried disabling this too.)
clangd
I'm admittedly new to Netsuite, so this may be obvious, although I've been unable to find anything specific one way or the other. In fact, I don't even attend any training until next week, but I'm trying to get part of my development environment setup with one of the editors/IDEs I prefer. I know that Netsuite offers an Eclipse plugin, but I'm not an Eclipse fan. I'd prefer to use either WebStorm or TextMate. (I'm on MacOS Sierra)
I tried installing the WebStorm plugin, but it's throwing an exception and is not functional. I submitted a bug on GitHub, but what I'd really like to know is if it's possible for me to write my own script to upload/download files to the cabinet, so I could just roll my own feature in TextMate. Is this possible, and if so, how? (Just a link to the docs is perfectly fine)
In other words, is it possible via their API, to submit changes to a script I've been working on in another editor/IDE? Or interact with our cabinet? (Not sure if I'm using the proper NS verbiage, but hopefully you get my intent) I'm thinking about writing a Python script, that accepts a local script path as a parameter, that will then get submitted to our cabinet. Thanks for the help in advance.
I wrote a plugin for JetBrains IDEs (I use WebStorm specifically though) that mimics NetSuite's Eclipse plugin. Feel free to take a look. It is open source and has ~1500 downloads at the current moment.
https://plugins.jetbrains.com/plugin/8305?pr=
If you are the same person that opened this issue (https://github.com/Topher84/NetSuite-Tools-For-WebStorm/issues/7), it has been closed and was due to using an older version of WebStorm.
I don't like eclipse personally, so I just make my scripts in whatever and use Netsuite's script backend to upload the scripts as 'new' when I'm done. If I want to change them, simply use their backend again to 'edit' the script. You'll see a simple editor, where you can change things, or you just copy and paste what you have in there. It's a little more work than something integrated, but it does work..
As per the default addressing for a Sitecore multilingual solution, is there a way to change the default addressing, for example
www.mydomain.com/zh/products for a simplified Chinese to www.mydomain.com/sc/products
without altering the sitecore pipeline. Thanks
Without altering Sitecore pipelines or LinkManagers, the only obvious way I can think of achieving this would be to use the IIS Url Rewrite module. You could set up configuration in that, to rewrite some or all of your URLs.
What isn't clear from your question is; if you want to force ALL URLs onto the /sc/ path, or you want to get rid of language embedding in the url unconditionally? If the latter, you can modify your UrlOptions to disable "languageEmbedding" by setting it to "never".
You may register sc language based on the template of zh one on your machine. Then you can rename zh language item definition in Sitecore.
It may work but there could be unknown repercussions as a result. Anyways if you decide to try it out, backup your databases before you start renaming those languages. If it does work and you give it a go, document it for those who'll take over solution after you. They'll be quite thankful for that :).
I am working on a set of C++ unit tests in boost::test. After working with the Google test framework, I really appreciate the ability to quickly visually parse colorized output in order to tighten the development cycle. Currently, I'm considering looking into using the gnu source-highlight to create a new language definition, but if there is a way of doing it inside of boost::test, that would be preferable.
Is there a standard way of colorizing boost::test output?
ETA
It looks like the author added support for color:
http://boost.2283326.n4.nabble.com/test-new-feature-colored-output-td2660465.html
However, it is disabled by default. I assume this is managed at compile time. How can this feature be enabled?
ETA2
Another possible option, haven't investigated yet: https://pypi.python.org/pypi/pyrg
The parameters that can be passed to the unit test framework seem to be in this file:
boost\test\impl\unit_test_parameters.ipp
however, I cannot see any *color* related variable in there (boost 1.50 or 1.54). So I guess the feature is still in somewhere in a repository. I join your to say that color output is a nice feature (logs/summaries of GTest are also better).
EDIT:
The feature is in trunk:
http://svn.boost.org/svn/boost/trunk/boost/test/impl/unit_test_parameters.ipp
We have a small website which was developed with the default language ('en'), without paying mind to the language or versioning capabilities of sitecore (ouch!). We simply forgot to set the correct default language at the start of the project.
Now we have an entire content tree of 'en' items, when they should be 'nl-NL' (it's a Dutch site). And I am wondering if there is an easy way of changing the language for all items in that tree (that does not involve hacking).
I found this Q&A, but it just talks about setting the default language. I'd like to do that, yes, but I would also like to set the correct language for the existing item(versions).
thoughts?
From what I remember we had a similar problem before. Not with filling a website in the wrong language, but having empty content that should be filled with default english content after creating the new language. What we did was export the language. In your case you could export the English language, create a dutch language and replace all entries in the English XML file that comes out with nl-NL values.
After you've done that you could import the language file as the Dutch language and all items are filled.
To me this sounds as the easiest and quickest approach, since you only have to search and replace some xml tags.
Good luck!
You could write a .NET program that would go through your whole content tree and update language parameter of each item accordingly. Sitecore APIs give you access to almost everything you see in the backend (including content manipulation) so it shouldn't be much of a problem to automate this task.
As an anternative you could copy your whole content from one language to another and then remove the language you don't want. Here's how to do it.
I'll caveat that my experience with it is limited, but from what I've seen, the Sitecore Rocks plugin for Visual Studio might allow you to script this.
http://visualstudiogallery.msdn.microsoft.com/44a26c88-83a7-46f6-903c-5c59bcd3d35b