-
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.
Merge pull request #10 from uglow/feature/support-lambda
feat: support AWS Lambda by allowing filePath to be specified
- Loading branch information
Showing
16 changed files
with
5,902 additions
and
7,124 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,31 +1,40 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 2019, | ||
}, | ||
|
||
env: { | ||
es6: true, | ||
node: true, | ||
jest: true, | ||
'jest/globals': true, | ||
}, | ||
|
||
extends: [ | ||
'eslint:recommended', | ||
'plugin:import/errors', | ||
'plugin:import/warnings', | ||
'plugin:node/recommended', | ||
'plugin:prettier/recommended', | ||
'plugin:unicorn/recommended', | ||
'plugin:node/recommended-script', | ||
'plugin:jest/recommended', | ||
], | ||
|
||
// required to lint *.vue files | ||
plugins: ['node'], | ||
// add your custom rules here | ||
plugins: ['jest'], | ||
rules: { | ||
'prefer-const': 'error', | ||
'no-var': 'error', | ||
// Allow some flexibility here | ||
'unicorn/prevent-abbreviations': 'off', | ||
|
||
// Use camelCase for files (and directories - not enforced) | ||
'unicorn/filename-case': ['error', { case: 'camelCase' }], | ||
|
||
// Turn off explicit length checks | ||
'unicorn/explicit-length-check': 'off', | ||
|
||
// Turn off this rule as it is needed for web-component-lib integration (Nuxt.js doesn't like ESM files, yet) | ||
'import/no-webpack-loader-syntax': 'off', | ||
'import/no-unresolved': 'off', | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
// Turning off because it leads to many uses of the word 'error' in the same block, which is confusing | ||
// E.g. | ||
// } catch(error) { | ||
// logger.error(error); | ||
// return error(error); | ||
// } | ||
'unicorn/catch-error-name': 'off', | ||
|
||
// Turn off node/no-unsupported-features because it complains about import & export | ||
'node/no-unsupported-features': 'off', | ||
// This rule is no good for test specs. Need to find a way to disable this for test specs | ||
'unicorn/consistent-function-scoping': 'off', | ||
}, | ||
}; |
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,7 @@ | ||
module.exports = { | ||
semi: true, | ||
trailingComma: 'all', | ||
singleQuote: true, | ||
printWidth: 120, | ||
tabWidth: 2, | ||
}; |
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,64 @@ | ||
{ | ||
"name": "smetrics", | ||
"version": "0.0.0-development", | ||
"description": "A simple tool to record metrics in a spreadsheet.", | ||
"license": "MIT", | ||
"files": [ | ||
"src", | ||
"*.md" | ||
], | ||
"main": "src/index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/uglow/smetrics.git" | ||
}, | ||
"scripts": { | ||
"commitmsg": "cz-customizable-ghooks", | ||
"prepush": "npm-run-all verify test:report --silent", | ||
"test": "npm run test:unit", | ||
"test:int": "node ./test/integration-test.js", | ||
"test:unit": "jest", | ||
"test:report": "jest --coverage", | ||
"test:snaps": "jest -u", | ||
"test:watch": "jest --watchAll", | ||
"upload-coverage": "coveralls < test-reports/coverage/lcov.info", | ||
"lint": "eslint --fix src/", | ||
"verify": "eslint --max-warnings=0 src/", | ||
"travis-deploy-once": "travis-deploy-once", | ||
"semantic-release": "semantic-release", | ||
"x": "jest --init" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-customizable" | ||
}, | ||
"cz-customizable": { | ||
"config": "commitMessageConfig.js" | ||
} | ||
}, | ||
"dependencies": { | ||
"google-auth-library": "6.1.3" | ||
}, | ||
"devDependencies": { | ||
"@getify/eslint-plugin-proper-arrows": "10.0.0", | ||
"coveralls": "3.1.0", | ||
"cross-env": "7.0.2", | ||
"cz-customizable": "6.3.0", | ||
"dotenv-safe": "6.0.0", | ||
"eslint": "7.12.1", | ||
"eslint-config-prettier": "6.10.1", | ||
"eslint-plugin-jest": "24.1.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-prettier": "3.1.3", | ||
"eslint-plugin-unicorn": "23.0.0", | ||
"husky": "4.2.5", | ||
"jest": "26.6.2", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "2.1.2", | ||
"semantic-release": "17.2.2" | ||
}, | ||
"engines": { | ||
"node": ">=10", | ||
"npm": ">=6.1" | ||
} | ||
} |
Oops, something went wrong.