Created
November 25, 2017 16:27
-
-
Save gHashTag/30ffe6ef5c4074f3a5977865f42b1221 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // работает | |
| { | |
| "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