@axeptio/eslint-config-axeptio-front

1.0.4 • Public • Published

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
},

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i @axeptio/eslint-config-axeptio-front

    Weekly Downloads

    1

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    5.06 kB

    Total Files

    6

    Last publish

    Collaborators

    • nikolas.olivier
    • a_ng_d_axeptio
    • axeptiotech
    • floriand
    • mcriel-axeptio
    • shouze
    • achalhii
    • christophebraud
    • rombat
    • fluorz
    • romainbessuges