Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
neutrinojs-typescript-eslint
Advanced tools
Readme
Provides typescript integration with ESLint for neutrino projects.
ESLint replaces TSLint for linting TypeScript.
Existing JavaScript rules will be converted to support TypeScript, so you can combine this with base configurations such as airbnb easily. See below for full details.
This package is intended for use with neutrinojs-typescript,
and any eslint
module (e.g. @neutrino/eslint
/ @neutrino/airbnb
/ etc.),
so you should already have those installed and configured.
Install dependencies:
npm install --save-dev neutrinojs-typescript-eslint
Include in .neutrinorc.js
:
const typescriptLint = require('neutrinojs-typescript-eslint');
// ...
module.exports = {
use: [
typescript(), // must be first in use section
typescriptLint(), // order does not matter; can be later
eslint(), // or airbnb or any other eslint-based module
node(), // or whichever target you are using
],
};
Include type checking in package.json
scripts:
{
"scripts": {
"lint": "eslint --format codeframe --ext mjs,jsx,js,tsx,ts src test && tsc"
}
}
Note: if you are using eslint 7 or above, you can simplify the lint script:
{
"scripts": {
"lint": "eslint --format codeframe src test && tsc"
}
}
// default values shown
typescriptLint({
// file patterns where TypeScript rules are applied
typescriptFiles: ['*.ts', '*.tsx'],
// add "plugin:@typescript-eslint/recommended"
recommended: true,
// convert "indent" to "@typescript-eslint/indent"
indent: false,
})
Note that indent
is false
by default due to
known issues with @typescript-eslint/indent.
Any unrecognised options are passed through to typescript-eslint-converter
.
This uses typescript-eslint-converter to automatically convert Javascript rules to be TypeScript compatible.
All conversions only apply if an equivalent explicit configuration is not found.
FAQs
Typescript ESLint integration for neutrino projects
The npm package neutrinojs-typescript-eslint receives a total of 19 weekly downloads. As such, neutrinojs-typescript-eslint popularity was classified as not popular.
We found that neutrinojs-typescript-eslint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.