Skip to content

Instantly share code, notes, and snippets.

@chourobin
Last active October 27, 2018 00:30
Show Gist options
  • Save chourobin/7bc91aea0ff79701f39bc2d71b6b16d9 to your computer and use it in GitHub Desktop.
Save chourobin/7bc91aea0ff79701f39bc2d71b6b16d9 to your computer and use it in GitHub Desktop.

Revisions

  1. chourobin revised this gist Apr 30, 2017. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    "babel-eslint": "^7.2.3",
    "eslint": "^3.19.0",
    "eslint-config-airbnb": "^14.1.0",
    "eslint-plugin-babel": "^4.1.1",
    "eslint-plugin-import": "^2.2.0",
    "eslint-plugin-jsx-a11y": "^4.0.0",
    "eslint-plugin-react": "^6.10.3",
    "eslint-plugin-react-native": "^2.3.2",
  2. chourobin revised this gist Apr 30, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .eslintrc
    Original file line number Diff line number Diff line change
    @@ -38,6 +38,6 @@
    "react-native/no-color-literals": 2,
    "react/forbid-prop-types": [0, {
    "forbid": []
    }],
    }]
    }
    }
  3. chourobin created this gist Apr 6, 2017.
    43 changes: 43 additions & 0 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,43 @@
    {
    "parser": "babel-eslint",
    "env": {
    "browser": true
    },
    "plugins": [
    "babel",
    "react",
    "react-native"
    ],
    "extends": [
    "airbnb",
    "eslint:recommended",
    "plugin:react/recommended"
    ],
    "ecmaFeatures": {
    "jsx": true,
    "modules": true
    },
    "settings": {
    "import/resolver": {
    "node": {
    "extensions": [
    ".js",
    ".android.js",
    ".ios.js"
    ]
    }
    }
    },
    "rules": {
    "react/jsx-filename-extension": [1, {
    "extensions": [".js", ".jsx"]
    }],
    "react-native/no-unused-styles": 2,
    "react-native/split-platform-components": 2,
    "react-native/no-inline-styles": 2,
    "react-native/no-color-literals": 2,
    "react/forbid-prop-types": [0, {
    "forbid": []
    }],
    }
    }