UNPKG

react-native-sem

Version:
54 lines (52 loc) 1.68 kB
module.exports = { parser: "@typescript-eslint/parser", parserOptions: { project: "tsconfig.json", tsconfigRootDir: __dirname, sourceType: "module", }, plugins: ["@typescript-eslint/eslint-plugin"], extends: [ "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", ], root: true, env: { node: true, jest: true, }, // build folder comes from default Expo eslint config ignorePatterns: [".eslintrc.js", "build"], rules: { "@typescript-eslint/array-type": ["error", { default: "generic" }], "@typescript-eslint/explicit-module-boundary-types": "warn", "@typescript-eslint/no-explicit-any": "error", "@typescript-eslint/explicit-function-return-type": "warn", "@typescript-eslint/ban-ts-comment": [ "warn", { "ts-expect-error": "allow-with-description", }, ], "@typescript-eslint/ban-types": "warn", "@typescript-eslint/naming-convention": [ "error", { selector: ["variable", "function"], format: ["camelCase", "UPPER_CASE", "PascalCase"], leadingUnderscore: "allow", }, ], "@typescript-eslint/no-for-in-array": "error", "@typescript-eslint/restrict-plus-operands": "error", "@typescript-eslint/no-require-imports": "warn", "@typescript-eslint/switch-exhaustiveness-check": "error", "@typescript-eslint/promise-function-async": "warn", "@typescript-eslint/consistent-type-imports": "warn", // Extension Rules "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "warn", "no-throw-literal": "off", "@typescript-eslint/no-throw-literal": "error", }, };