New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@regionhalland/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@regionhalland/eslint-config

Shared ESLint config for Region Halland TypeScript projects

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-90.32%
Maintainers
0
Weekly downloads
 
Created
Source

@regionhalland/eslint-config

To use this package, the following packages must be installed in the consuming project.

PackageVersion
ESLint^9.15.0
TypeScript^4.9.5 or ^5
Prettier^3.1.1

Recommended installation:

yarn add -D eslint typescript prettier @regionhalland/eslint-config

Exporting configs:

NameDescription
standardStandard config for React project
recommendedContains standard config with addition of the plugin simple-import-sort
strictContains recommended config with additional strict rules
nodeConfig for Node.js project (using TypeScript)
commonJsConfig for CommonJs project
configsExports only individual config objects without addition of recommended configs (ESLint, @typescript-eslint)
utilsUtility for ESLint rules merging

Sample configurations:

package.json:

// package.json
{
	...
	"script": {
		"lint": "eslint ./src",
		"lint:fix": "eslint ./src --fix"
	}
	...
}

React application:

// eslint.config.js (ESLint flat config)
import rhEslint from '@regionhalland/eslint-config';

/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
export default [
	...rhEslint.recommended,

	// Custom config
	{
		name: 'react-application',
		files: ['**/*.ts', '**/*.tsx'],
		rules: {
			'no-restricted-imports': [
				'error',
				{
					patterns: ['@/features/*/*'],
				},
			],
		},
	},
];

Node.js application:

// eslint.config.js (ESLint flat config)
const rhEslint = require('@regionhalland/eslint-config');

/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
module.exports = [
	...rhEslint.node,

	// Custom config
	{
		name: 'nodejs-application',
		files: ['**/*.js'],
		rules: {
			'no-undef': 'off',
		},
	},
];

Keywords

FAQs

Package last updated on 21 Jan 2025

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc