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

@axeptio/eslint-config-axeptio-front

Package Overview
Dependencies
Maintainers
9
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axeptio/eslint-config-axeptio-front

Axeptio front-end eslint & prettier configuration

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

ESLint and Prettier config for front projects

Installing

  1. In your project folder, run:
npm i -D @axeptio/eslint-config-axeptio-front eslint prettier @typescript-eslint/eslint-plugin @typescript-eslint/parser @next/eslint-plugin-next eslint-config-prettier eslint-module-utils eslint-plugin-babel eslint-plugin-prettier@alpha eslint-plugin-react eslint-plugin-better-styled-components
  1. Now, create (or update) a .eslintrc.js file with the following content:
module.exports = {
  extends: '@axeptio/eslint-config-axeptio-front'
};
  1. Add prettier config in your repo
{
  "semi": true,
  "tabWidth": 2,
  "singleQuote": true,
  "bracketSpacing": true,
  "printWidth": 130,
  "arrowParens": "avoid",
  "trailingComma": "none",
  "endOfLine": "auto"
}

VSCode config

Go to User settings (settings.json) and add:

"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.formatOnPaste": false,
"editor.formatOnSaveMode": "modifications",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
  "source.fixAll.eslint": true,
  "source.fixAll.format": true
},

FAQs

Package last updated on 23 Nov 2023

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

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