Skip to content
项目

wcandillon/eslint-config-react-native-wcandillon

在 GitHub 查看

关于

ESLint and TypeScript configuration for React Native

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

eslint-config-react-native-wcandillon

My ESLint and TypeScript configuration for React Native.

npm version

Usage

# you also need eslint if not installed already: yarn add eslint --dev
yarn add eslint-config-react-native-wcandillon --dev

In .eslintrc:

{ 
  "extends": "react-native-wcandillon", 
} 

In tsconfig.json (if you want to use my base TS configuration):

{
  "extends": "eslint-config-react-native-wcandillon/tsconfig.base"
}

The base mirrors @react-native/typescript-config: moduleResolution: "bundler" with the react-native custom condition (so package.json exports resolve the way Metro resolves them), module: "esnext", isolatedModules, and the Hermes-compatible lib list plus dom. Because of bundler resolution, do not override module with commonjs in a project that extends it. Packages that publish their typings through exports (for example three/webgpu and three/addons/*.js) resolve without paths mappings.

探索相关项目

加载中…