1+ /**
2+ * @module
3+ * @license MIT
4+ * @author Sébastien Règne
5+ */
6+
17export default {
28 plugins : [
39 "array-func" ,
@@ -310,7 +316,7 @@ export default {
310316 "keyword-spacing" : 2 ,
311317 "line-comment-position" : 2 ,
312318 "linebreak-style" : 2 ,
313- "lines-around-comment" : 2 ,
319+ "lines-around-comment" : [ 2 , { afterHashbangComment : true } ] ,
314320 "lines-between-class-members" : 2 ,
315321 "max-len" : 1 ,
316322 "max-statements-per-line" : [ 2 , { max : 2 } ] ,
@@ -448,7 +454,11 @@ export default {
448454 // les imports ne sont pas gérés.
449455 // https://github.com/import-js/eslint-plugin-import/issues/2673
450456 "import/newline-after-import" : [ 2 , { considerComments : false } ] ,
451- "import/no-anonymous-default-export" : 2 ,
457+ "import/no-anonymous-default-export" : [ 2 , {
458+ allowArray : true ,
459+ allowCallExpression : false ,
460+ allowObject : true ,
461+ } ] ,
452462 "import/no-default-export" : 0 ,
453463 "import/no-duplicates" : 2 ,
454464 "import/no-named-default" : 2 ,
@@ -469,10 +479,13 @@ export default {
469479 // https://github.com/gajus/eslint-plugin-jsdoc/releases/tag/v37.0.0
470480 "jsdoc/check-examples" : 0 ,
471481 "jsdoc/check-indentation" : 0 ,
472- // Ne pas activer cette règle car elle demande d'aligner les paramètres
473- // et les valeurs de retours (l'option "tags" fonctionne seulement avec
474- // "never").
475- "jsdoc/check-line-alignment" : 0 ,
482+ "jsdoc/check-line-alignment" : [ 2 , "always" , {
483+ tags : [ "param" , "property" ] ,
484+ customSpacings : {
485+ postDelimiter : 1 ,
486+ postTag : 1 ,
487+ } ,
488+ } ] ,
476489 "jsdoc/check-param-names" : 2 ,
477490 "jsdoc/check-property-names" : 2 ,
478491 "jsdoc/check-syntax" : 2 ,
0 commit comments