Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@walgreenshealth/test-eslint-plugin
Advanced tools
This plugin is mostly a set of configurations for ESLint. It consolidates a bunch of open source plugins and has _a lot_ of rules.
This plugin is mostly a set of configurations for ESLint. It consolidates a bunch of open source plugins and has a lot of rules.
It includes the following configs:
walgreenshealth/recommended
@walgreenshealth/typescript
@walgreenshealth/storybook
@walgreenshealth/jest
And the following custom rules:
@walgreenshealth/custom-element-name
makes sure name of a custom element declared in @customElement(walgreenshealth-whatever)
matches its file name@walgreenshealth/element-export-name
makes sure the element's class name matches the file nameHere's a simple example of how to use it (.eslint.config.json
):
{
"plugins": ["@walgreenshealth/eslint-plugin"],
"extends": ["plugin:@walgreenshealth/recommended"],
"overrides": [
{
files: ["*.stories.js"],
extends: [
"plugin:@walgreenshealth/recommended",
"plugin:@walgreenshealth/storybook",
],
},
{
files: ["*.test.js"],
extends: [
"plugin:@walgreenshealth/recommended",
"plugin:@walgreenshealth/storybook",
],
}
};
/* eslint sonarjs/no-duplicate-string: "off" */
"use strict";
const typescriptParserOptions = {
project: "tsconfig.eslint.json",
tsconfigRootDir: __dirname,
};
module.exports = {
parserOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
extends: ["plugin:@walgreenshealth/recommended"],
ignorePatterns: [
"**/node_modules/**",
"**/*.min.js",
"**/dist/**",
"**/coverage/**",
"**/reports/**",
"**/.stryker-tmp/**",
"**/_templates/**",
"stryker.conf.json",
],
overrides: [
{
files: ["*.ts"],
extends: [
"plugin:@walgreenshealth/recommended",
"plugin:@walgreenshealth/typescript",
],
parserOptions: typescriptParserOptions,
},
{
files: ["**/*.stories.ts"],
extends: [
"plugin:@walgreenshealth/recommended",
"plugin:@walgreenshealth/typescript",
"plugin:@walgreenshealth/storybook",
],
parserOptions: typescriptParserOptions,
},
{
files: ["**/*.test.ts"],
extends: [
"plugin:@walgreenshealth/recommended",
"plugin:@walgreenshealth/typescript",
"plugin:@walgreenshealth/jest",
],
parserOptions: typescriptParserOptions,
},
{
files: ["**/*.cjs"],
parserOptions: {
sourceType: "script",
},
env: {
node: true,
},
extends: ["plugin:@walgreenshealth/recommended"],
rules: {
"import/no-commonjs": "off",
"import/no-extraneous-dependencies": [
"error",
{ devDependencies: true },
],
},
},
{
files: ["scripts/*.mjs"],
parserOptions: {
sourceType: "module",
},
env: {
node: true,
},
extends: ["plugin:@walgreenshealth/recommended"],
rules: {
"no-console": "off",
"import/no-extraneous-dependencies": [
"error",
{ devDependencies: true },
],
},
},
],
plugins: ["@walgreenshealth/eslint-plugin"],
};
FAQs
This plugin is mostly a set of configurations for ESLint. It consolidates a bunch of open source plugins and has _a lot_ of rules.
The npm package @walgreenshealth/test-eslint-plugin receives a total of 3 weekly downloads. As such, @walgreenshealth/test-eslint-plugin popularity was classified as not popular.
We found that @walgreenshealth/test-eslint-plugin 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.