Mercurial > hg > isophonics-drupal-site
annotate core/.eslintrc.json @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@0 | 1 { |
Chris@17 | 2 "extends": [ |
Chris@17 | 3 "airbnb", |
Chris@17 | 4 "plugin:prettier/recommended" |
Chris@17 | 5 ], |
Chris@0 | 6 "root": true, |
Chris@0 | 7 "env": { |
Chris@0 | 8 "browser": true, |
Chris@0 | 9 "es6": true, |
Chris@0 | 10 "node": true |
Chris@0 | 11 }, |
Chris@0 | 12 "globals": { |
Chris@0 | 13 "Drupal": true, |
Chris@0 | 14 "drupalSettings": true, |
Chris@0 | 15 "drupalTranslations": true, |
Chris@0 | 16 "domready": true, |
Chris@0 | 17 "jQuery": true, |
Chris@0 | 18 "_": true, |
Chris@0 | 19 "matchMedia": true, |
Chris@0 | 20 "Backbone": true, |
Chris@0 | 21 "Modernizr": true, |
Chris@0 | 22 "CKEDITOR": true |
Chris@0 | 23 }, |
Chris@0 | 24 "rules": { |
Chris@17 | 25 "prettier/prettier": "error", |
Chris@17 | 26 "consistent-return": ["off"], |
Chris@17 | 27 "no-underscore-dangle": ["off"], |
Chris@17 | 28 "max-nested-callbacks": ["warn", 3], |
Chris@17 | 29 "import/no-mutable-exports": ["warn"], |
Chris@17 | 30 "no-plusplus": ["warn", { |
Chris@0 | 31 "allowForLoopAfterthoughts": true |
Chris@0 | 32 }], |
Chris@17 | 33 "no-param-reassign": ["off"], |
Chris@17 | 34 "no-prototype-builtins": ["off"], |
Chris@17 | 35 "valid-jsdoc": ["warn", { |
Chris@0 | 36 "prefer": { |
Chris@0 | 37 "returns": "return", |
Chris@0 | 38 "property": "prop" |
Chris@0 | 39 }, |
Chris@0 | 40 "requireReturn": false |
Chris@0 | 41 }], |
Chris@17 | 42 "no-unused-vars": ["warn"], |
Chris@17 | 43 "operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }] |
Chris@0 | 44 } |
Chris@0 | 45 } |