Skip to content

Commit

Permalink
ci: remove perfectionist eslint plugin fp-137 (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove authored Jun 20, 2024
1 parent 1eae65a commit 1849beb
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 35 deletions.
14 changes: 0 additions & 14 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { resolve as tsResolver } from 'eslint-import-resolver-typescript';
import importPlugin from 'eslint-plugin-import';
import jsdoc from 'eslint-plugin-jsdoc';
import perfectionist from 'eslint-plugin-perfectionist';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
import sonarjs from 'eslint-plugin-sonarjs';
import unicorn from 'eslint-plugin-unicorn';
import globals from 'globals';
Expand Down Expand Up @@ -116,17 +115,6 @@ const perfectionistConfig = {
rules: perfectionist.configs['recommended-natural'].rules,
};

/** @type {FlatConfig} */
const simpleImportSortConfig = {
plugins: {
'simple-import-sort': simpleImportSort,
},
rules: {
'simple-import-sort/exports': ['error'],
'simple-import-sort/imports': ['error'],
},
};

/** @type {FlatConfig} */
const typescriptPlugin = {
languageOptions: {
Expand Down Expand Up @@ -198,7 +186,6 @@ const overridesConfigs = [
files: ['tests/**/*.test.js'],
rules: {
'@typescript-eslint/no-floating-promises': ['off'],
'perfectionist/sort-imports': ['off'],
'sonarjs/cognitive-complexity': ['off'],
},
},
Expand All @@ -220,7 +207,6 @@ const config = [
sonarConfig,
unicornConfig,
perfectionistConfig,
simpleImportSortConfig,
mainRulesConfig,
...overridesConfigs,
];
Expand Down
10 changes: 0 additions & 10 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"eslint-plugin-import": "2.29.0",
"eslint-plugin-jsdoc": "46.9.0",
"eslint-plugin-perfectionist": "2.5.0",
"eslint-plugin-simple-import-sort": "10.0.0",
"eslint-plugin-sonarjs": "0.23.0",
"eslint-plugin-unicorn": "49.0.0",
"globals": "13.24.0",
Expand Down
8 changes: 0 additions & 8 deletions src/packages.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
declare module 'eslint-plugin-simple-import-sort' {
import { type ESLint } from 'eslint';

const plugin: ESLint.Plugin;

export default plugin;
}

declare module 'eslint-plugin-perfectionist' {
import { type Linter } from 'eslint';

Expand Down
3 changes: 1 addition & 2 deletions tests/get-form-control-payload.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { fireEvent, waitFor } from '@testing-library/dom';
import { deepEqual, equal, throws } from 'node:assert/strict';
import { beforeEach, describe, test } from 'node:test';

import { fireEvent, waitFor } from '@testing-library/dom';

import { FormPayloadError, getFormControlPayload } from '../src/index.js';
import { VALUE_AS_ARRAY_IDENTIFIER } from '../src/libs/constants/constants.js';
import { ControlElementType } from '../src/libs/enums/enums.js';
Expand Down

0 comments on commit 1849beb

Please sign in to comment.