|
| 1 | +/*! |
| 2 | + * Copyright 2020 Google Inc. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +module.exports = { |
| 18 | + root: true, |
| 19 | + parser: '@typescript-eslint/parser', |
| 20 | + plugins: [ |
| 21 | + '@typescript-eslint', |
| 22 | + ], |
| 23 | + extends: [ |
| 24 | + 'eslint:recommended', |
| 25 | + 'plugin:@typescript-eslint/eslint-recommended', |
| 26 | + 'plugin:@typescript-eslint/recommended', |
| 27 | + ], |
| 28 | + rules: { |
| 29 | + // Following checks are temporarily disabled. We shall incrementally enable them in the |
| 30 | + // future, fixing any violations as we go. |
| 31 | + "@typescript-eslint/no-explicit-any": 0, |
| 32 | + "@typescript-eslint/no-use-before-define": 0, |
| 33 | + "@typescript-eslint/explicit-function-return-type": 0, |
| 34 | + "@typescript-eslint/camelcase": 0, |
| 35 | + "@typescript-eslint/no-inferrable-types": 0, |
| 36 | + "@typescript-eslint/no-non-null-assertion": 0, |
| 37 | + "@typescript-eslint/no-inferrable-types": 0, |
| 38 | + "@typescript-eslint/no-var-requires": 0, |
| 39 | + "@typescript-eslint/no-unused-vars": 0, |
| 40 | + "@typescript-eslint/member-delimiter-style": 0, |
| 41 | + "@typescript-eslint/no-empty-interface": 0, |
| 42 | + "@typescript-eslint/no-array-constructor": 0, |
| 43 | + "@typescript-eslint/ban-types": 0, |
| 44 | + "no-case-declarations": 0, |
| 45 | + "no-useless-escape": 0, |
| 46 | + "no-prototype-builtins": 0, |
| 47 | + "no-var": 0, |
| 48 | + |
| 49 | + // Required checks |
| 50 | + "indent": ["error", 2] |
| 51 | + } |
| 52 | +}; |
0 commit comments