Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-appnexus

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-appnexus - npm Package Compare versions

Comparing version 7.1.0 to 7.1.1

3

CHANGELOG.md

@@ -5,2 +5,5 @@ # Change Log

## 7.1.1
- [patch] - Excluded `__html` from `@typescript-eslint/naming-convention`
## 7.1.0

@@ -7,0 +10,0 @@ - [minor] - This creates a new rule for enums and enum props

2

package.json
{
"name": "eslint-config-appnexus",
"version": "7.1.0",
"version": "7.1.1",
"description": "AppNexus Standard Eslint Config",

@@ -5,0 +5,0 @@ "main": "index.js",

const x: number = 1;
const htmlAttributes = { __html: '<style>div{color:#fff}</style>' };
interface TestValue {
value: string;
}

@@ -8,3 +8,3 @@ const _ = require('lodash');

describe.skip('Typescript', () => {
describe('Typescript', () => {
it('should catch lint', () => {

@@ -16,3 +16,3 @@ expect.assertions(1);

const errors = _.map(report.results[0].messages, (message) => {
return _.pick(message, 'ruleId', 'severity');
return _.pick(message, 'ruleId', 'severity', 'message');
});

@@ -22,2 +22,3 @@

{
message: 'Type number trivially inferred from a number literal, remove type annotation.',
ruleId: '@typescript-eslint/no-inferrable-types',

@@ -27,7 +28,23 @@ severity: 2,

{
message: "'x' is assigned a value but never used.",
ruleId: '@typescript-eslint/no-unused-vars',
severity: 2,
},
{
message: "'htmlAttributes' is assigned a value but never used.",
ruleId: '@typescript-eslint/no-unused-vars',
severity: 2,
},
{
message: 'Interface name `TestValue` must match the RegExp: /^I[A-Z]/u',
ruleId: '@typescript-eslint/naming-convention',
severity: 2,
},
{
message: "'TestValue' is defined but never used.",
ruleId: '@typescript-eslint/no-unused-vars',
severity: 2,
},
]);
});
});

@@ -118,2 +118,7 @@ const off = 0;

{
selector: 'property',
format: null,
filter: '^__html$',
},
{
selector: 'parameter',

@@ -120,0 +125,0 @@ format: ['camelCase', 'snake_case', 'PascalCase'],

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