2020-09-14 02:59:02 -04:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2018-08-28 21:42:48 -04:00
|
|
|
{
|
2020-12-01 14:14:37 -05:00
|
|
|
"plugins": ["jest", "jest-dom", "no-only-tests", "testing-library"],
|
2018-09-13 17:45:24 -04:00
|
|
|
"env": {
|
2018-10-15 16:10:18 -04:00
|
|
|
"jest/globals": true
|
2018-09-13 17:45:24 -04:00
|
|
|
},
|
2021-02-11 18:32:22 -05:00
|
|
|
"settings": {
|
|
|
|
"jest": {
|
|
|
|
"version": "detect"
|
|
|
|
}
|
|
|
|
},
|
2020-12-01 14:14:37 -05:00
|
|
|
"extends": [
|
|
|
|
"plugin:jest/recommended",
|
2021-02-11 18:32:22 -05:00
|
|
|
"plugin:jest-dom/recommended",
|
2020-12-01 14:14:37 -05:00
|
|
|
"plugin:testing-library/react"
|
|
|
|
],
|
2018-08-28 21:42:48 -04:00
|
|
|
"rules": {
|
2020-08-21 13:32:37 -04:00
|
|
|
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
|
2018-10-15 16:10:18 -04:00
|
|
|
"jest/consistent-test-it": "error",
|
2020-09-14 02:59:02 -04:00
|
|
|
"no-only-tests/no-only-tests": "error",
|
2020-12-01 14:14:37 -05:00
|
|
|
"prefer-promise-reject-errors": 0
|
2018-08-28 21:42:48 -04:00
|
|
|
}
|
|
|
|
}
|