Skip to content

Commit

Permalink
Upgrade eslint and its plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdavidson committed May 31, 2020
1 parent 45a0172 commit 8fcbea6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
"ecmaVersion": 2017,
"sourceType": "module"
},
"env": {
"node": true
},
"rules": {
"curly": ["error", "all"]
},
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": [
"prettier/@typescript-eslint",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier/@typescript-eslint"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/ban-ts-ignore": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/require-await": "off"
}
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"scripts": {
"build": "rimraf dist && rollup --config",
"test": "jest",
"lint": "eslint . --ext .js,.ts",
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
"preversion": "npm run test"
Expand All @@ -47,9 +47,9 @@
"@rollup/plugin-typescript": "^4.1.1",
"@types/jest": "^25.1.0",
"@types/node": "^10.17.21",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"eslint": "^6.8.0",
"@typescript-eslint/eslint-plugin": "^3.0.0",
"@typescript-eslint/parser": "^3.0.0",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
Expand Down
10 changes: 9 additions & 1 deletion src/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ describe('detects files with source maps', () => {
${false} | ${true} | ${true}
`(
'sourceMap: $sourceMap, inlineSourceMap: $inlineSourceMap, inlineSources: $inlineSources',
async ({ sourceMap, inlineSourceMap, inlineSources }) => {
async ({
sourceMap,
inlineSourceMap,
inlineSources,
}: {
sourceMap: boolean;
inlineSourceMap: boolean;
inlineSources: boolean;
}) => {
const { outputText, sourceMapText } = ts.transpileModule(inputText, {
fileName: inputPath,
compilerOptions: {
Expand Down

0 comments on commit 8fcbea6

Please sign in to comment.