-
-
Save ntwb/0efa4d7cb4248cc7747ffd522d57a285 to your computer and use it in GitHub Desktop.
WordPress .eslintrc file, this file is generated by polyjuice from the .jscsrc file here: https://gist.github.com/ntwb/76f2962406b9e86e0056ca0c1504e8e9
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
{ | |
"env": { | |
"browser": true, | |
}, | |
"globals": { | |
"_": false, | |
"Backbone": false, | |
"jQuery": false, | |
"wp": false | |
}, | |
"rules": { | |
"array-bracket-spacing": [2, "always"], | |
"brace-style": 2, | |
"camelcase": [2, { "properties": "always" }], | |
"comma-dangle": [2, "never"], | |
"comma-spacing": 2, | |
"comma-style": [2, "last"], | |
"curly": [2, "all"], | |
"dot-notation": [2, { "allowKeywords": true, "allowPattern": "^[a-z]+(_[a-z]+)+$" }], | |
"eol-last": 2, | |
"key-spacing": [2, { "beforeColon": false, "afterColon": true }], | |
"keyword-spacing": 2, | |
"linebreak-style": [2, "unix"], | |
"lines-around-comment": [2, { "beforeLineComment": true }], | |
"no-mixed-spaces-and-tabs": 2, | |
"no-multi-str": 2, | |
"no-multiple-empty-lines": 2, | |
"no-spaced-func": 2, | |
"no-trailing-spaces": 2, | |
"no-with": 2, | |
"operator-linebreak": [2, "after"], | |
"quotes": [2, "single"], | |
"semi": [2, "always"], | |
"space-before-blocks": [2, "always"], | |
"space-before-function-paren": [2, "never"], | |
"space-in-parens": [2, "always", { "exceptions": [ "{}", "[]" ] }], | |
"space-infix-ops": 2, | |
"space-unary-ops": [2, { "overrides": { "!": true } }], | |
"vars-on-top": 2, | |
"wrap-iife": 2, | |
"yoda": [2, "always"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment