mirror of
https://github.com/zhigang1992/react-native-segmented-control-tab.git
synced 2026-01-12 17:42:48 +08:00
201 lines
3.9 KiB
Plaintext
201 lines
3.9 KiB
Plaintext
{
|
|
"parser": "babel-eslint",
|
|
"extends": "airbnb",
|
|
"plugins": [
|
|
"react",
|
|
"flowtype",
|
|
"jsx-a11y",
|
|
"import",
|
|
"babel"
|
|
],
|
|
"rules": {
|
|
// Best Practices
|
|
"accessor-pairs": 2,
|
|
"block-scoped-var": 2,
|
|
"complexity": [
|
|
"error",
|
|
10
|
|
],
|
|
"consistent-return": 2,
|
|
"curly": 2,
|
|
"default-case": 2,
|
|
"dot-location": [
|
|
2,
|
|
"property"
|
|
],
|
|
"dot-notation": 2,
|
|
"eqeqeq": [
|
|
2,
|
|
"allow-null"
|
|
],
|
|
"guard-for-in": 2,
|
|
"no-alert": 2,
|
|
"no-caller": 2,
|
|
"no-case-declarations": 2,
|
|
"no-div-regex": 2,
|
|
"no-else-return": 2,
|
|
"no-empty-pattern": 2,
|
|
"no-eq-null": 2,
|
|
"no-eval": 2,
|
|
"no-extend-native": 2,
|
|
"no-extra-bind": 2,
|
|
"no-fallthrough": 2,
|
|
"no-floating-decimal": 2,
|
|
"no-implicit-coercion": 2,
|
|
"no-implied-eval": 2,
|
|
"no-invalid-this": 0,
|
|
"no-iterator": 2,
|
|
"no-labels": 2,
|
|
"no-lone-blocks": 2,
|
|
"no-loop-func": 2,
|
|
"no-magic-numbers": 0,
|
|
"no-multi-str": 2,
|
|
"no-native-reassign": 2,
|
|
"no-new-func": 2,
|
|
"no-new-wrappers": 2,
|
|
"no-new": 2,
|
|
"no-octal-escape": 2,
|
|
"no-octal": 2,
|
|
"no-param-reassign": 2,
|
|
"no-process-env": 0,
|
|
"no-proto": 2,
|
|
"no-redeclare": 2,
|
|
"no-return-assign": 2,
|
|
"no-script-url": 2,
|
|
"no-self-compare": 2,
|
|
"no-sequences": 2,
|
|
"no-throw-literal": 2,
|
|
"no-unsafe-negation": 2,
|
|
"no-unused-expressions": 2,
|
|
"no-useless-call": 2,
|
|
"no-useless-concat": 2,
|
|
"no-useless-rename": 0,
|
|
"no-void": 2,
|
|
"no-warning-comments": 1,
|
|
"no-with": 2,
|
|
"prefer-destructuring": [
|
|
2,
|
|
{
|
|
"array": false,
|
|
"object": true
|
|
},
|
|
{
|
|
"enforceForRenamedProperties": false
|
|
}
|
|
],
|
|
"radix": 2,
|
|
"semi-spacing": 2,
|
|
"vars-on-top": 0,
|
|
"wrap-iife": 2,
|
|
"yoda": 2,
|
|
// Flow
|
|
"flowtype/use-flow-type": 2,
|
|
"flowtype/define-flow-type": 2,
|
|
"flowtype/space-after-type-colon": [
|
|
2,
|
|
"always"
|
|
],
|
|
"flowtype/space-before-type-colon": [
|
|
2,
|
|
"never"
|
|
],
|
|
"flowtype/require-valid-file-annotation": [
|
|
2,
|
|
"always",
|
|
{
|
|
"annotationStyle": "block"
|
|
}
|
|
],
|
|
// ES6
|
|
"arrow-body-style": 0,
|
|
"arrow-parens": 0,
|
|
"arrow-spacing": 2,
|
|
"constructor-super": 2,
|
|
"generator-star-spacing": [
|
|
2,
|
|
{
|
|
"before": true,
|
|
"after": true
|
|
}
|
|
],
|
|
"no-class-assign": 2,
|
|
"no-confusing-arrow": 2,
|
|
"no-const-assign": 2,
|
|
"no-dupe-class-members": 2,
|
|
"no-this-before-super": 2,
|
|
"no-var": 2,
|
|
"object-shorthand": 2,
|
|
"prefer-arrow-callback": 2,
|
|
"prefer-const": 2,
|
|
"prefer-reflect": 0,
|
|
"prefer-spread": 2,
|
|
"prefer-template": 2,
|
|
"rest-spread-spacing": [
|
|
2,
|
|
"never"
|
|
],
|
|
// Variables
|
|
"init-declarations": 0,
|
|
"no-catch-shadow": 2,
|
|
"no-delete-var": 2,
|
|
"no-label-var": 2,
|
|
"no-shadow": 0,
|
|
"no-shadow-restricted-names": 2,
|
|
"no-undef": 2,
|
|
"no-undef-init": 2,
|
|
"no-undefined": 0,
|
|
"no-unused-vars": [
|
|
2,
|
|
{
|
|
"vars": "all",
|
|
"args": "none"
|
|
}
|
|
],
|
|
"no-use-before-define": 0,
|
|
"react/require-default-props": 0,
|
|
"react/prop-types": 0,
|
|
"react/jsx-filename-extension": [
|
|
1,
|
|
{
|
|
"extensions": [
|
|
".js",
|
|
".jsx"
|
|
]
|
|
}
|
|
],
|
|
"react/prefer-stateless-function": [
|
|
2,
|
|
{
|
|
"ignorePureComponents": true
|
|
}
|
|
],
|
|
"react/forbid-prop-types": [
|
|
0,
|
|
{
|
|
"forbid": []
|
|
}
|
|
],
|
|
"import/extensions": [
|
|
1,
|
|
"never",
|
|
{
|
|
"svg": "always"
|
|
}
|
|
],
|
|
"import/no-extraneous-dependencies": [
|
|
"error",
|
|
{
|
|
"devDependencies": true,
|
|
"optionalDependencies": false,
|
|
"peerDependencies": false
|
|
}
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
]
|
|
},
|
|
"env": {
|
|
"jest": true
|
|
}
|
|
} |