Skip to the content.

Web Development

To keep any form of web development consistent please adhere to these guidelines:

Code Style

Here are configuration snippets.

Prettier configuration snippet

{
  "semi": false,
  "trailingComma": "all",
  "singleQuote": false,
  "printWidth": 120,
  "tabWidth": 4
}

ESLint configuration snippet

{
  "parser": "@typescript-eslint/parser",
  "extends": [
    "plugin:react/recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint",
    "plugin:prettier/recommended"
  ],
  "parserOptions": {
    "ecmaVersion": 2018,
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "plugins": [
    "import"
  ],
  "rules": {
    "react/prop-types": "off",
    "import/order": ["error", {
      "newlines-between": "always"
    }],
    "no-restricted-imports": ["error", {
      "patterns": [
        "*-main"
      ]
    }]
  },
  "settings": {
    "react": {
      "version": "detect"
    }
  }
}