Skip to content

Commit 57bb23f

Browse files
committed
Major refactoring to improve tool use
1 parent a01d448 commit 57bb23f

16 files changed

Lines changed: 3849 additions & 1488 deletions

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
build
3+
dist
4+
coverage

.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
export default {
2+
parser: '@typescript-eslint/parser',
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'prettier',
7+
'plugin:prettier/recommended',
8+
],
9+
plugins: ['@typescript-eslint', 'prettier'],
10+
env: {
11+
node: true,
12+
es6: true,
13+
},
14+
parserOptions: {
15+
ecmaVersion: 2020,
16+
sourceType: 'module',
17+
},
18+
rules: {
19+
'prettier/prettier': 'error',
20+
'@typescript-eslint/explicit-function-return-type': 'warn',
21+
'@typescript-eslint/no-explicit-any': 'warn',
22+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
23+
'no-console': ['warn', { allow: ['warn', 'error'] }],
24+
},
25+
};

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
build
3+
dist
4+
coverage
5+
*.json
6+
*.md

.prettierrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
semi: true,
3+
trailingComma: 'all',
4+
singleQuote: true,
5+
printWidth: 100,
6+
tabWidth: 2,
7+
endOfLine: 'auto',
8+
};

eslint.config.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import prettierPlugin from 'eslint-plugin-prettier';
4+
5+
export default [
6+
eslint.configs.recommended,
7+
...tseslint.configs.recommended,
8+
{
9+
files: ['**/*.{js,ts}'],
10+
ignores: ['node_modules/**', 'build/**', 'dist/**', 'coverage/**'],
11+
languageOptions: {
12+
ecmaVersion: 2020,
13+
sourceType: 'module',
14+
parser: tseslint.parser,
15+
parserOptions: {
16+
project: './tsconfig.json',
17+
},
18+
},
19+
plugins: {
20+
'@typescript-eslint': tseslint.plugin,
21+
'prettier': prettierPlugin,
22+
},
23+
rules: {
24+
'prettier/prettier': 'error',
25+
'@typescript-eslint/explicit-function-return-type': 'warn',
26+
'@typescript-eslint/no-explicit-any': 'warn',
27+
'@typescript-eslint/no-unused-vars': ['error', {
28+
argsIgnorePattern: '^_',
29+
varsIgnorePattern: '^_'
30+
}],
31+
'no-console': ['warn', { allow: ['warn', 'error'] }],
32+
},
33+
},
34+
];

0 commit comments

Comments
 (0)