Skip to content

Commit

Permalink
refactor(eslint): add compatibility function (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl authored Apr 2, 2024
1 parent 9bba31e commit 24e00b4
Show file tree
Hide file tree
Showing 3 changed files with 270 additions and 197 deletions.
11 changes: 2 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import { resolve } from 'node:path';

import { compatibility } from '@archoleat/eslint-flat-compatibility';
import { defineFlatConfig } from 'eslint-define-config';
import { FlatCompat } from '@eslint/eslintrc';

import globals from 'globals';
import typescriptParser from '@typescript-eslint/parser';
import unicorn from 'eslint-plugin-unicorn';

const compat = new FlatCompat({
baseDirectory: resolve(),
resolvePluginsRelativeTo: resolve(),
});

export default defineFlatConfig([
...compat.extends(
...compatibility(
'airbnb-typescript/base',
'plugin:import/recommended',
'plugin:import/typescript',
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@
},
"devDependencies": {
"@archoleat/commitlint-define-config": "^1.0.2",
"@archoleat/eslint-flat-compatibility": "^1.0.0",
"@archoleat/semantic-release-define-config": "^1.1.1",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^19.1.0",
"@rollup/plugin-typescript": "^11.1.6",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"@vitest/coverage-v8": "^1.4.0",
"conventional-changelog-conventionalcommits": "^7.0.2",
"cz-conventional-changelog": "^3.3.0",
Expand All @@ -91,7 +92,7 @@
"remark-preset-lint-consistent": "^5.1.2",
"remark-preset-lint-markdown-style-guide": "^5.1.3",
"remark-preset-lint-recommended": "^6.1.3",
"rollup": "^4.13.1",
"rollup": "^4.13.2",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.1",
"semantic-release": "^23.0.6",
Expand Down
Loading

0 comments on commit 24e00b4

Please sign in to comment.