eslint-plugin-amo
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -7,3 +7,4 @@ 'use strict'; | ||
category: 'TypeScript', | ||
description: 'Enforce `.tsx` file extensions', | ||
description: | ||
'Enforce `.tsx` file extensions (definition files are ignored by this rule)', | ||
githubIssue: 'https://github.com/mozilla/addons-code-manager/issues/75', | ||
@@ -25,3 +26,7 @@ recommended: true, | ||
if (!/\.tsx$/.test(name)) { | ||
if (name.endsWith('.d.ts')) { | ||
return; | ||
} | ||
if (!name.endsWith('.tsx')) { | ||
context.report({ | ||
@@ -28,0 +33,0 @@ node, |
{ | ||
"name": "eslint-plugin-amo", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "ESLint plugin for AMO", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -185,3 +185,3 @@ # eslint-plugin-amo | ||
Enforce `.tsx` file extensions: | ||
Enforce `.tsx` file extensions (definition files are ignored by this rule): | ||
@@ -188,0 +188,0 @@ - ⛔️ `src/api/index.ts` |
@@ -32,2 +32,6 @@ 'use strict'; | ||
}, | ||
{ | ||
code: '// some code', | ||
filename: 'src/@types/lib/index.d.ts', | ||
}, | ||
], | ||
@@ -34,0 +38,0 @@ invalid: [ |
63848
1041