Skip to content

Commit 01a3392

Browse files
refactor(architecture): rename define-config to index (#23)
1 parent dd956ed commit 01a3392

File tree

9 files changed

+163
-149
lines changed

9 files changed

+163
-149
lines changed

.github/workflows/codeql.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@ on:
55
branches:
66
- main
77
paths:
8-
- index.d.ts
9-
- index.js
10-
- index.ts
118
- package.json
9+
- src/index.ts
1210
push:
1311
branches:
1412
- main
1513
paths:
16-
- index.d.ts
17-
- index.js
18-
- index.ts
1914
- package.json
15+
- src/index.ts
2016

2117
permissions:
2218
actions: read

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineFlatConfig } from 'eslint-define-config';
22
import { extend } from '@archoleat/eslint-flat-compatibility';
33

4+
import eslintConfigPrettier from 'eslint-config-prettier';
45
import globals from 'globals';
56
import typescriptParser from '@typescript-eslint/parser';
67
import unicorn from 'eslint-plugin-unicorn';
@@ -14,13 +15,15 @@ export default defineFlatConfig([
1415
unicorn.configs['flat/recommended'],
1516
{
1617
languageOptions: {
18+
ecmaVersion: 'latest',
1719
globals: {
1820
...globals.node,
1921
},
2022
parser: typescriptParser,
2123
parserOptions: {
2224
project: 'tsconfig.json',
2325
},
26+
sourceType: 'module',
2427
},
2528
settings: {
2629
'import/resolver': {
@@ -40,4 +43,5 @@ export default defineFlatConfig([
4043
'unicorn/string-content': 'error',
4144
},
4245
},
46+
eslintConfigPrettier,
4347
]);

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default {
22
'**/*': 'prettier --write',
3-
'define-config.ts': 'eslint --fix',
3+
'src/index.ts': 'eslint --fix',
44
};

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"lint:editorconfig": "editorconfig-checker",
5757
"lint:formatting": "prettier . --check",
5858
"lint:md": "remark . --quiet",
59-
"lint:ts": "eslint define-config.ts --fix",
59+
"lint:ts": "eslint src/index.ts --fix",
6060
"prettify": "prettier . --write",
6161
"commit": "cz"
6262
},
@@ -65,8 +65,8 @@
6565
},
6666
"devDependencies": {
6767
"@archoleat/commitlint-define-config": "file:",
68-
"@archoleat/eslint-flat-compatibility": "^1.1.0",
69-
"@archoleat/semantic-release-define-config": "^1.1.1",
68+
"@archoleat/eslint-flat-compatibility": "^1.1.3",
69+
"@archoleat/semantic-release-define-config": "^1.1.2",
7070
"@commitlint/cli": "^19.2.1",
7171
"@commitlint/config-conventional": "^19.1.0",
7272
"@rollup/plugin-typescript": "^11.1.6",
@@ -80,6 +80,7 @@
8080
"editorconfig-checker": "^5.1.5",
8181
"eslint": "^8.57.0",
8282
"eslint-config-airbnb-typescript": "^18.0.0",
83+
"eslint-config-prettier": "^9.1.0",
8384
"eslint-define-config": "^2.1.0",
8485
"eslint-import-resolver-typescript": "^3.6.1",
8586
"eslint-plugin-import": "^2.29.1",
@@ -97,7 +98,7 @@
9798
"rollup-plugin-dts": "^6.1.0",
9899
"rollup-plugin-esbuild": "^6.1.1",
99100
"semantic-release": "^23.0.7",
100-
"typescript": "^5.4.3",
101+
"typescript": "^5.4.4",
101102
"vitest": "^1.4.0"
102103
}
103104
}

0 commit comments

Comments
 (0)