{ "parser": "@babel/eslint-parser", "parserOptions": { "ecmaFeatures": { "jsx": true, "destructuring": true, "arrowFunctions": true, "classes": true, "objectLiteralShorthandMethods": true, "spread": true } }, "env": { "react-native/react-native": true }, "plugins": ["react", "react-native"], "extends": [ "eslint:recommended", "plugin:react/recommended", "plugin:react-hooks/recommended" ], "rules": { "react-native/no-unused-styles": 2, "react-native/split-platform-components": 2, "react-native/no-color-literals": 0, // "react-native/no-raw-text": [2, { "skip": ["Button"] }], "react-native/sort-styles": [ "error", "asc", { "ignoreClassNames": false, "ignoreStyleProperties": false } ], "arrow-parens": ["error", "always"], "arrow-spacing": ["error", { "before": true, "after": true }], "comma-dangle": [2, "always-multiline"], "comma-spacing": ["error", { "before": false, "after": true }], "eqeqeq": 2, "indent": ["error", 2, {"SwitchCase": 1}], "jsx-quotes": 2, "no-console": ["warn", {"allow": ["warn", "error"]}], "no-const-assign": "error", "no-debugger": 2, "no-dupe-args": 2, "no-multi-spaces": 2, "no-unused-vars": 2, "no-use-before-define": 2, "no-var": "error", "object-shorthand": ["error", "always"], "prefer-template": "error", "quotes": [2, "single"], "react/display-name": 0, "react/jsx-boolean-value": [0, "always"], "react/jsx-curly-spacing": 1, "react/jsx-no-duplicate-props": 1, "react/jsx-no-undef": 1, "react/jsx-sort-prop-types": 0, "react/jsx-sort-props": 0, "react/jsx-uses-react": 1, "react/jsx-uses-vars": 1, "react/no-danger": 1, "react/no-did-mount-set-state": 0, "react/no-did-update-set-state": 1, // "react/no-multi-comp": 2, "react/no-unknown-property": 1, "react/prop-types": 2, "react/react-in-jsx-scope": 1, "react/require-extension": 0, // 1 "react/self-closing-comp": 2, "react/sort-comp": 2, "react/wrap-multilines": 0, // 2 "semi": 2, "space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }], "react-hooks/exhaustive-deps": 0, "object-curly-spacing": ["error", "always"] }, "settings": { "react-native/style-sheet-object-names": ["EStyleSheet", "OtherStyleSheet", "PStyleSheet"], "react": { "version": "detect" } } }