Skip to content

Commit 66baca6

Browse files
Total Overhaul (but with all the same fixtures!) (Kong#248)
see Kong#248 and the commits therein for more context. Essentially: - the original client fixtures were unchanged, which hopefully means the - all source code is now in strict mode TypeScript - tests are now all in jest - the file structure was reorganized so that everything for a particular client is in one place - the CLI is updated and now using yargs - all dependencies were updated and some (i.e. `format.utils`) were able to be removed entirely - more work left to do (including CI with GitHub Actions, for example), but this is a start
1 parent 7fd160c commit 66baca6

1,241 files changed

Lines changed: 19796 additions & 14722 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,15 @@ charset = utf-8
99
trim_trailing_whitespace = true
1010
insert_final_newline = true
1111

12+
[targets/**/fixtures/*]
13+
insert_final_newline = false
14+
15+
[**/http1.1/fixtures/*]
16+
end_of_line = crlf
17+
insert_final_newline = false
18+
19+
[**/http1.1/fixtures/jsonObj-multiline]
20+
end_of_line = unset
21+
1222
[*.md]
1323
trim_trailing_whitespace = false

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src/targets/**/fixtures
2+
dist
3+
bin

.eslintrc.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/** @type { import('eslint').Linter.Config } */
2+
module.exports = {
3+
parser: '@typescript-eslint/parser',
4+
env: {
5+
node: true,
6+
},
7+
parserOptions: {
8+
project: 'tsconfig.json',
9+
},
10+
extends: [
11+
'eslint:recommended',
12+
'plugin:@typescript-eslint/recommended',
13+
'plugin:jest/all',
14+
'plugin:jest-formatting/strict',
15+
'plugin:eslint-comments/recommended',
16+
'prettier',
17+
],
18+
plugins: ['eslint-comments', 'simple-import-sort', 'jest', 'jest-formatting'],
19+
rules: {
20+
'prefer-template': 'error',
21+
'no-else-return': 'error',
22+
'@typescript-eslint/no-explicit-any': 'off',
23+
'eslint-comments/require-description': 'error',
24+
'eslint-comments/disable-enable-pair': 'off',
25+
'simple-import-sort/imports': 'error',
26+
'simple-import-sort/exports': 'error',
27+
'jest/prefer-expect-assertions': 'off',
28+
'jest/require-hook': 'off',
29+
},
30+
};

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
targets/http/http1.1/fixtures text

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.log
22
node_modules
33
coverage*
4+
dist

.npmignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
.editorconfig
2-
test
1+
# Ignore everything by default
2+
# NOTE: NPM publish will never ignore package.json, package-lock.json, README, LICENSE, CHANGELOG
3+
# https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
4+
*
5+
6+
# Don't ignore dist folder
7+
!dist/**

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build
2+
node_modules
3+
src/targets/**/fixtures
4+
dist
5+
bin

.prettierrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/** @type { import('prettier').Config } */
2+
module.exports = {
3+
arrowParens: 'avoid',
4+
bracketSameLine: false,
5+
bracketSpacing: true,
6+
jsxSingleQuote: false,
7+
printWidth: 100,
8+
proseWrap: 'never',
9+
quoteProps: 'as-needed',
10+
semi: true,
11+
singleAttributePerLine: true,
12+
singleQuote: true,
13+
tabWidth: 2,
14+
trailingComma: 'all',
15+
useTabs: false,
16+
};

.travis.yml

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

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["EditorConfig.EditorConfig"]
3+
}

0 commit comments

Comments
 (0)