
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
eslint-plugin-imports-whitespace-bezier-curve
Advanced tools
an eslint plugin for import whitespace to follow a bezier curve
A silly little ESLint plugin to enforce that the import statements in a file follow a predefined cubic Bezier curve.
If you use Prettier, this plugin will conflict with it. But that's part of the fun 😈
$ pnpm i eslint-plugin-imports-whitespace-bezier-curve --save-dev
If you haven't already, set up ESLint in your project.
Add the plugin & rule to your ESLint config (.eslintrc.json
):
{
"plugins": ["eslint-plugin-imports-whitespace-bezier-curve"],
"rules": {
"imports-whitespace-bezier-curve/imports-whitespace-bezier-curve": "warn"
}
}
import { NextPage } from "next";
import { useEffect, useState, useMemo } from "react";
import Head from "next/head";
import { GetStaticProps } from "next";
import Hero from "../components/hero";
import Email from "../components/email";
import Community from "../components/community";
import Workshops from "../components/workshops";
import HackNight from "../components/hack-night";
import JoinUs from "../components/join-us";
import { IEvent } from "../utils/interfaces/SanityEvent";
import { DraggableContext } from "../context/DraggableContext";
import { fetchEvents } from "../utils/fetchEvents";
import Footer from "../components/footer";
this becomes:
import Head from 'next/head';
import { NextPage } from 'next';
import { GetStaticProps } from 'next';
import Hero from '../components/hero';
import Email from '../components/email';
import Footer from '../components/footer';
import JoinUs from '../components/join-us';
import Community from '../components/community';
import Workshops from '../components/workshops';
import HackNight from '../components/hack-night';
import { fetchEvents } from '../utils/fetchEvents';
import { useEffect, useState, useMemo } from 'react';
import { IEvent } from '../utils/interfaces/SanityEvent';
import { DraggableContext } from '../context/DraggableContext';
The more import statements you have, the higher "resolution" the curve becomes.
import Test1 from "a";
import Test2 from "bv";
import Test3 from "ckj";
import Test4 from "dqwe";
import Test5 from "fniru";
import Test6 from "gtshjy";
import Test7 from "haklsdh";
import Test8 from "ipmjelqs";
import Test9 from "jdmwekfle";
import Test10 from "kjawioefjw";
import Test11 from "lheuaklsjfl";
import Test13 from "nahdslieurnb";
import Test12 from "mgdlqwejtskj";
import Test14 from "ogdkwmeurkfhd";
import Test15 from "pxnfhekjslfheu";
import Test16 from "qamjdhwuierkhfn";
import Test17 from "rqnsgldkwmeufhls";
import Test18 from "siqhekjdwmurflgl";
import Test19 from "tjwhedklweurflhwe";
import Test20 from "ukdhslwekjrfhlweju";
import Test21 from "vsndlkwjeurhflejrh";
import Test22 from "wjdkshlekwurhflejsd";
import Test23 from "xahdksjlekwjhrflejwr";
import Test24 from "yksjdhfkjwehrfkjwehr";
import Test25 from "zkjshdfkjwehrfkljwehrf";
this becomes:
import Test1 from 'a';
import Test2 from 'bv';
import Test3 from 'ckj';
import Test4 from 'dqwe';
import Test5 from 'fniru';
import Test6 from 'gtshjy';
import Test7 from 'haklsdh';
import Test8 from 'ipmjelqs';
import Test9 from 'jdmwekfle';
import Test10 from 'kjawioefjw';
import Test11 from 'lheuaklsjfl';
import Test13 from 'nahdslieurnb';
import Test12 from 'mgdlqwejtskj';
import Test14 from 'ogdkwmeurkfhd';
import Test15 from 'pxnfhekjslfheu';
import Test16 from 'qamjdhwuierkhfn';
import Test17 from 'rqnsgldkwmeufhls';
import Test18 from 'siqhekjdwmurflgl';
import Test19 from 'tjwhedklweurflhwe';
import Test20 from 'ukdhslwekjrfhlweju';
import Test21 from 'vsndlkwjeurhflejrh';
import Test22 from 'wjdkshlekwurhflejsd';
import Test23 from 'xahdksjlekwjhrflejwr';
import Test24 from 'yksjdhfkjwehrfkjwehr';
import Test25 from 'zkjshdfkjwehrfkljwehrf';
FAQs
an eslint plugin for import whitespace to follow a bezier curve
We found that eslint-plugin-imports-whitespace-bezier-curve demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.