2015-01-30 04:10:49 +03:00
|
|
|
{
|
2017-07-10 22:01:50 +03:00
|
|
|
"root": true,
|
2017-07-11 01:22:19 +03:00
|
|
|
|
2019-03-01 10:45:53 +03:00
|
|
|
"extends": [
|
2019-03-04 07:32:04 +03:00
|
|
|
"./packages/eslint-config-react-native-community/index.js"
|
2015-05-22 21:06:54 +03:00
|
|
|
],
|
|
|
|
|
2020-09-22 21:30:04 +03:00
|
|
|
"plugins": [
|
|
|
|
"@react-native/eslint-plugin-codegen"
|
|
|
|
],
|
|
|
|
|
2018-02-15 18:48:29 +03:00
|
|
|
"overrides": [
|
2019-05-30 17:41:37 +03:00
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"Libraries/**/*.js",
|
|
|
|
],
|
2020-09-22 21:30:04 +03:00
|
|
|
"rules": {
|
|
|
|
"@react-native-community/no-haste-imports": 2,
|
|
|
|
"@react-native-community/error-subclass-name": 2,
|
|
|
|
"@react-native-community/platform-colors": 2,
|
|
|
|
"@react-native/codegen/react-native-modules": 2
|
2019-05-30 17:41:37 +03:00
|
|
|
}
|
|
|
|
},
|
2021-06-07 03:07:43 +03:00
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"flow-typed/**/*.js",
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
quotes: 0
|
|
|
|
}
|
|
|
|
},
|
2018-11-27 14:46:50 +03:00
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"**/__fixtures__/**/*.js",
|
|
|
|
"**/__mocks__/**/*.js",
|
|
|
|
"**/__tests__/**/*.js",
|
|
|
|
"jest/**/*.js",
|
2020-08-20 03:54:30 +03:00
|
|
|
"packages/rn-tester/**/*.js",
|
2018-11-27 14:46:50 +03:00
|
|
|
],
|
|
|
|
"globals": {
|
|
|
|
// Expose some Jest globals for test helpers
|
|
|
|
"afterAll": true,
|
|
|
|
"afterEach": true,
|
|
|
|
"beforeAll": true,
|
|
|
|
"beforeEach": true,
|
|
|
|
"expect": true,
|
|
|
|
"jest": true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"**/__tests__/**/*-test.js",
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"jasmine": true,
|
2020-09-22 21:30:04 +03:00
|
|
|
"jest": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2015-01-30 04:10:49 +03:00
|
|
|
}
|