2016-02-02 15:02:07 +00:00
|
|
|
{
|
2018-08-08 16:58:48 +00:00
|
|
|
"extends": [
|
|
|
|
"airbnb",
|
|
|
|
"plugin:prettier/recommended"
|
|
|
|
],
|
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
|
|
|
"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": {
|
2018-08-08 16:58:48 +00:00
|
|
|
"prettier/prettier": "error",
|
2018-06-07 21:57:45 +00:00
|
|
|
"consistent-return": ["off"],
|
|
|
|
"no-underscore-dangle": ["off"],
|
|
|
|
"max-nested-callbacks": ["warn", 3],
|
|
|
|
"import/no-mutable-exports": ["warn"],
|
|
|
|
"no-plusplus": ["warn", {
|
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
|
|
|
"allowForLoopAfterthoughts": true
|
|
|
|
}],
|
2018-06-07 21:57:45 +00:00
|
|
|
"no-param-reassign": ["off"],
|
|
|
|
"no-prototype-builtins": ["off"],
|
|
|
|
"valid-jsdoc": ["warn", {
|
2016-02-02 15:02:07 +00:00
|
|
|
"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
|
|
|
}],
|
2018-07-22 10:53:25 +00:00
|
|
|
"no-unused-vars": ["warn"],
|
2018-08-08 16:58:48 +00:00
|
|
|
"operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }]
|
2016-02-02 15:02:07 +00:00
|
|
|
}
|
|
|
|
}
|