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-atomic-design
Advanced tools
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-atomic-design
:
$ npm install eslint-plugin-atomic-design --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-atomic-design
globally.
Add atomic-design
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"atomic-design"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"atomic-design/hierarchical-import": 2
}
}
This is the only rule of this plugin.
Array<RegExpString>
Matching patterns ignore both target file paths and importing paths.
default: ['node_modules\/\\w']
Array<String|String[]>
Components levels in your projects listing up in order of size. Additionally this can be defined the same level components as Array of strings:
{
levels: [['elements', 'atoms'], 'molecules', ['organisms', 'sections']],
},
default: ['atoms', 'molecules', 'organisms', 'templates', 'pages']
Array<RegExpString>
Patterns should contain an capturing group (\\w+)
:
{
pathPatterns: ['components/(\\w+)/', 'routes/(\\w+)/'],
},
or <DefaultParser>
takes the last match of the one of levels
in import paths.
default: <DefaultParser>
© RyoNkmr
FAQs
ESLint rules for Atomic Designed projects
The npm package eslint-plugin-atomic-design receives a total of 2,586 weekly downloads. As such, eslint-plugin-atomic-design popularity was classified as popular.
We found that eslint-plugin-atomic-design demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.