-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
30 lines (28 loc) · 1001 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
"env": {
"es2021": true,
"node": true,
"react-native/react-native": true // *2
},
"extends": [
"plugin:@typescript-eslint/recommended-requiring-type-checking", // *1
"eslint-config-gev/react-native" // https://github.com/SrBrahma/eslint-config-gev
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": __dirname, // *1
"project": ['./tsconfig.lint.json'], // *1
"ecmaVersion": 12,
"sourceType": "module",
"ecmaFeatures": { // *2
"jsx": true
}
},
"ignorePatterns": [".eslintrc.js"],
"rules": {
}
};
// [*1] - https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md#getting-started---linting-with-type-information
// [*2] - https://github.com/Intellicode/eslint-plugin-react-native#configuration