diff --git a/exercises/concept/errors/.eslintrc b/exercises/concept/errors/.eslintrc index 2e5a5079a0..b8dab20247 100644 --- a/exercises/concept/errors/.eslintrc +++ b/exercises/concept/errors/.eslintrc @@ -5,6 +5,9 @@ "ecmaVersion": 7, "sourceType": "module" }, + "globals": { + "BigInt": true + }, "env": { "es6": true, "node": true, diff --git a/exercises/concept/errors/.npmrc b/exercises/concept/errors/.npmrc new file mode 100644 index 0000000000..d26df800bb --- /dev/null +++ b/exercises/concept/errors/.npmrc @@ -0,0 +1 @@ +audit=false diff --git a/exercises/concept/errors/LICENSE b/exercises/concept/errors/LICENSE new file mode 100644 index 0000000000..a7527f968f --- /dev/null +++ b/exercises/concept/errors/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Exercism + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/exercises/concept/errors/babel.config.js b/exercises/concept/errors/babel.config.js index 79a4ebf092..5cec97251a 100644 --- a/exercises/concept/errors/babel.config.js +++ b/exercises/concept/errors/babel.config.js @@ -1,13 +1,15 @@ module.exports = { presets: [ [ - '@babel/env', + '@babel/preset-env', { targets: { node: 'current', }, - useBuiltIns: false, + useBuiltIns: 'entry', + corejs: 3, }, ], ], + plugins: ['@babel/plugin-syntax-bigint'], }; diff --git a/exercises/concept/errors/package.json b/exercises/concept/errors/package.json index 1d93f3e772..007f1113da 100644 --- a/exercises/concept/errors/package.json +++ b/exercises/concept/errors/package.json @@ -1,36 +1,31 @@ { "name": "@exercism/javascript-concept-errors", "author": "Tom Pradat ", - "version": "1.0.0", - "license": "MIT", "private": true, "repository": { "type": "git", - "url": "https://github.com/exercism/language-concepts.git", + "url": "https://github.com/exercism/javascript", "directory": "languages/javascript/exercises/concept/errors" }, "devDependencies": { - "@babel/cli": "^7.8.4", - "@babel/core": "^7.9.6", - "@babel/preset-env": "^7.9.6", - "@types/jest": "^25.2.2", - "@types/node": "^14.0.1", + "@babel/cli": "^7.13.0", + "@babel/core": "^7.13.1", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/preset-env": "^7.13.5", + "@types/jest": "^26.0.20", + "@types/node": "^14.14.31", "babel-eslint": "^10.1.0", - "babel-jest": "^26.0.1", - "eslint": "^7.0.0", - "eslint-plugin-import": "^2.20.2", - "jest": "^26.0.1" - }, - "dependencies": {}, - "jest": { - "modulePathIgnorePatterns": [ - "package.json" - ] + "babel-jest": "^26.6.3", + "core-js": "^3.9.0", + "eslint": "^7.20.0", + "eslint-plugin-import": "^2.22.1", + "jest": "^26.6.3" }, "scripts": { "test": "jest --no-cache ./*", "watch": "jest --no-cache --watch ./*", - "lint": "eslint .", - "lint-test": "eslint . && jest --no-cache ./* " - } + "lint": "eslint ." + }, + "license": "MIT", + "dependencies": {} }