New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-amo

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-amo - npm Package Compare versions

Comparing version 1.10.0 to 1.10.1

9

lib/rules/only-tsx-files.js

@@ -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: [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc