Advertisement
umashankar

.eslintrc.json sample

Apr 6th, 2022 (edited)
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.24 KB | None | 0 0
  1. {
  2.     "extends": [
  3.         "prettier"
  4.     ],
  5.     "parserOptions": {
  6.         "ecmaVersion": 2017
  7.     },
  8.     "rules": {
  9.         // "indent": [
  10.         //     "error",
  11.         //     2
  12.         // ],
  13.         "semi": [
  14.             "error",
  15.             "always"
  16.         ],
  17.         "quotes": [
  18.             "error",
  19.             "single"
  20.         ],
  21.         "quote-props": [
  22.             "error",
  23.             "as-needed"
  24.         ],
  25.         "object-curly-newline": [
  26.             "off",
  27.             {
  28.                 // "multiline": true,
  29.                 // "minProperties": 2
  30.                 "ObjectExpression": "always",
  31.                 // "ObjectPattern": {
  32.                 //   "multiline": true,
  33.                 //   "minProperties": 2
  34.                 // },
  35.                 "ImportDeclaration": {
  36.                     "multiline": true,
  37.                     "minProperties": 2
  38.                 },
  39.                 "ExportDeclaration": {
  40.                     "multiline": true,
  41.                     "minProperties": 2
  42.                 }
  43.             }
  44.         ],
  45.         "object-property-newline": "off"
  46.     },
  47.     "settings": {
  48.         "import/core-modules": []
  49.     },
  50.     "env": {
  51.         "browser": true,
  52.         "es6": true
  53.     }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement