Skip to content

Instantly share code, notes, and snippets.

@lloydlobo
Forked from rogeriotaques/.eslintrc
Created April 22, 2022 16:43
Show Gist options
  • Select an option

  • Save lloydlobo/d10e1649bb0b76ff3bf66c4b55ab051a to your computer and use it in GitHub Desktop.

Select an option

Save lloydlobo/d10e1649bb0b76ff3bf66c4b55ab051a to your computer and use it in GitHub Desktop.

Revisions

  1. @rogeriotaques rogeriotaques created this gist Apr 19, 2018.
    53 changes: 53 additions & 0 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    {
    "env": {
    "browser": true,
    "node": true,
    "jquery": true
    },
    "extends": ["airbnb-base"],
    "rules": {
    "arrow-parens": ["error", "always"],
    "camelcase": "off",
    "comma-dangle": ["error", "only-multiline"],
    "class-methods-use-this": "off",
    "function-paren-newline": "off",
    "indent": "off",
    "import/no-unresolved": "off",
    "import/no-extraneous-dependencies": "off",
    "import/extensions": [
    "error",
    "never",
    {
    "js": "off",
    "svg": "always",
    "scss": "always",
    "css": "always"
    }
    ],
    "max-len": [
    "error",
    {
    "code": 100,
    "ignoreUrls": true,
    "ignoreRegExpLiterals": true,
    "ignoreStrings": true
    }
    ],
    "no-console": "off",
    "no-mixed-operators": "off",
    "no-restricted-globals": "off",
    "no-underscore-dangle": "off",
    "object-curly-newline": ["error", { "consistent": true }],
    "require-jsdoc": [
    "warn",
    {
    "require": {
    "FunctionDeclaration": true,
    "MethodDefinition": false,
    "ClassDeclaration": false,
    "ArrowFunctionExpression": false
    }
    }
    ]
    }
    }