Skip to content

Commit 6c420b2

Browse files
committed
Updated eslint config files.
Added eslint packages.
1 parent 7cbca89 commit 6c420b2

File tree

43 files changed

+629
-364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+629
-364
lines changed

package-lock.json

Lines changed: 68 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/doxdox-cli/.eslintrc

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/doxdox-cli/eslint.config.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import js from '@eslint/js';
2+
3+
import tseslint from 'typescript-eslint';
4+
import typescriptParser from '@typescript-eslint/parser';
5+
import typescriptPlugin from '@typescript-eslint/eslint-plugin';
6+
7+
export default [
8+
js.configs.recommended,
9+
tseslint.configs.eslintRecommended,
10+
...tseslint.configs.recommended,
11+
{
12+
files: ['**/*.ts', '**/*.js'],
13+
languageOptions: {
14+
parser: typescriptParser,
15+
globals: {
16+
process: 'readonly'
17+
}
18+
},
19+
plugins: {
20+
typescriptPlugin: typescriptPlugin
21+
},
22+
rules: {
23+
'@typescript-eslint/no-explicit-any': 'error',
24+
'@typescript-eslint/no-unused-vars': 'error',
25+
'no-warning-comments': [
26+
'warn',
27+
{ terms: ['todo'], location: 'start' }
28+
],
29+
'no-magic-numbers': [
30+
'error',
31+
{
32+
ignore: [-1, 0, 1]
33+
}
34+
]
35+
}
36+
}
37+
];

packages/doxdox-cli/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"simple-update-notifier": "2.0.0"
2424
},
2525
"devDependencies": {
26+
"@eslint/js": "9.0.0",
2627
"@types/jest": "29.5.12",
2728
"@types/node": "20.12.7",
2829
"@typescript-eslint/eslint-plugin": "7.6.0",
@@ -33,13 +34,14 @@
3334
"rimraf": "5.0.5",
3435
"ts-jest": "29.1.2",
3536
"ts-jest-resolver": "2.0.1",
36-
"typescript": "5.4.5"
37+
"typescript": "5.4.5",
38+
"typescript-eslint": "7.6.0"
3739
},
3840
"scripts": {
3941
"test": "npx cross-env@7 NODE_OPTIONS=--experimental-vm-modules jest --runInBand --passWithNoTests",
4042
"test-update": "npx cross-env@7 NODE_OPTIONS=--experimental-vm-modules jest --runInBand --passWithNoTests --updateSnapshot",
4143
"build": "rimraf dist/ && tsc && chmod +x ./dist/src/index.js",
42-
"lint": "eslint 'src/**/*.ts'"
44+
"lint": "eslint"
4345
},
4446
"jest": {
4547
"collectCoverage": true,

packages/doxdox-core/.eslintrc

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)