eslint-config-react-native-wcandillon
Version:
My ESLint and TypeScript configuration for React Native.
36 lines (35 loc) • 1.69 kB
JSON
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "wcandillon's config",
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"es2019"
],
"allowJs": true,
"skipLibCheck": true,
"noEmit": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"moduleResolution": "node",
"jsx": "react-native",
"strict": true,
"noUnusedLocals": true /* Report errors on unused locals. */,
"noUnusedParameters": true /* Report errors on unused parameters. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
"noUncheckedIndexedAccess": false, /* Include 'undefined' in index signature results */
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"strictNullChecks": true, /* Enable strict null checks. */
"strictFunctionTypes": true, /* Enable strict checking of function types. */
"strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
"strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
"alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */
},
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
}