Socket
Socket
Sign inDemoInstall

@axeptio/eslint-config-axeptio-front

Package Overview
Dependencies
1
Maintainers
9
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @axeptio/eslint-config-axeptio-front

Axeptio front-end eslint & prettier configuration


Version published
Maintainers
9
Install size
4.94 kB
Created

Readme

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

Last updated on 23 Nov 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc