@way2web/eslint-config

ESLint and Prettier Config from Way2Web

Usage no npm install needed!

<script type="module">
  import way2webEslintConfig from 'https://cdn.skypack.dev/@way2web/eslint-config';
</script>

README

Eslint default by Way2Web

These are my settings for ESLint and Prettier.

Here's an example usage:

{
  "extends": [
    "@way2web/eslint-config"
  ],
  "rules": {
    "no-console": 2,
    "prettier/prettier": [
      "error",
      {
        "trailingComma": "es5",
        "singleQuote": true,
        "printWidth": 120,
        "tabWidth": 8,
      }
    ]
  }
}

Installation

yarn add @way2web/eslint-config @vue/cli-plugin-eslint babel-eslint eslint eslint-config-airbnb-base eslint-config-prettier eslint-plugin-html eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-vue prettier --dev