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

eslint-plugin-atomic-redesign

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-atomic-redesign - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

dist/rules/denyGlobalState.js

@@ -27,6 +27,6 @@ "use strict";

includeSourceFilePatterns: [
'.*\\/atoms\\/.*\\.tsx',
'.*\\/molecules\\/.*\\.tsx',
'\\/atoms\\/.*\\.tsx',
'\\/molecules\\/.*\\.tsx',
],
excludeSourceFilePatterns: ['.*\\.test.*', '.*\\.stories.*'],
excludeSourceFilePatterns: ['\\.test', '\\.stories'],
denyFunctionNames: [

@@ -33,0 +33,0 @@ 'fetch',

@@ -26,4 +26,4 @@ "use strict";

create: denyFuncNameUtils_1.makeCreateHandler({
includeSourceFilePatterns: ['.*\\/atoms\\/.*\\.tsx'],
excludeSourceFilePatterns: ['.*\\.test.*', '.*\\.stories.*'],
includeSourceFilePatterns: ['\\/atoms\\/.*\\.tsx'],
excludeSourceFilePatterns: ['\\.test', '\\.stories'],
denyFunctionNames: ['setState', 'useState', 'useReducer'],

@@ -30,0 +30,0 @@ }, (node, context, denyedFunctionName) => {

@@ -8,13 +8,13 @@ "use strict";

includeSourceFilePatterns: {
atoms: '.*\\/atoms\\/.*\\.tsx',
molecules: '.*\\/molecules\\/.*\\.tsx',
organisms: '.*\\/organisms\\/.*\\.tsx',
templates: '.*\\/templates\\/.*\\.tsx',
atoms: '\\/atoms\\/.*\\.tsx',
molecules: '\\/molecules\\/.*\\.tsx',
organisms: '\\/organisms\\/.*\\.tsx',
templates: '\\/templates\\/.*\\.tsx',
},
excludeSourceFilePatterns: ['.*\\.test.*', '.*\\.stories.*'],
excludeSourceFilePatterns: ['\\.test', '\\.stories'],
importPatterns: {
atoms: '.*\\/atoms\\/.*',
molecules: '.*\\/molecules\\/.*',
organisms: '.*\\/organisms\\/.*',
templates: '.*\\/templates\\/.*',
atoms: '\\/atoms\\/',
molecules: '\\/molecules\\/',
organisms: '\\/organisms\\/',
templates: '\\/templates\\/',
},

@@ -21,0 +21,0 @@ };

@@ -10,3 +10,3 @@ "use strict";

checkFilesInDirectory: ['./src/components/organisms/**/*.ts*'],
excludeFilePatterns: ['.*\\.test.*', '.*\\.stories.*'],
excludeFilePatterns: ['\\.test', '\\.stories'],
keywords: [

@@ -13,0 +13,0 @@ 'fetch',

@@ -10,3 +10,3 @@ "use strict";

checkFilesInDirectory: ['./src/components/molecules/**/*.ts*'],
excludeFilePatterns: ['.*\\.test.*', '.*\\.stories.*'],
excludeFilePatterns: ['\\.test', '\\.stories'],
keywords: ['setState', 'useState', 'useReducer'],

@@ -13,0 +13,0 @@ };

@@ -9,4 +9,13 @@ "use strict";

const os_locale_1 = __importDefault(require("os-locale"));
const testString = (str, pattern) => new RegExp(pattern).test(str);
exports.testString = testString;
exports.testString = (() => {
const regExpCache = new Map();
return (str, pattern) => {
const cache = regExpCache.get(pattern);
if (cache !== undefined)
return cache.test(str);
const newRegExp = new RegExp(pattern);
regExpCache.set(pattern, newRegExp);
return newRegExp.test(str);
};
})();
const localize = (obj) => {

@@ -13,0 +22,0 @@ const lang_code = locale_code_1.default.getLanguageCode(os_locale_1.default.sync());

{
"name": "eslint-plugin-atomic-redesign",
"version": "0.0.2",
"version": "0.0.3",
"description": "ESLint rules for Atomic ReDesigned projects.",

@@ -5,0 +5,0 @@ "repository": {

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