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

eslint-plugin-smarthr

Package Overview
Dependencies
Maintainers
22
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-smarthr - npm Package Compare versions

Comparing version 0.2.17 to 0.2.18

12

CHANGELOG.md

@@ -5,2 +5,14 @@ # Changelog

### [0.2.18](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.2.17...v0.2.18) (2023-01-15)
### Features
* redundant-name にignores オプションを追加 ([#53](https://github.com/kufu/eslint-plugin-smarthr/issues/53)) ([638ed8f](https://github.com/kufu/eslint-plugin-smarthr/commit/638ed8fe6aad0b246ff13630359b60eb34ec4012))
### Bug Fixes
* ディレクトリの削除もれ対応 ([#52](https://github.com/kufu/eslint-plugin-smarthr/issues/52)) ([afefcae](https://github.com/kufu/eslint-plugin-smarthr/commit/afefcaef7dbd52daf6dac2c095d0c58c56cbbed5))
### [0.2.17](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.2.15...v0.2.17) (2023-01-12)

@@ -7,0 +19,0 @@

2

package.json
{
"name": "eslint-plugin-smarthr",
"version": "0.2.17",
"version": "0.2.18",
"author": "SmartHR",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -12,2 +12,3 @@ const path = require('path')

const DEFAULT_CONFIG = {
ignores: [],
type: {

@@ -61,2 +62,3 @@ IGNORE_KEYWORDS: [

properties: {
ignores: { type: 'array', items: { type: 'string' }, default: [] },
type: {

@@ -399,2 +401,7 @@ ...DEFAULT_SCHEMA_PROPERTY,

let filename = context.getFilename()
if ((option.ignores || []).some((i) => !!filename.match(new RegExp(i)))) {
return {}
}
const keywords = uniq((() => {

@@ -401,0 +408,0 @@ const keywordMatcher = filename.match(new RegExp(`${rootPath}/(.+?)$`))

@@ -56,2 +56,3 @@ # smarthr/redundant-name

{
ignores: [ '\.stories\.' ], // ファイルパスに対して正規表現として一致する場合はチェック対象外にする
type: { ignorekeywords, suffix: ['Props', 'Type'] },

@@ -58,0 +59,0 @@ file: { ignorekeywords, betternames },

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