Last active
April 12, 2018 19:34
-
-
Save constgen/d75718d8bada1925858291920977f298 to your computer and use it in GitHub Desktop.
Custom ESLint config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"globals": {}, | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"rules": { | |
"comma-dangle": ["error", "never"], | |
"indent": ["error", "tab", {"MemberExpression": "off", "SwitchCase": 1}], | |
"linebreak-style": ["error", "unix"], | |
"quotes": ["error", "single"], | |
"semi": ["error", "never"], | |
"no-unused-vars": ["warn"], | |
"no-console": ["warn", { "allow": ["error"] }], | |
"eqeqeq": ["error", "always"], | |
"getter-return": ["error", { "allowImplicit": true }], | |
"id-length": ["error", { | |
"min": 2, | |
"properties": "never", | |
"exceptions": ["i", "x", "y", "z"] | |
} | |
], | |
"no-eval": "error", | |
"no-trailing-spaces": "error", | |
"no-with": "error", | |
"no-unused-expressions": ["error", { | |
"allowShortCircuit": true, | |
"allowTernary": true, | |
"allowTaggedTemplates": true | |
}], | |
"strict": ["warn", "safe"], | |
"curly": ["error", "multi-line"], | |
"unicode-bom": ["error", "never"], | |
"vars-on-top": "error", | |
"max-len": ["warn", { | |
"code": 120, | |
"ignoreComments": true, | |
"ignoreUrls": true, | |
"ignoreStrings": true | |
}], | |
"quote-props": [1, "consistent-as-needed"], | |
"no-cond-assign": [2, "except-parens"], | |
"space-infix-ops": 0, | |
"default-case": 0, | |
"no-else-return": 0, | |
"no-param-reassign": 0, | |
"new-cap": 2, | |
"eol-last": ["error", "never"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment