Skip to content

Instantly share code, notes, and snippets.

@gHashTag
Created November 25, 2017 16:27
Show Gist options
  • Select an option

  • Save gHashTag/30ffe6ef5c4074f3a5977865f42b1221 to your computer and use it in GitHub Desktop.

Select an option

Save gHashTag/30ffe6ef5c4074f3a5977865f42b1221 to your computer and use it in GitHub Desktop.
// работает
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["eslint:all", "plugin:react/all"],
"rules": {
"strict": 0,
'react/jsx-uses-react': 0,
'react/jsx-uses-vars': 0,
"indent": ["error", 2],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "single" ],
"semi": [ "error", "never" ],
}
}
// не работает
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native"
],
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["eslint:all", "plugin:react-native/all"],
"rules": {
"strict": 0,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"indent": [2, 2, {"SwitchCase": 1}],
"react/jsx-indent": ["error", 2],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "single" ],
"semi": [ "error", "never" ],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment