eslint-plugin-raonwiz-rules
v1.0.0
Published
RAONWIZ ESLint preset.
Downloads
8
Maintainers
Readme
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',
' */'
]
} ]
}