Skip to content

Commit

Permalink
Merge pull request #120 from Commencis/renovate/commencis-eslint-conf…
Browse files Browse the repository at this point in the history
…ig-1.x

chore(deps): update dependency @commencis/eslint-config to v1.4.0
  • Loading branch information
ymehmetcan authored Nov 5, 2024
2 parents 007ce88 + 9a69a1c commit fa694d7
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 36 deletions.
6 changes: 6 additions & 0 deletions .changeset/khaki-rules-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@commencis/eslint-config': patch
'@commencis/eslint-plugin': patch
---

update dependency: @commencis/eslint-config@1.4.0
6 changes: 6 additions & 0 deletions .changeset/olive-hairs-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@commencis/eslint-config': patch
'@commencis/eslint-plugin': patch
---

fix: imports, grouping and lint issues
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"devDependencies": {
"@changesets/cli": "2.27.9",
"@commencis/commitlint-config": "1.1.0",
"@commencis/eslint-config": "1.2.1",
"@commencis/eslint-config": "1.4.0",
"@commencis/prettier-config": "1.1.0",
"@commitlint/cli": "19.5.0",
"@svitejs/changesets-changelog-github-compact": "1.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/src/configs/base.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import globals from 'globals';
import eslint from '@eslint/js';
import globals from 'globals';

import type { FlatConfigArray } from '@/types';
import { type FlatConfigArray } from '@/types';

import { importSortPluginConfig } from '@/plugins';

Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config/src/configs/next.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import baseConfig from '@/configs/base';
import prettierConfig from '@/configs/prettier';
import typescriptConfig from '@/configs/typescript';

import type { FlatConfigArray } from '@/types';
import { type FlatConfigArray } from '@/types';

import {
jsxA11yPluginConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/prettier.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

import type { FlatConfigArray } from '@/types';
import { type FlatConfigArray } from '@/types';

export default [
eslintPluginPrettierRecommended,
Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config/src/configs/react-native.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import baseConfig from '@/configs/base';
import prettierConfig from '@/configs/prettier';
import typescriptConfig from '@/configs/typescript';

import type { FlatConfigArray } from '@/types';
import { type FlatConfigArray } from '@/types';

import {
jsxA11yPluginConfig,
Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config/src/configs/react.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import baseConfig from '@/configs/base';
import prettierConfig from '@/configs/prettier';
import typescriptConfig from '@/configs/typescript';

import type { FlatConfigArray } from '@/types';
import { type FlatConfigArray } from '@/types';

import {
jsxA11yPluginConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/typescript.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tseslint from 'typescript-eslint';

import type { FlatConfigArray } from '@/types';
import { type FlatConfigArray } from '@/types';

import { typescriptRules } from '@/rules';

Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config/src/configs/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import tseslint from 'typescript-eslint';
import baseConfig from '@/configs/base';
import prettierConfig from '@/configs/prettier';
import typescriptConfig from '@/configs/typescript';

import type { FlatConfigArray } from '@/types';
import { type FlatConfigArray } from '@/types';

import { vuePluginConfig } from '@/plugins';

Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config/src/plugins/jsxA11yPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';

import { FlatConfig } from '@/types';

import { JSX_TSX_FILE_PATTERNS } from '@/constants';
import { type FlatConfig } from '@/types';

export const jsxA11yPluginConfig: FlatConfig = {
name: 'commencis/plugin:jsx-a11y',
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/src/plugins/nextPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import nextPlugin from '@next/eslint-plugin-next';

import { FlatConfig } from '@/types';

import { JSX_TSX_FILE_PATTERNS } from '@/constants';
import { type FlatConfig } from '@/types';

import { nextPluginRules } from '@/rules';

export const nextPluginConfig: FlatConfig = {
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/src/plugins/reactHooksPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import reactHooksPlugin from 'eslint-plugin-react-hooks';

import { FlatConfig } from '@/types';

import { JSX_TSX_FILE_PATTERNS } from '@/constants';
import { type FlatConfig } from '@/types';

import { reactHooksRules } from '@/rules';

export const reactHooksPluginConfig: FlatConfig = {
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/src/plugins/reactPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import reactPlugin from 'eslint-plugin-react';

import { FlatConfig } from '@/types';

import { JSX_TSX_FILE_PATTERNS } from '@/constants';
import { type FlatConfig } from '@/types';

import { reactRules } from '@/rules';

export const reactPluginConfig: FlatConfig = {
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { Linter } from '@typescript-eslint/utils/ts-eslint';

import { all, recommended } from '@/configs';

import rules from '@/rules';

import packageJson from '../package.json';
import { all, recommended } from './configs';

const plugin = {
meta: {
Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-plugin/src/rules/copyright-text.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { TSESTree } from '@typescript-eslint/utils';

import { createRule, getCopyrightText } from '@/utils';

import { DEFAULT_START_YEAR } from '@/constants';
import { createRule, getCopyrightText } from '@/utils';

type RuleOptions = {
startYear?: number;
Expand Down
18 changes: 6 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa694d7

Please sign in to comment.