2016-02-02 15:02:07 +00:00
|
|
|
{
|
2018-08-08 16:58:48 +00:00
|
|
|
"extends": [
|
2022-03-21 14:17:38 +00:00
|
|
|
"airbnb-base",
|
2021-08-17 08:58:20 +00:00
|
|
|
"plugin:prettier/recommended",
|
|
|
|
"plugin:yml/recommended"
|
2018-08-08 16:58:48 +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
|
|
|
"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,
|
|
|
|
"jQuery": true,
|
|
|
|
"_": true,
|
Issue #2550717 by mradcliffe, bnjmnm, finnsky, Manuel Garcia, lauriii, longwave, tedbow, silesky, catch, xjm, droplet, johndevman, nod_, marassa: [JS] Replace jQuery.cookie with JS-cookie and provide a BC layer
2020-03-13 20:00:18 +00:00
|
|
|
"Cookies": true,
|
2016-02-02 15:02:07 +00:00
|
|
|
"Backbone": true,
|
|
|
|
"Modernizr": true,
|
2021-09-13 15:42:12 +00:00
|
|
|
"loadjs": true,
|
Issue #3051766 by bnjmnm, alexpott, Oleksiy, finnsky, zrpnr, jungle, Wim Leers, vacho, anmolgoyal74, lauriii, tim.plunkett, rachel_norfolk, andypost, catch, Gábor Hojtsy, nod_, fubarhouse: Deprecate and replace jQuery Joyride (for tours)
2021-05-19 12:22:11 +00:00
|
|
|
"Shepherd": true,
|
Issue #3064049 by zrpnr, lauriii, bnjmnm, finnsky, alexpott, tedbow, phenaproxima, Wim Leers, xjm, Berdir, sasanikolic, justafish, larowlan: Replace jQuery UI sortable with Sortable js
2019-11-01 00:21:14 +00:00
|
|
|
"Sortable": true,
|
Issue #2402103 by nod_, bnjmnm, larowlan, flxa, anmolgoyal74, droplet, xjm, catch, gabesullice, lauriii, Dries, justafish: Add once.js to core
2021-03-05 13:13:45 +00:00
|
|
|
"once": true,
|
2022-03-10 13:51:46 +00:00
|
|
|
"CKEditor5": true,
|
2021-03-05 12:54:27 +00:00
|
|
|
"tabbable": true
|
2016-02-02 15:02:07 +00:00
|
|
|
},
|
|
|
|
"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"],
|
Issue #3112452 by lalitware, guilhermevp, narendra.rajwar27, WagnerMelo, ravi.shankar, mradcliffe, adalbertov, himanshu_sindhwani, quondam, Vidushi Mehta, alexpott, longwave, anmolgoyal74: Fix indentation consistency in core's yaml files
2022-10-09 11:06:21 +00:00
|
|
|
"operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }],
|
|
|
|
"yml/indent": ["error", 2]
|
2016-02-02 15:02:07 +00:00
|
|
|
}
|
|
|
|
}
|