Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
eslint-plugin-decorator-position
Advanced tools
An ESlint plugin that provides set of rules enforcing consistent decorator positions
yarn add --dev eslint-plugin-decorator-position
Or
npm install --save-dev eslint-plugin-decorator-position
.eslintrc.js
// .eslintrc.js
module.exports = {
parser: 'babel-eslint',
// parser: '@typescript-eslint/parser',
plugins: ['decorator-position'],
extends: [
'plugin:decorator-position/ember' // or other configuration
],
rules: {
// override rule settings from extends config here
// 'decorator-position/decorator-position': ['error', { /* your config */ }]
}
};
Name | Description | |
---|---|---|
base | contains no rules settings, but the basic eslint configuration suitable for any project. You can use it to configure rules as you wish. | |
:hamster: | ember | extends the base configuration by enabling the recommended rules for ember projects. |
Rules are grouped by category to help you understand their purpose. Each rule has emojis denoting:
--fix
command line optionRule ID | Description | |
---|---|---|
:white_check_mark::wrench: | decorator-position | Enforces consistent decorator position on properties and methods |
For the simplified list of rules, go here.
If you have any suggestions, ideas, or problems, feel free to create an issue, but first please make sure your question does not repeat previous ones.
lib/rules/new-rule.js
(implementation, see no-proxies for an example)docs/rules/new-rule.md
(documentation, start from the template -- raw, rendered)tests/lib/rules/new-rule.js
(tests, see no-proxies for an example)yarn update
to automatically update the README and other files (and re-run this if you change the rule name or description)yarn test
yarn lint
(yarn lint:js --fix
can fix many errors)Note that new rules should not immediately be added to the recommended configuration, as we only consider such breaking changes during major version updates.
To run smoke tests:
./scripts/smoke-test.sh
it will prompt you with which test to run.
To create a reproduction,
smoke-tests/issue-reproductions/
named ofter the issue number.
example: smoke-tests/issue-reproductions/196/
*
if it doesn't matter for your particular test)How does this project interpret patch / minor / breaking changes?
See the LICENSE file for license rights and limitations (MIT).
FAQs
ESLint plugin for enforcing decorator position
The npm package eslint-plugin-decorator-position receives a total of 32,218 weekly downloads. As such, eslint-plugin-decorator-position popularity was classified as popular.
We found that eslint-plugin-decorator-position demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.