.jshintrc 2.73 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
{
    "browser": true, // Standard browser globals e.g. `window`, `document`.
    "bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
    "camelcase": false, // Permit only camelcase for `var` and `object indexes`.
    "curly": false, // Require {} for every new block or scope.
    "devel": true, // Allow development statements e.g. `console.log();`.
    "esnext": true, // Allow ES.next specific features such as `const` and `let`.
    "eqeqeq": true, // Require triple equals i.e. `===`.
    "immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
    "indent": false, // Specify indentation spacing
    "latedef": true, // Prohibit variable use before definition.
    "node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
    "newcap": false, // Require capitalization of all constructor functions e.g. `new F()`.
    "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
    "noempty": true, // Prohibit use of empty blocks.
    "quotmark": false, // Define quotes to string values.
    "regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
    "strict": true, // Require `use strict` pragma in every file.
    "smarttabs": false, // Suppresses warnings about mixed tabs and spaces
    "trailing": true, // Prohibit trailing whitespaces.
    "undef": true, // Require all non-global variables be declared before they are used.
    "unused": true, // Warn unused variables.
    "globals": { // Globals variables.
42 43
        "angular": true,
        "$": false
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    },
    "predef": [ // Extra globals.
        "define",
        "require",
        "exports",
        "module",
        "spyOn",
        "describe",
        "xdescribe",
        "before",
        "beforeEach",
        "after",
        "afterEach",
        "jasmine",
        "it",
        "xit",
        "inject",
        "expect",
        "ngGridFlexibleHeightPlugin"
    ]
64
}