Skip to content

Commit

Permalink
refactor: eslint (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and nikkeyl authored Aug 27, 2024
1 parent 27ec3c2 commit 9085705
Show file tree
Hide file tree
Showing 3 changed files with 729 additions and 297 deletions.
14 changes: 8 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { defineFlatConfig } from 'eslint-define-config';
import { extend } from '@archoleat/eslint-flat-compatibility';

import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
import globals from 'globals';
import typescriptParser from '@typescript-eslint/parser';

import prettierConfig from 'eslint-config-prettier';
import unicornPlugin from 'eslint-plugin-unicorn';

import parser from '@typescript-eslint/parser';

export default defineFlatConfig([
...extend(
Expand All @@ -13,14 +15,14 @@ export default defineFlatConfig([
'plugin:import/recommended',
'plugin:import/typescript',
),
eslintPluginUnicorn.configs['flat/recommended'],
unicornPlugin.configs['flat/recommended'],
{
languageOptions: {
parser,
ecmaVersion: 'latest',
globals: {
...globals.node,
},
parser: typescriptParser,
parserOptions: {
project: 'tsconfig.json',
},
Expand All @@ -46,5 +48,5 @@ export default defineFlatConfig([
'unicorn/string-content': 'error',
},
},
eslintConfigPrettier,
prettierConfig,
]);
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@archoleat/commitlint-define-config": "^1.0.10",
"@archoleat/eslint-flat-compatibility": "^1.1.7",
"@archoleat/prettier-define-config": "^1.0.1",
"@archoleat/semantic-release-define-config": "^1.1.14",
"@archoleat/semantic-release-define-config": "^1.1.15",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/types": "^19.0.3",
Expand All @@ -69,24 +69,25 @@
"conventional-changelog-conventionalcommits": "^8.0.0",
"editorconfig-checker": "^5.1.8",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unicorn": "^55.0.0",
"git-pull-run": "^1.4.0",
"globals": "^15.9.0",
"husky": "^9.1.4",
"husky": "^9.1.5",
"lint-staged": "^15.2.9",
"next": "^14.2.5",
"next": "^14.2.6",
"prettier": "^3.3.3",
"remark": "15.0.1",
"remark-cli": "^12.0.1",
"remark-preset-lint-consistent": "^6.0.0",
"remark-preset-lint-markdown-style-guide": "^6.0.0",
"remark-preset-lint-recommended": "^7.0.0",
"rollup": "^4.21.0",
"rollup": "^4.21.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1",
"semantic-release": "^24.1.0",
Expand Down
Loading

0 comments on commit 9085705

Please sign in to comment.