Socket
Book a DemoInstallSign in
Socket

@simpleview/eslint-config-dms

Package Overview
Dependencies
Maintainers
22
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simpleview/eslint-config-dms

DMS eslint config

latest
Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
4
300%
Maintainers
22
Weekly downloads
 
Created
Source

eslint-config-dms

It provides a base eslint config with typescript support. It also provides a react-specific eslint config (that extends the base config) for react projects. You can skip installing unnecessary react linting-specific dependencies if using the base config.

Installation

Add eslint-config-dms as a dependency. Requires eslint 9 flat file format.

Choose the import specific to your project. You should only use one of these imports.

// use the JS config
// will enforce linting on all js files
import config from "eslint-config-dms/javascript"

// use the TS config
// will enforce linting on all js/js files
import config from "eslint-config-dms/typescript"

// use the react_typescript config
// will enforce linting on all js/jsx/ts/tsx files
import config from "eslint-config-dms/react_typescript"
  • Requires eslint >=9
  • Requires node 20.0.0

Customization

You can override or extend the rules provided by this package in your own project's eslint config

import config from "eslint-config-dms/typescript"

export default {
	...config,
	rules: {
		...config.rules,
		"no-console": "warn"
	}
}

Verify configs

Run tests to verify that the base and react configs work as intended.

npm run test

FAQs

Package last updated on 10 Oct 2024

Did you know?

Socket

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.

Install

Related posts