this config extends caixiejs-react
pnpm add -D eslint eslint-config-caixiejs-react-native
{
"extends": "caixiejs-react-native"
}
You don't need .eslintignore normally as it has been provided by the preset.
{
"settings": {
"import/resolver": {
"alias": { // default alias
"map": [
["~", "."],
["@", "./src"]
],
"extensions": [".js", ".jsx", ".mjs", ".ts", ".tsx", "mts", ".d.ts"]
}
}
}
}
For example:
{
"scripts": {
"lint": "eslint . --fix"
}
}