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-config-vaadin
Advanced tools
ESLint shareable config for the Vaadin JavaScript style guide
npm install --save-dev eslint-config-vaadin
or
yarn add --dev eslint-config-vaadin
After you have installed eslint-config-vaadin
, you should be able to extend the following configs in the extends
section of your ESLint configuration.
A config that contains the JavaScript linting rules.
This config requires eslint-config-vaadin/prettier
that must be added the very last i.e. after any other configs.
{
"extends": [
"eslint-config-vaadin/javascript",
// ... any other configs
"eslint-config-vaadin/prettier"
]
}
A config that contains the TypeScript linting rules.
This config is designed on top of the eslint-config-vaadin/javascript
config so you don't have to enable the JavaScript config when using this one.
This config requires tsconfig.json
at the project root with the include
section that includes all the files that are referenced in your project. If your tsconfig.json
is located somewhere other than the project root, you can use the parserOptions.project
property.
This config requires eslint-config-vaadin/prettier
that must be added the very last i.e. after any other configs.
{
"parserOptions": {
"project": "path/to/your/tsconfig.json"
},
"extends": [
"eslint-config-vaadin/typescript",
// ... any other configs
"eslint-config-vaadin/prettier"
]
}
A config that contains the linting rules for tagged Lit templates.
This config is designed on top of the eslint-plugin-lit
plugin.
This config is supposed to be used in combination with eslint-config-vaadin/javascript
or eslint-config-vaadin/typescript
.
{
"extends": [
"eslint-config-vaadin/lit"
]
}
A config that contains the linting rules for imports.
This config is designed on top of the eslint-plugin-import
plugin. Please note that adding this config to your project can significantly affect linting performance.
This config is supposed to be used in combination with eslint-config-vaadin/javascript
or eslint-config-vaadin/typescript
.
{
"extends": [
"eslint-config-vaadin/imports"
]
}
A config that overrides some linting rules and sets up the eslint-plugin-chai-friendly
plugin for test files.
This config is supposed to be used in combination with eslint-config-vaadin/javascript
or eslint-config-vaadin/typescript
.
{
"extends": [
"eslint-config-vaadin/testing"
]
}
{
"extends": [
"eslint-config-vaadin/javascript",
"eslint-config-vaadin/lit",
"eslint-config-vaadin/prettier"
]
}
{
"extends": [
"eslint-config-vaadin/typescript",
"eslint-config-vaadin/lit",
"eslint-config-vaadin/prettier"
]
}
Apache License 2.0
FAQs
Vaadin base JS/TS ESLint config
We found that eslint-config-vaadin 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.