New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@antmjs/eslint

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antmjs/eslint

代码统一规范工具库

latest
Source
npmnpm
Version
2.4.2
Version published
Weekly downloads
135
-4.93%
Maintainers
2
Weekly downloads
 
Created
Source

@antmjs/eslint

代码统一规范工具库

为什么需要

团队成员多了之后避免因为格式不一致导致一大堆的冲突

安装

yarn add @antmjs/eslint --dev

使用

eslint.config.js

module.exports = {
  extends: './node_modules/@antmjs/eslint/index.js',
  parserOptions: {
    project: 'tsconfig.json',
    sourceType: 'module',
    ecmaVersion: '2021',
  },
  settings: {
    'import/resolver': {
      typescript: {
        project: 'tsconfig.json',
      },
    },
    react: {
      createClass: 'createReactClass', // Regex for Component Factory to use,
      // default to "createReactClass"
      pragma: 'React', // Pragma to use, default to "React"
      fragment: 'Fragment', // Fragment to use (may be a property of <pragma>), default to "Fragment"
      version: 'detect', // React version. "detect" automatically picks the version you have installed.
      // You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
      // default to latest and warns if missing
      // It will default to "detect" in the future
      // flowVersion: '0.53', // Flow version
    },
  },
}

Keywords

eslint

FAQs

Package last updated on 18 Jul 2025

Did you know?

Socket

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.

Install

Related posts