Skip to content

Commit

Permalink
fix config naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bsokol-wl committed May 10, 2024
1 parent 8e46c5c commit 2dab2ae
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { javaScriptFiles } from "../utils/patterns.ts";
const config: Linter.FlatConfig[] = await concat(
js.configs.recommended as Linter.FlatConfig,
{
name: "Workleap/Core",
name: "workleap/core",
files: javaScriptFiles,
languageOptions: {
globals: {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { reactTestFiles, testFiles } from "../utils/patterns.ts";

const config: Linter.FlatConfig[] = await concat(
{
name: "Workleap/Jest",
name: "workleap/jest",
files: [...testFiles, ...reactTestFiles],
...jestPlugin.configs["flat/recommended"],
rules: {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/jsx-a11y.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { sourceFiles } from "../utils/patterns.ts";

const config: Linter.FlatConfig[] = await concat(
{
name: "Workleap/JsxA11y",
name: "workleap/jsx-a11y",
plugins: { "jsx-a11y": jsxA11yPlugin },
languageOptions: {
parserOptions: jsxA11yPlugin.configs.recommended.parserOptions
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { mdxFiles } from "../utils/patterns.ts";

const config: Linter.FlatConfig[] = [
{
name: "Workleap/MDX",
name: "workleap/mdx",
...mdxPlugin.flat,
files: mdxFiles,
processor: mdxPlugin.createRemarkProcessor({
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import packageJsonPluginRecommended from "eslint-plugin-package-json/configs/rec
const config: Linter.FlatConfig[] = await concat(
{
...(packageJsonPluginRecommended as Linter.FlatConfig),
name: "Workleap/Package.json",
name: "workleap/package-json",
files: ["package.json"],
rules: {
...packageJsonPluginRecommended.rules,
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/lib/config/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { sourceFiles } from "../utils/patterns.ts";

const config: Linter.FlatConfig[] = await concat(
{
name: "Workleap/React",
name: "workleap/react",
files: sourceFiles,
plugins: {
react: reactPlugin
Expand Down Expand Up @@ -81,7 +81,7 @@ const config: Linter.FlatConfig[] = await concat(
}
},
{
name: "Workleap/React",
name: "workleap/react",
...reactHooksPlugin.configs.recommended,
plugins: {
"react-hooks": reactHooksPlugin
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/lib/config/storybook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { mainStorybookFiles, storybookFiles } from "../utils/patterns.ts";

const config: Linter.FlatConfig[] = await concat(
{
name: "Workleap/Storybook",
name: "workleap/storybook",
files: storybookFiles,
plugins: { "storybook": storybookPlugin },
rules: {
Expand All @@ -17,7 +17,7 @@ const config: Linter.FlatConfig[] = await concat(
}
},
{
name: "Workleap/Storybook",
name: "workleap/storybook",
files: mainStorybookFiles,
plugins: { "storybook": storybookPlugin },
rules: {
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/lib/config/testing-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { reactTestFiles, testFiles } from "../utils/patterns.ts";

const config: Linter.FlatConfig[] = await concat(
{
name: "Workleap/TestingLibrary",
name: "workleap/testing-library",
files: reactTestFiles,
plugins: {
"testing-library": testingLibraryPlugin
},
rules: testingLibraryPlugin.configs.react.rules
},
{
name: "Workleap/TestingLibrary",
name: "workleap/testing-library",
files: testFiles,
plugins: {
"testing-library": testingLibraryPlugin
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config: Linter.FlatConfig[] = await concat(
// @ts-expect-error ESLint and TS-ESLint types don't match, even though objects are the same shape
tseslint.configs.recommended,
{
name: "Workleap/TypeScript",
name: "workleap/typescript",
files: typeScriptFiles,
plugins: {
"@typescript-eslint": tseslint.plugin
Expand Down

0 comments on commit 2dab2ae

Please sign in to comment.