-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jhomarolo/develop
Add super lint checker on pull request
- Loading branch information
Showing
13 changed files
with
1,685 additions
and
316 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,25 @@ | ||
{ | ||
"extends": ["prettier"], | ||
"plugins": ["prettier"], | ||
"env": { | ||
"commonjs": true, | ||
"node": true, | ||
"es6": false | ||
}, | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
}, | ||
"rules": { | ||
"semi": ["error", "never"], | ||
"func-names": 0, | ||
"no-param-reassign": 0, | ||
"no-multi-str": 0, | ||
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], | ||
"no-console": ["error", { "allow": ["tron"] }], | ||
"consistent-return": 0 | ||
} | ||
} |
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,39 @@ | ||
name: CI build | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: npm install | ||
run: npm i --ignore-scripts | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test | ||
- run: npx nyc --reporter=lcov npm test && npx codecov | ||
env: | ||
CI: true | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
- name: Run Super Linter - ESLint | ||
uses: github/[email protected] | ||
env: | ||
VALIDATE_ALL_CODEBASE: true | ||
LINTER_RULES_PATH: .github/linters | ||
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.json | ||
VALIDATE_JAVASCRIPT_STANDARD: false | ||
VALIDATE_JAVASCRIPT_ES: true | ||
DISABLE_ERRORS: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: CI build | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test | ||
- run: npx nyc --reporter=lcov npm test && npx codecov | ||
env: | ||
CI: true | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] |
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 |
---|---|---|
|
@@ -157,3 +157,7 @@ public | |
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
.editorconfig | ||
/.eslintrc.json | ||
.prettierrc | ||
|
Oops, something went wrong.