Skip to content

chore(ui): added ESLint configuration #81

Bart Jeukendrup requested to merge feature/eslint into master

Based on Prettier and StandardJS.

Option Setting
Print Width 80 (default)
Tab Width 2
Tabs spaces (default)
Semicolons nope
Quotes single '
Trailing Commas all
Bracket Spacing { foo: bar } (default)
JSX Brackets example (default)
Arrow Function Parentheses always (x) => x

Setup in VSCode

  • Install the ESLint extension
  • Open VSCode settings and add the following:
{
  "[javascript]": {
    "editor.formatOnSave": false,
  },
  "[javascriptreact]": {
    "editor.formatOnSave": false,
  },
  "eslint.autoFixOnSave": true
}

Todo

Edited by Niels

Merge request reports