eslint-config-appnexus
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -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 |
{ | ||
"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'], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34311
586