diff --git a/package.json b/package.json index e48a5e12..417fef1d 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "TypeScript" ], "dependencies": { - "@typescript-eslint/parser": "^2.0.0", + "@typescript-eslint/parser": "^2.1.0", "eslint-config-standard": "^14.0.0" }, "peerDependencies": { @@ -71,7 +71,7 @@ "@commitlint/config-conventional": "^8.2.0", "@commitlint/travis-cli": "^8.2.0", "@types/node": "^12.7.9", - "@typescript-eslint/eslint-plugin": "^2.0.0", + "@typescript-eslint/eslint-plugin": "^2.1.0", "ava": "^2.4.0", "editorconfig-checker": "^3.0.3", "eslint": "^6.5.1", diff --git a/src/index.test.ts b/src/index.test.ts index fe63b710..f4ba562b 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -18,6 +18,7 @@ test('export', (t): void => { 'no-unused-vars': 'off', 'no-use-before-define': 'off', 'no-useless-constructor': 'off', + quotes: 'off', 'require-await': 'off', '@typescript-eslint/adjacent-overload-signatures': 'error', '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], @@ -33,7 +34,8 @@ test('export', (t): void => { '@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true, allowHigherOrderFunctions: true, - allowTypedFunctionExpressions: true + allowTypedFunctionExpressions: true, + allowDirectConstAssertionInArrowFunctions: true }], '@typescript-eslint/indent': ['error', 2, { SwitchCase: 1, @@ -75,6 +77,7 @@ test('export', (t): void => { '@typescript-eslint/prefer-function-type': 'error', '@typescript-eslint/prefer-readonly': 'error', '@typescript-eslint/promise-function-async': 'error', + '@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }], '@typescript-eslint/restrict-plus-operands': 'error', '@typescript-eslint/require-array-sort-compare': 'error', '@typescript-eslint/require-await': 'error', diff --git a/src/index.ts b/src/index.ts index 5af800a6..43d00fb9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,6 +17,7 @@ export = { 'no-unused-vars': 'off', 'no-use-before-define': 'off', 'no-useless-constructor': 'off', + quotes: 'off', 'require-await': 'off', // @typescript-eslint versions of Standard.js rules: @@ -40,6 +41,7 @@ export = { '@typescript-eslint/no-unused-vars': ['error', { args: 'none' }], '@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, variables: false, typedefs: false }], '@typescript-eslint/no-useless-constructor': 'error', + '@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }], '@typescript-eslint/require-await': 'error', // New Typescript-only rules: @@ -56,7 +58,8 @@ export = { '@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true, allowHigherOrderFunctions: true, - allowTypedFunctionExpressions: true + allowTypedFunctionExpressions: true, + allowDirectConstAssertionInArrowFunctions: true }], '@typescript-eslint/member-delimiter-style': [ 'error',