🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@actinc/eslint-plugin

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@actinc/eslint-plugin

ES Lint Configurations for ACT Projects

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
3
Created
Source

id: eslint-plugin sidebar_position: 2

@actinc/eslint-plugin

This serves as a plugin to store the variety of pre-configured ACT eslint plugins and rules used for projects.
This is organized as a plugin to enable the current and upcoming requirement of ESLint to only load additional plugins from plugins.
This way, you only need to have eslint and prettier installed as peer dependencies.

Installation

npm i -D @actinc/eslint-plugin @actinc/prettier-config @actinc/cspell-config eslint prettier

Configuration

The easiest way is to add this to your package.json file

"cspell": {
  "language": "en",
  "import": [
    "@actinc/cspell-config"
  ] 
},
"prettier": "@actinc/prettier-config",
"eslintConfig": {
  "extends": [
    "plugin:@actinc/react"
  ],
  "plugins": [
    "@actinc"
  ]
},

If you need more sophisticated customization options, you can instead put this into an .eslintrc.js and/or .prettierrc.js file or whatever supported configuration file you prefer.

echo "module.exports = {extends: ['plugin:@actinc/react']}" > .eslintrc.js
echo "module.exports = module.exports = {...require('@actinc/prettier-config')};" > .prettierrc.js

Configuration Options

These are the current supported configuration options available

  • plugin:@actinc/base - This is the base definition that includes most of the basic and some extended eslint rules. This is intended for vanilla javascript
  • plugin:@actinc/typescript - This is intended for basic plain typescript projects and utilities, it extends base
  • plugin:@actinc/nest - This is intended for NestJS Projects. It extends typescript
  • plugin:@actinc/react - This is for all react projects. It extends typescript

Keywords

ACT

FAQs

Package last updated on 18 Aug 2022

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