Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
eslint-config-neworbit
Advanced tools
ESLint configuration for NewOrbit
npm install eslint eslint-config-neworbit --save-dev
Add .eslintrc.json
file with the following contents:
{
"extends": [
"neworbit"
]
}
Setup a lint script in your package.json
something like this:
{
...
"scripts": {
...
"lint:typescript": "eslint \"./**/*.{ts,tsx}\""
}
}
Install the ESLint extension for VS Code
Make sure you have TypeScript files included in your settings:
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
If your package.json
and .eslintrc.json
files aren't in the root directory you open in VS Code you may need to add working directories in your workspace settings:
{
...
"settings": {
...
"eslint.workingDirectories": [
{
"directory": "{FOLDER_THAT_CONTAINS_CONFIG}"
}
],
}
}
For mapping TSLint rule overrides in your own project to the equivalent ESLint rules please refer to the map. If you cannot find the rule simply Google it as ESLint is plugin based and there is likely a plugin offering the required functionality.
Made with :sparkling_heart: by NewOrbit in Oxfordshire, and licensed under the MIT Licence
FAQs
NewOrbit standard typescript ready eslint configuration
We found that eslint-config-neworbit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.