2016-02-02 15:02:07 +00:00
|
|
|
{
|
Issue #2815077 by drpal, mradcliffe, effulgentsia, mpdonadio, nod_, droplet, alexpott, nedjo, tizzo, David_Rothstein, pfrenssen: Adopt airbnb javascript style guide v13 as new baseline javascript coding standards for Drupal 8 core and contrib
2017-05-10 08:34:45 +00:00
|
|
|
"extends": "eslint-config-airbnb",
|
|
|
|
"root": true,
|
2016-02-02 15:02:07 +00:00
|
|
|
"env": {
|
2016-10-13 23:53:15 +00:00
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
2016-02-02 15:02:07 +00:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"Drupal": true,
|
|
|
|
"drupalSettings": true,
|
|
|
|
"drupalTranslations": true,
|
|
|
|
"domready": true,
|
|
|
|
"jQuery": true,
|
|
|
|
"_": true,
|
|
|
|
"matchMedia": true,
|
|
|
|
"Backbone": true,
|
|
|
|
"Modernizr": true,
|
|
|
|
"CKEDITOR": true
|
|
|
|
},
|
|
|
|
"rules": {
|
Issue #2815077 by drpal, mradcliffe, effulgentsia, mpdonadio, nod_, droplet, alexpott, nedjo, tizzo, David_Rothstein, pfrenssen: Adopt airbnb javascript style guide v13 as new baseline javascript coding standards for Drupal 8 core and contrib
2017-05-10 08:34:45 +00:00
|
|
|
"consistent-return": [0],
|
|
|
|
"no-underscore-dangle": [0],
|
2016-02-02 15:02:07 +00:00
|
|
|
"max-nested-callbacks": [1, 3],
|
Issue #2815077 by drpal, mradcliffe, effulgentsia, mpdonadio, nod_, droplet, alexpott, nedjo, tizzo, David_Rothstein, pfrenssen: Adopt airbnb javascript style guide v13 as new baseline javascript coding standards for Drupal 8 core and contrib
2017-05-10 08:34:45 +00:00
|
|
|
"no-mutable-exports": [1],
|
|
|
|
"no-plusplus": [1, {
|
|
|
|
"allowForLoopAfterthoughts": true
|
|
|
|
}],
|
|
|
|
"no-param-reassign": [0],
|
|
|
|
"no-prototype-builtins": [0],
|
2016-02-02 15:02:07 +00:00
|
|
|
"valid-jsdoc": [1, {
|
|
|
|
"prefer": {
|
|
|
|
"returns": "return",
|
|
|
|
"property": "prop"
|
|
|
|
},
|
|
|
|
"requireReturn": false
|
Issue #2815077 by drpal, mradcliffe, effulgentsia, mpdonadio, nod_, droplet, alexpott, nedjo, tizzo, David_Rothstein, pfrenssen: Adopt airbnb javascript style guide v13 as new baseline javascript coding standards for Drupal 8 core and contrib
2017-05-10 08:34:45 +00:00
|
|
|
}],
|
|
|
|
"brace-style": ["error", "stroustrup"],
|
|
|
|
"no-unused-vars": [1]
|
2016-02-02 15:02:07 +00:00
|
|
|
}
|
|
|
|
}
|