eslint-plugin-raonwiz-rules

1.0.0 • Public • Published

RAONWIZ ESLint Plugins

Usage

npm i --save-dev eslint-plugin-raonwiz-rules

Configure ESLint with a .eslintrc file using the following contents:

{
	// ...
	plugins: [
		// ...
		'raonwiz-rules' // Add the plugin to the linter.
	],
	rules: {
		'raonwiz-rules/no-relative-imports': 'error',
		'raonwiz-rules/license-header': [ 'error', {
			headerLines: [
				'/**',
				' * @license Copyright (c) 2003-2022, RAONWIZ DevTeam. All rights reserved.',
				' * For licensing, see LICENSE.md',
				' */'
			]
		} ]
		// ...
	}
	// ...
}

Rules

no-relative-imports

license-header

This rule checks if each file starts with proper @license block comment. It requires configuration:

rules: {
	'raonwiz-rules/license-header': [ 'error', {
		headerLines: [
			'/**',
			' * @license Copyright (c) 2003-2022, RAONWIZ DevTeam. All rights reserved.',
			' * For licensing, see LICENSE.md',
			' */'
		]
	} ]
}

Changelog

Releasing package

Changelog

Publishing

Package Sidebar

Install

npm i eslint-plugin-raonwiz-rules

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

11.3 kB

Total Files

7

Last publish

Collaborators

  • raonwiz_solution