ecency-mobile/.eslintrc.json
2021-03-14 22:10:34 +05:00

74 lines
1.6 KiB
JSON

{
"parser": "babel-eslint",
"extends": [
"airbnb",
"prettier",
"plugin:prettier/recommended",
"plugin:eslint-comments/recommended",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jest/recommended",
"@react-native-community",
"plugin:import/typescript"
],
"env": {
"browser": true,
"jest": true,
"react-native/react-native": true,
"node": true
},
"plugins": [
"react",
"react-native",
"react-hooks",
"jsx-a11y",
"import",
"prettier",
"jest",
"eslint-comments"
],
"rules": {
"react/jsx-filename-extension": [
2,
{
"extensions": [".js", ".jsx"]
}
],
"max-len": ["warn", 100],
"react/forbid-prop-types": [0],
"no-underscore-dangle": 0,
"react/require-default-props": [0],
"global-require": [0],
"func-names": ["error", "as-needed"],
"linebreak-style": 0,
"no-use-before-define": "off",
"import/prefer-default-export": "off",
"react/prop-types": 0,
"import/no-named-default": "off",
"no-param-reassign": "off",
"no-case-declarations": "off",
"import/no-cycle": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off",
"react/destructuring-assignment": [1, "always"],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/no-unresolved": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}