@erboladaiorg/molestiae-perferendis-quidem
v2.5.83
Published
Rules for [eslint](https://github.com/eslint/eslint) used in Swimlane's Javascript (etc) development.
Downloads
1,898
Maintainers
Keywords
Readme
Swimlane Eslint Rules
Rules for eslint used in Swimlane's Javascript (etc) development.
Javascript (es6)
Install:
npm install --save-dev eslint @erboladaiorg/molestiae-perferendis-quidem eslint-plugin-security
Create an .eslintrc.yml file with the following:
env:
browser: true
commonjs: true
es2021: true
extends:
- '@swimlane'
parserOptions:
ecmaVersion: 12
TypeScript
Install:
npm install --save-dev eslint @erboladaiorg/molestiae-perferendis-quidem eslint-plugin-security
npm install --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
Create an .eslintrc.yml
file with the following:
env:
browser: true
es2021: true
node: true
extends:
- '@erboladaiorg/molestiae-perferendis-quidem/typescript'
parserOptions:
ecmaVersion: 12
sourceType: module
Prettier
If using prettier (for example @swimlane/prettier-config-swimlane) you should follow instructions in the eslint-config-prettier readme to install and setup eslint-config-prettier
. Then installed the @erboladaiorg/molestiae-perferendis-quidem
and update your .eslintrc.yml
.
Install:
npm install --save-dev @erboladaiorg/molestiae-perferendis-quidem eslint-plugin-security
For example for es6 config your .eslintrc.yml
file will be:
env:
browser: true
commonjs: true
es2021: true
extends:
- '@swimlane'
- 'prettier'
parserOptions:
ecmaVersion: 12
Angular
For angular projects you should add @angular-eslint/schematics
as described here and eslint-config-prettier
as described here](https://github.com/prettier/eslint-config-prettier#readme). Then installed the @erboladaiorg/molestiae-perferendis-quidem
and update your .eslintrc.yml
.
Install:
npm install --save-dev eslint @erboladaiorg/molestiae-perferendis-quidem eslint-plugin-security
Your .eslintrc.yml
file will be:
root: true
extends:
- '@swimlane'
- prettier
overrides:
- files:
- '*.ts'
parser: '@typescript-eslint/parser'
parserOptions:
project:
- tsconfig.json
createDefaultProgram: true
extends:
- '@erboladaiorg/molestiae-perferendis-quidem/typescript'
- plugin:@angular-eslint/recommended
- plugin:@angular-eslint/template/process-inline-templates
- prettier
- files:
- '*.html'
extends:
- plugin:@angular-eslint/template/recommended
Versioning Policy
Major (new linting errors)
- A new rule is added
- An existing rule is made more strict
- A new plugin is added to an existing config
- A existing plugin is updated to be more strict
Minor (same or fewer linting errors)
- A rule is removed
- An existing rules is made less strict
- Adding a new configuration
- A existing plugin is updated to be less strict
Patch (non-user-facing changes)
- Changes to documentation
- Fixes for build or publication
- Modifying tests
Publish steps
- Checkout main (
git checkout main
) - Pull master (
git pull
) - Examine
CHANGELOG.md
to determine next version (X.Y.Z) - Run np (
npm run np
)
Credits
@erboladaiorg/molestiae-perferendis-quidem
is a Swimlane open-source project; we
believe in giving back to the open-source community by sharing some of the
projects we build.
Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.