
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
eslint-config-ns-ts
Advanced tools
Lint your TypeScript projects with ease. eslint-config-ns-ts
extends my
existing JavaScript config eslint-config-ns.
baseUrl
and paths
The config is built upon Airbnb's ESLint rules with additional rules and optimizations (see assumptions).
Install the package with
npm install eslint-config-ns-ts --save-dev
# or
yarn add eslint-config-ns-ts -D
eslint-config-ns-ts
requires you to take care of it's peerDependencies
.
Install the correct version of each peerDependencies
package, which are listed
with the following command:
npm info "eslint-config-ns-ts@latest" peerDependencies
If using npm 5+, use this shortcut:
npx install-peerdeps --dev eslint-config-ns-ts
# or
yarn add eslint-config-ns-ts -D --peer
Now add eslint-config-ns-ts
to either your package.json
:
{
"eslintConfig": {
"extends": "eslint-config-ns-ts"
}
}
to your .eslintrc
:
{
"extends": "eslint-config-ns-ts"
}
or .eslintrc.js
:
module.exports = {
extends: 'eslint-config-ns-ts',
}
This is how you can use or extend the eslint-config-ns-ts
prettier config in
your app:
// prettier.config.js
module.exports = require('eslint-config-ns-ts/prettier.config')
This ESLint configuration comes with the same fundamental assumptions, as eslint-config-ns.
Even though I made some assumptions, you can easily overwrite, extend and unset rules and any other setting in your custom eslint config.
![]() Stefan Natter |
v4.0.0 (2023-07-31)
eslint-config-ns-base
, eslint-config-ns-ts-base
, eslint-config-ns-ts
, eslint-config-ns
FAQs
eslint typescript config ready to be used in multiple projects
The npm package eslint-config-ns-ts receives a total of 418 weekly downloads. As such, eslint-config-ns-ts popularity was classified as not popular.
We found that eslint-config-ns-ts demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.