Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
65
.eslintrc
Normal file
65
.eslintrc
Normal file
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"globals": {
|
||||
"Drupal": true,
|
||||
"drupalSettings": true,
|
||||
"drupalTranslations": true,
|
||||
"domready": true,
|
||||
"jQuery": true,
|
||||
"_": true,
|
||||
"matchMedia": true,
|
||||
"Backbone": true,
|
||||
"Modernizr": true,
|
||||
"CKEDITOR": true
|
||||
},
|
||||
"rules": {
|
||||
// Errors.
|
||||
"block-scoped-var": 2,
|
||||
"brace-style": [2, "stroustrup", {"allowSingleLine": true}],
|
||||
"comma-style": [2, "last"],
|
||||
"eqeqeq": [2, "smart"],
|
||||
"guard-for-in": 2,
|
||||
"indent": [2, 2, {"indentSwitchCase": true}],
|
||||
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
|
||||
"lines-around-comment": [2, {"beforeBlockComment": true, "afterBlockComment": false}],
|
||||
"no-implied-eval": 2,
|
||||
"no-mixed-spaces-and-tabs": 2,
|
||||
"no-nested-ternary": 2,
|
||||
"no-reserved-keys": 2,
|
||||
"no-trailing-spaces": 2,
|
||||
"no-undef": 2,
|
||||
"no-undefined": 2,
|
||||
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
|
||||
"one-var": [2, "never"],
|
||||
"semi": [2, "always"],
|
||||
"space-after-keywords": [2, "always"],
|
||||
"space-before-blocks": [2, "always"],
|
||||
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
|
||||
"space-in-brackets": [2, "never"],
|
||||
"space-in-parens": [2, "never"],
|
||||
"spaced-line-comment": [2, "always"],
|
||||
"strict": 2,
|
||||
// Warnings.
|
||||
"max-nested-callbacks": [1, 3],
|
||||
"valid-jsdoc": [1, {
|
||||
"prefer": {
|
||||
"returns": "return",
|
||||
"property": "prop"
|
||||
},
|
||||
"requireReturn": false
|
||||
}],
|
||||
// Disabled.
|
||||
"camelcase": 0,
|
||||
"consistent-return": 0,
|
||||
"dot-notation": 0,
|
||||
"new-cap": 0,
|
||||
"no-alert": 0,
|
||||
"no-new": 0,
|
||||
"no-shadow": 0,
|
||||
"no-underscore-dangle": 0,
|
||||
"no-use-before-define": 0,
|
||||
"quotes": 0
|
||||
}
|
||||
}
|
Reference in a new issue