1
0
Fork 0
mirror of https://github.com/zrgn/zrgn.github.io synced 2024-12-26 16:46:35 +00:00
zrgn.github.io/.eslintrc.json

105 lines
2.4 KiB
JSON
Raw Normal View History

2019-05-30 13:58:19 +00:00
{
"env": {
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"array-bracket-spacing": [
"error",
"always"
],
"block-scoped-var": "error",
"block-spacing": [
"error",
"never"
],
"brace-style": [
"error",
"1tbs"
],
"comma-dangle": [
"error",
"never"
],
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"global-require": "error",
"no-extra-parens": "error",
"no-inline-comments": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}
],
"no-mixed-operators": "error",
"no-mixed-requires": "error",
"no-nested-ternary": "error",
"no-plusplus": "error",
"no-return-assign": "error",
"no-trailing-spaces": "error",
"no-useless-return": "error",
"object-curly-newline": [
"error",
{
"minProperties": 2
}
],
"one-var": [
"error",
{
"initialized": "never",
"uninitialized": "consecutive"
}
],
"one-var-declaration-per-line": [
"error",
"initializations"
],
"padded-blocks": [
"error",
"never"
],
"quotes": [
"error",
"single"
],
"require-jsdoc": [
"warn",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}
],
"semi": [
"error",
"always"
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never"
}
],
"valid-jsdoc": "error"
}
}