-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(examples): make examples code rely only on tsx (#117)
Signed-off-by: Jérôme Benoit <[email protected]>
- Loading branch information
1 parent
5e08d7d
commit 6ae694f
Showing
7 changed files
with
59 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": ["tsconfig.json", "examples/tsconfig.json"] | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint/eslint-plugin" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"airbnb-base", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"root": true, | ||
"env": { | ||
"node": true, | ||
"commonjs": true | ||
}, | ||
"rules": { | ||
"import/no-extraneous-dependencies": "off", | ||
"no-restricted-syntax": "off", | ||
"no-await-in-loop": "off", | ||
"no-plusplus": "off", | ||
"no-promise-executor-return": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/ban-types": "off", | ||
"import/no-unresolved": "off", | ||
"import/extensions": "off", | ||
"no-underscore-dangle": "off", | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"max-len": 0 | ||
} | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": [ | ||
"tsconfig.json", | ||
"examples/tsconfig.json" | ||
] | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint/eslint-plugin" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"airbnb-base", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"root": true, | ||
"env": { | ||
"node": true, | ||
"commonjs": true | ||
}, | ||
"rules": { | ||
"import/no-extraneous-dependencies": "off", | ||
"no-restricted-syntax": "off", | ||
"no-await-in-loop": "off", | ||
"no-plusplus": "off", | ||
"no-promise-executor-return": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/ban-types": "off", | ||
"import/no-unresolved": "off", | ||
"import/extensions": "off", | ||
"no-underscore-dangle": "off", | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"max-len": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,4 @@ jobs: | |
FORCE_COLOR: 2 | ||
|
||
- name: Run examples | ||
run: cd examples && pnpm run all | ||
run: cd examples && pnpm all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"*.ts": ["eslint --fix"] | ||
"*.ts": [ | ||
"eslint --fix" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"path": "dist/index.cjs", | ||
"limit": "10 kB" | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": [ | ||
"src/*.ts" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"dist" | ||
"./src/*.ts" | ||
], | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"baseUrl": ".", | ||
"outDir": "dist" | ||
"module": "ESNext" | ||
}, | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.