Socket
Book a DemoInstallSign in
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

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
9
Created
Source

ESLint and Prettier config for front projects

Installing

  • 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
  • Now, create (or update) a .eslintrc.js file with the following content:
module.exports = {
  extends: '@axeptio/eslint-config-axeptio-front'
};
  • 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