mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 21:49:04 +01:00
44 lines
1.5 KiB
JSON
44 lines
1.5 KiB
JSON
{
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"globals": {
|
|
"Formwork": false,
|
|
"$": false,
|
|
"$$": false
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 6,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"brace-style": ["error", "1tbs"],
|
|
"curly": ["error", "all"],
|
|
"eqeqeq": ["error", "always"],
|
|
"guard-for-in": ["error"],
|
|
"indent": ["error", 4],
|
|
"keyword-spacing": ["error"],
|
|
"linebreak-style": ["error", "unix"],
|
|
"new-parens": ["error"],
|
|
"no-else-return": ["error"],
|
|
"no-lonely-if": ["error"],
|
|
"no-multi-spaces": ["error"],
|
|
"no-multiple-empty-lines": ["error", {"max": 1}],
|
|
"no-trailing-spaces": ["error"],
|
|
"no-unneeded-ternary": ["error"],
|
|
"object-curly-newline": ["error", {"multiline": true, "minProperties": 2}],
|
|
"object-curly-spacing": ["error"],
|
|
"object-property-newline": ["error", {"allowAllPropertiesOnSameLine": true}],
|
|
"one-var": ["error", {"initialized": "never", "uninitialized": "always"}],
|
|
"operator-assignment": ["error"],
|
|
"quotes": ["error", "single"],
|
|
"semi": ["error", "always"],
|
|
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
|
|
"space-infix-ops": ["error"],
|
|
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
|
|
"spaced-comment": ["error"],
|
|
"vars-on-top": ["error"]
|
|
}
|
|
}
|