annotate core/.eslintrc.legacy.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@0 2 "extends": "eslint:recommended",
Chris@0 3 "root": true,
Chris@0 4 "env": {
Chris@0 5 "browser": true
Chris@0 6 },
Chris@0 7 "globals": {
Chris@0 8 "Drupal": true,
Chris@0 9 "drupalSettings": true,
Chris@0 10 "drupalTranslations": true,
Chris@0 11 "domready": true,
Chris@0 12 "jQuery": true,
Chris@0 13 "_": true,
Chris@0 14 "matchMedia": true,
Chris@0 15 "Backbone": true,
Chris@0 16 "Modernizr": true,
Chris@0 17 "CKEDITOR": true
Chris@0 18 },
Chris@0 19 "rules": {
Chris@17 20 "array-bracket-spacing": ["error", "never"],
Chris@17 21 "block-scoped-var": "error",
Chris@17 22 "brace-style": ["error", "stroustrup", {"allowSingleLine": true}],
Chris@17 23 "comma-dangle": ["error", "never"],
Chris@17 24 "comma-spacing": "error",
Chris@17 25 "comma-style": ["error", "last"],
Chris@17 26 "computed-property-spacing": ["error", "never"],
Chris@17 27 "curly": ["error", "all"],
Chris@17 28 "eol-last": "error",
Chris@17 29 "eqeqeq": ["error", "smart"],
Chris@17 30 "guard-for-in": "error",
Chris@17 31 "indent": ["error", 2, {"SwitchCase": 1}],
Chris@17 32 "key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
Chris@17 33 "keyword-spacing": ["error", {"before": true, "after": true}],
Chris@17 34 "linebreak-style": ["error", "unix"],
Chris@17 35 "lines-around-comment": ["error", {"beforeBlockComment": true, "afterBlockComment": false}],
Chris@17 36 "new-parens": "error",
Chris@17 37 "no-array-constructor": "error",
Chris@17 38 "no-caller": "error",
Chris@17 39 "no-catch-shadow": "error",
Chris@17 40 "no-eval": "error",
Chris@17 41 "no-extend-native": "error",
Chris@17 42 "no-extra-bind": "error",
Chris@17 43 "no-extra-parens": ["error", "functions"],
Chris@17 44 "no-implied-eval": "error",
Chris@17 45 "no-iterator": "error",
Chris@17 46 "no-label-var": "error",
Chris@17 47 "no-labels": "error",
Chris@17 48 "no-lone-blocks": "error",
Chris@17 49 "no-loop-func": "error",
Chris@17 50 "no-multi-spaces": "error",
Chris@17 51 "no-multi-str": "error",
Chris@17 52 "no-native-reassign": "error",
Chris@17 53 "no-nested-ternary": "error",
Chris@17 54 "no-new-func": "error",
Chris@17 55 "no-new-object": "error",
Chris@17 56 "no-new-wrappers": "error",
Chris@17 57 "no-octal-escape": "error",
Chris@17 58 "no-process-exit": "error",
Chris@17 59 "no-proto": "error",
Chris@17 60 "no-return-assign": "error",
Chris@17 61 "no-script-url": "error",
Chris@17 62 "no-sequences": "error",
Chris@17 63 "no-shadow-restricted-names": "error",
Chris@17 64 "no-spaced-func": "error",
Chris@17 65 "no-trailing-spaces": "error",
Chris@17 66 "no-undef-init": "error",
Chris@17 67 "no-undefined": "error",
Chris@17 68 "no-unused-expressions": "error",
Chris@17 69 "no-unused-vars": ["error", {"vars": "all", "args": "none"}],
Chris@17 70 "no-with": "error",
Chris@17 71 "object-curly-spacing": ["error", "never"],
Chris@17 72 "one-var": ["error", "never"],
Chris@17 73 "quote-props": ["error", "consistent-as-needed"],
Chris@17 74 "quotes": ["error", "single", "avoid-escape"],
Chris@17 75 "semi": ["error", "always"],
Chris@17 76 "semi-spacing": ["error", {"before": false, "after": true}],
Chris@17 77 "space-before-blocks": ["error", "always"],
Chris@17 78 "space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
Chris@17 79 "space-in-parens": ["error", "never"],
Chris@17 80 "space-infix-ops": "error",
Chris@17 81 "space-unary-ops": ["error", { "words": true, "nonwords": false }],
Chris@17 82 "spaced-comment": ["error", "always"],
Chris@17 83 "strict": ["error", "function"],
Chris@17 84 "yoda": ["error", "never"],
Chris@17 85 "max-nested-callbacks": ["warn", 3],
Chris@17 86 "valid-jsdoc": ["warn", {
Chris@0 87 "prefer": {
Chris@0 88 "returns": "return",
Chris@0 89 "property": "prop"
Chris@0 90 },
Chris@0 91 "requireReturn": false
Chris@0 92 }]
Chris@0 93 }
Chris@0 94 }