-
Notifications
You must be signed in to change notification settings - Fork 157
chore(all): removed unused npm scripts + moved linting in PR checks #1125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a9c9add
chore: removed unused npm scripts + moved linting in PR checks
dreamorosi 7874b8d
fix: typo in npm command
dreamorosi 4bb6988
chore: added @typescript-eslint/eslint-plugin to examples
dreamorosi e4d5b08
chore: added eslint dependencies to examples
dreamorosi 664b00b
fix: add eslint local config to examples
dreamorosi 8d2acaa
fix: added eslintrc to cdk
dreamorosi c765109
fix: added scoped linting to layer-publisher
dreamorosi a094ffd
chore: update husky to lint everything
dreamorosi 185917b
chore: update GH CodeSpaces & GitPod specs
dreamorosi f8f04a4
chore: update GH CodeSpaces & GitPod specs
dreamorosi b6dee26
fix: cache key in layer-publisher
dreamorosi 041c21e
fix: add local eslintrc to layer-publisher
dreamorosi 81464a0
Merge branch 'main' into chore/clean_up_linting_versioning
dreamorosi 5323231
chore: remove lerna mention in contributing
dreamorosi 603d14e
Merge branch 'chore/clean_up_linting_versioning' of github.com:awslab…
dreamorosi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,4 +1,10 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lerna-lint-fix | ||
npm run lint-fix -ws | ||
cd examples/sam && npm run lint-fix | ||
cd ../.. | ||
cd examples/cdk && npm run lint-fix | ||
cd ../.. | ||
cd layer-publisher && npm run lint-fix | ||
cd .. |
This file contains hidden or 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,5 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lerna-lint-fix | ||
npm run test | ||
npm t -ws |
This file contains hidden or 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 hidden or 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,67 @@ | ||
module.exports = { | ||
env: { | ||
browser: false, | ||
es2020: true, | ||
jest: true, | ||
node: true, | ||
}, | ||
extends: [ 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended' ], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
settings: { | ||
'import/resolver': { | ||
node: {}, | ||
typescript: { | ||
project: './tsconfig.es.json', | ||
alwaysTryTypes: true, | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
'@typescript-eslint/ban-ts-ignore': ['off'], | ||
'@typescript-eslint/camelcase': ['off'], | ||
'@typescript-eslint/explicit-function-return-type': [ 'error', { allowExpressions: true } ], | ||
'@typescript-eslint/explicit-member-accessibility': 'error', | ||
'@typescript-eslint/indent': [ 'error', 2, { SwitchCase: 1 } ], | ||
'@typescript-eslint/interface-name-prefix': ['off'], | ||
'@typescript-eslint/member-delimiter-style': [ 'error', { multiline: { delimiter: 'none' } } ], | ||
'@typescript-eslint/member-ordering': [ | ||
'error', | ||
{ | ||
default: { | ||
memberTypes: [ | ||
'signature', | ||
'public-field', // = ["public-static-field", "public-instance-field"] | ||
'protected-field', // = ["protected-static-field", "protected-instance-field"] | ||
'private-field', // = ["private-static-field", "private-instance-field"] | ||
'constructor', | ||
'public-method', // = ["public-static-method", "public-instance-method"] | ||
'protected-method', // = ["protected-static-method", "protected-instance-method"] | ||
'private-method', // = ["private-static-method", "private-instance-method"] | ||
], | ||
order: 'alphabetically', | ||
}, | ||
}, | ||
], | ||
'@typescript-eslint/no-explicit-any': 'error', | ||
'@typescript-eslint/no-inferrable-types': ['off'], | ||
'@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_' } ], | ||
'@typescript-eslint/no-use-before-define': ['off'], | ||
'@typescript-eslint/semi': [ 'error', 'always' ], | ||
'array-bracket-spacing': [ 'error', 'always', { singleValue: false } ], | ||
'arrow-body-style': [ 'error', 'as-needed' ], | ||
'computed-property-spacing': [ 'error', 'never' ], | ||
'func-style': [ 'warn', 'expression' ], | ||
indent: [ 'error', 2, { SwitchCase: 1 } ], | ||
'keyword-spacing': 'error', | ||
'newline-before-return': 2, | ||
'no-console': 0, | ||
'no-multi-spaces': [ 'error', { ignoreEOLComments: false } ], | ||
'no-multiple-empty-lines': [ 'error', { max: 1, maxBOF: 0 } ], | ||
'no-throw-literal': 'error', | ||
'object-curly-spacing': [ 'error', 'always' ], | ||
'prefer-arrow-callback': 'error', | ||
quotes: [ 'error', 'single', { allowTemplateLiterals: true } ], | ||
semi: [ 'error', 'always' ] | ||
}, | ||
}; |
This file contains hidden or 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,4 +1,5 @@ | ||
*.js | ||
!.eslintrc.js | ||
!jest.config.js | ||
*.d.ts | ||
node_modules | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.