react-native-input-credit-card
Version:
React native credit card input component
139 lines (138 loc) • 2.74 kB
JSON
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"linebreak-style": [
"warn",
"unix"
],
"no-multiple-empty-lines": [
"warn",
{
"max": 2,
"maxEOF": 1
}
],
"no-unused-vars": "warn",
"vars-on-top": "warn",
"no-console": [
"warn",
{
"allow": [
"warn",
"error"
]
}
],
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"comma-spacing": "warn",
"space-infix-ops": "warn",
"no-trailing-spaces": "warn",
"no-unreachable": "off",
"template-curly-spacing": "warn",
"prefer-template": "warn",
"no-debugger": "warn",
"no-extra-boolean-cast": "warn",
"no-irregular-whitespace": "warn",
"no-multi-spaces": "warn",
"no-template-curly-in-string": "warn",
"no-unneeded-ternary": "warn",
"no-case-declarations": "off",
"no-unused-expressions": "off",
"no-else-return": "warn",
"no-restricted-globals": "off",
"no-use-before-define": "off",
"no-mixed-spaces-and-tabs": "warn",
"no-extra-parens": "off",
"object-shorthand": "warn",
"prefer-arrow-callback": "warn",
"no-duplicate-imports": "warn",
"arrow-spacing": "warn",
"no-sequences": "off",
"no-lonely-if": "warn",
"jsx-quotes": [
"warn",
"prefer-single"
],
"quotes": [
"warn",
"single"
],
"object-curly-spacing": [
"warn",
"always"
],
"key-spacing": "warn",
"semi": [
"warn",
"never"
],
"arrow-parens": [
"warn",
"as-needed"
],
"react/self-closing-comp": [
"warn",
{
"component": true
}
],
"react/jsx-closing-bracket-location": [
1,
"tag-aligned"
],
"react/jsx-max-props-per-line": [
1,
{
"when": "multiline"
}
],
"react/jsx-first-prop-new-line": [
1,
"multiline"
],
"react/jsx-tag-spacing": [
1,
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}
],
"react/prop-types": "off",
"react/prefer-stateless-function": [
1
],
"react/no-deprecated": "off",
"comma-dangle": "off",
"react/display-name": "off",
"import/no-unresolved": "off"
}
}