Skip to content

Commit

Permalink
refactor: eslint (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: Almanov Nikita <[email protected]>
  • Loading branch information
github-actions[bot] and nikkeyl authored Aug 27, 2024
1 parent 0650e16 commit 5e75b6c
Show file tree
Hide file tree
Showing 3 changed files with 689 additions and 249 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,
]);
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@archoleat/commitlint-define-config": "file:",
"@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 @@ -71,23 +71,24 @@
"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",
"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 5e75b6c

Please sign in to comment.