Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.
/ browtest Public archive
generated from archoleat/repo-template

Commit

Permalink
refactor: eslint (#237)
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 a161af1 commit 8d6b075
Show file tree
Hide file tree
Showing 3 changed files with 577 additions and 137 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 { extend } from '@archoleat/eslint-flat-compatibility';
import { defineFlatConfig } from 'eslint-define-config';

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 @@ -47,5 +49,5 @@ export default defineFlatConfig([
'unicorn/string-content': 'error',
},
},
eslintConfigPrettier,
prettierConfig,
]);
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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 @@ -73,15 +73,16 @@
"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",
"playwright": "^1.46.1",
"prettier": "^3.3.3",
Expand Down
Loading

0 comments on commit 8d6b075

Please sign in to comment.