![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 defined coding conventions in our rulebook. The aim is to achieve a higher degree of review automation.
So with roq-linter we want to make sure that our code adheres to the coding convention rulebook, the idea is to make automated checks. Obviously we don't aim to check logical workflows that require human involvement with technical expertise. But whatever can be caught before a PR goes under review, needs to be caught to reduce effort on the side of the reviewer and swaps of control between the PR owner/opener/raiser and the reviewer.
So, we expose three different configurations, specific to the type of resources (backend/frontend):
Step 1: Add the roq-linter plugin as a dependency to your project:
npm install -D @roq/eslint-plugin-roq-linter
Step 2: Add required configurations to eslint configuration file(.eslintrc):
Configure the plugin:
plugins: ['@roq/roq-linter'],
Extend the desired config:
extends: ['plugin:@roq/roq-linter/backendConfig','plugin:@roq/roq-linter/commonConfig'],
Add the settings for this plugin:
The settings expects the following details (the path separator to be used while defining these values should be nix-styled '/'):
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'
backendModules (default:["auth", "config", "event", "library", "platform", "user"]) => 'A list of relative paths (from backendBasePath) to backend modules'
"settings": {
"roq-linter":{
"backendBasePath": "backend/src",
"frontendBasePath": "frontend/src",
"backendTestsBasePath": "backend/tests",
"backendModules": ["auth", "config", "event", "library", "platform", "user", "nested/sample"]
}
}
Step 3: Some rules of this plugin need to be manually configured in your eslint configuration file(.eslintrc):
no-invalid-dirname
The configuration specifies the naming criteria for your directory names, what characters, what case, also do you want to allow numbers. The default configuration is to have lowercased alphanumeric strings with dots and hyphens.
no-use-deprecated-modules
The configuration specifies the node modules that your project should not use. This rule helps in instances for modules that are popular amongst devs but have been deprecated.
no-use-global-module
The configuration specifies the nestjs modules that are global and hence need not be imported by other modules.
See our entire documentation here to know all the roq-conventions.
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.
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.