This repository has been archived by the owner on May 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial attempt with tsdx * Bump to latest share-kit and prep release
- Loading branch information
1 parent
be5b6d6
commit 850d0fa
Showing
24 changed files
with
4,930 additions
and
5,766 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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
extends: ['plugin:@typescript-eslint/recommended', 'prettier'], | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
// Turn off certain typescript-eslint rules | ||
'@typescript-eslint/no-unused-vars': 0, // This is enabled in our tsconfig file becuase the lint doens't support JSX usage | ||
'@typescript-eslint/array-type': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'@typescript-eslint/prefer-interface': 0, | ||
'@typescript-eslint/prefer-namespace-keyword': 0, | ||
'@typescript-eslint/camelcase': 0, | ||
'@typescript-eslint/no-parameter-properties': 0, | ||
// https://github.com/typescript-eslint/typescript-eslint/issues/249 | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'@typescript-eslint/no-object-literal-type-assertion': 0, | ||
'@typescript-eslint/indent': 0, | ||
|
||
// Override certain typescript-eslint rules | ||
'@typescript-eslint/member-delimiter-style': [ | ||
2, | ||
{ | ||
multiline: { | ||
delimiter: 'none', | ||
requireLast: true, | ||
}, | ||
singleline: { | ||
delimiter: 'semi', | ||
requireLast: false, | ||
}, | ||
}, | ||
], | ||
'@typescript-eslint/explicit-member-accessibility': [ | ||
2, | ||
{ | ||
accessibility: 'no-public', | ||
overrides: {parameterProperties: 'explicit'}, | ||
}, | ||
], | ||
'@typescript-eslint/interface-name-prefix': [2, 'always'], | ||
|
||
// Turn off certain react rules | ||
'react/prop-types': 0, | ||
|
||
// Turn on the prettier rules | ||
'prettier/prettier': 'error', | ||
// This is a weird one and needs to be duped here and .prettierrc | ||
// https://github.com/prettier/eslint-config-prettier#max-len | ||
'max-len': [ | ||
2, | ||
{ | ||
code: 140, | ||
tabWidth: 2, | ||
ignoreUrls: true, | ||
ignoreComments: true, | ||
ignoreUrls: true, | ||
ignoreStrings: true, | ||
ignoreTemplateLiterals: true, | ||
ignoreRegExpLiterals: true, | ||
}, | ||
], | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
} |
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,84 +1,7 @@ | ||
# https://raw.githubusercontent.com/Microsoft/TypeScript/master/.gitignore | ||
|
||
node_modules/ | ||
.node_modules/ | ||
built/* | ||
tests/cases/rwc/* | ||
tests/cases/test262/* | ||
tests/cases/perf/* | ||
!tests/cases/webharness/compilerToString.js | ||
test-args.txt | ||
~*.docx | ||
\#*\# | ||
.\#* | ||
tests/baselines/local/* | ||
tests/baselines/local.old/* | ||
tests/services/baselines/local/* | ||
tests/baselines/prototyping/local/* | ||
tests/baselines/rwc/* | ||
tests/baselines/test262/* | ||
tests/baselines/reference/projectOutput/* | ||
tests/baselines/local/projectOutput/* | ||
tests/baselines/reference/testresults.tap | ||
tests/services/baselines/prototyping/local/* | ||
tests/services/browser/typescriptServices.js | ||
src/harness/*.js | ||
src/compiler/diagnosticInformationMap.generated.ts | ||
src/compiler/diagnosticMessages.generated.json | ||
src/parser/diagnosticInformationMap.generated.ts | ||
src/parser/diagnosticMessages.generated.json | ||
rwc-report.html | ||
*.swp | ||
build.json | ||
*.actual | ||
tests/webTestServer.js | ||
tests/webTestServer.js.map | ||
tests/webhost/*.d.ts | ||
tests/webhost/webtsc.js | ||
tests/cases/**/*.js | ||
tests/cases/**/*.js.map | ||
*.config | ||
scripts/debug.bat | ||
scripts/run.bat | ||
scripts/word2md.js | ||
scripts/buildProtocol.js | ||
scripts/ior.js | ||
scripts/authors.js | ||
scripts/configurePrerelease.js | ||
scripts/open-user-pr.js | ||
scripts/processDiagnosticMessages.d.ts | ||
scripts/processDiagnosticMessages.js | ||
scripts/produceLKG.js | ||
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js | ||
scripts/generateLocalizedDiagnosticMessages.js | ||
scripts/*.js.map | ||
scripts/typings/ | ||
coverage/ | ||
internal/ | ||
**/.DS_Store | ||
.settings | ||
**/.vs | ||
**/.vscode | ||
!**/.vscode/tasks.json | ||
!tests/cases/projects/projectOption/**/node_modules | ||
!tests/cases/projects/NodeModulesSearch/**/* | ||
!tests/baselines/reference/project/nodeModules*/**/* | ||
.idea | ||
yarn.lock | ||
yarn-error.log | ||
.parallelperf.* | ||
tests/cases/user/*/package-lock.json | ||
tests/cases/user/*/node_modules/ | ||
tests/cases/user/*/**/*.js | ||
tests/cases/user/*/**/*.js.map | ||
tests/cases/user/*/**/*.d.ts | ||
!tests/cases/user/zone.js/ | ||
!tests/cases/user/bignumber.js/ | ||
!tests/cases/user/discord.js/ | ||
tests/baselines/reference/dt | ||
.failed-tests | ||
|
||
# bloom additions | ||
dist/ | ||
*.tgz | ||
package/ | ||
*.log | ||
.DS_Store | ||
node_modules | ||
.rts2_cache_cjs | ||
.rts2_cache_esm | ||
.rts2_cache_umd | ||
dist |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
semi: false, | ||
singleQuote: true, | ||
printWidth: 140, | ||
trailingComma: 'all', | ||
jsxBracketSameLine: false, | ||
bracketSpacing: false, | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Pass in the project config file and directory to run eslint | ||
# | ||
# 1. Passes in project file, enabling type-based linting | ||
# 2. Uses verbose formatter so we know which lint rule failed | ||
# 3. Excludes test files | ||
# 4. Passes in flags from command line to eslint. `bin/eslint --fix` should work | ||
eslint_project() { | ||
local config_file="$1" | ||
local directory1="$2" | ||
local directory2="$3" | ||
|
||
# Remove the function arguments | ||
shift 3 | ||
|
||
# Use the verbose formatter which includes the rule name | ||
./node_modules/.bin/eslint \ | ||
--format table \ | ||
"$directory1/**/*.{ts,tsx}" \ | ||
"$directory2/**/*.{ts,tsx}" \ | ||
"$@" # Pass in commands passed to our executable | ||
} | ||
|
||
# Track if either task failed. | ||
linting_passed="true" | ||
|
||
if ! eslint_project tsconfig.json src test "$@"; then | ||
linting_passed="false" | ||
fi | ||
|
||
if [ "$linting_passed" == "false" ]; then | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.