![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@roq/eslint-plugin
Advanced tools
roq-linter aims to make sure that our code abides by the coding conventions defined in our rulebook. The aim is to achieve a higher degree of review automation.
The purpose of roq-linter is to ensure that code adheres to the coding convention rulebook; the goal is to perform automated checks. Clearly, we are not attempting to validate logical workflows that require human interaction or technical expertise. However, anything that can be caught prior to a PR review should be caught to minimize reviewer effort and control swaps between the PR owner/opener/raiser and the reviewer.
We expose three distinct configurations, one for each resource type (backend/frontend and a general one):
Step 1: Add the roq-linter plugin as a dependency to your project:
npm install -D @roq/eslint-plugin
Step 2: Add required configurations to eslint configuration file(.eslintrc):
plugins: ['@roq'],
extends: ['plugin:@roq/backendConfig','plugin:@roq/commonConfig'],
- backendBasePath (default:'backend/src') => 'The base relative path (from project's root) of backend related code'
- frontendBasePath (default:'frontend/src') => 'The base relative path (from project's root) of frontend related code'
- backendTestsBasePath (default:'backend/tests') => 'The relative path (from project's root) of backend related tests' A sample settings object looks like =>
"settings": {
"roq-linter":{
"backendBasePath": "backend/src",
"frontendBasePath": "frontend/src",
"backendTestsBasePath": "backend/tests"
}
}
Step 3: Some rules of this plugin need to be manually configured in your eslint configuration file(.eslintrc):
no-invalid-dirname
The configuration defines the naming criteria for your directory names, including the characters to use, the case to use, and whether or not to allow numbers. By default, lowercase alphanumeric strings with dots and hyphens are used.
no-use-deprecated-modules
The configuration specifies which node modules should not be used by your project. This rule is useful in situations where modules are popular among developers but have been deprecated.
no-use-global-module
The configuration declares which nestjs modules are global and thus also aims to prevent other modules to import them.
To know all the roq-conventions, have a look at our entire documentation here.
FAQs
roq-linter aims to make sure that our code abides by the coding conventions defined in our rulebook. The aim is to achieve a higher degree of review automation.
The npm package @roq/eslint-plugin receives a total of 92 weekly downloads. As such, @roq/eslint-plugin popularity was classified as not popular.
We found that @roq/eslint-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.