|
1 | | -'use strict'; |
2 | | - |
3 | 1 | module.exports = { |
4 | | - parser: 'babel-eslint', |
5 | | - extends: 'airbnb', |
6 | | - plugins: ['react', 'react-native'], |
| 2 | + parser: "babel-eslint", |
| 3 | + extends: "airbnb", |
| 4 | + plugins: ["react", "react-native"], |
7 | 5 | env: { |
8 | 6 | jest: true, |
9 | | - 'react-native/react-native': true, |
| 7 | + "react-native/react-native": true |
10 | 8 | }, |
11 | 9 | rules: { |
12 | 10 | // allow js file extension |
13 | | - 'react/jsx-filename-extension': [ |
14 | | - 'error', |
| 11 | + "react/jsx-filename-extension": [ |
| 12 | + "error", |
15 | 13 | { |
16 | | - extensions: ['.js', '.jsx'], |
17 | | - }, |
| 14 | + extensions: [".js", ".jsx"] |
| 15 | + } |
18 | 16 | ], |
19 | 17 | // for post defining style object in react-native |
20 | | - 'no-use-before-define': ['error', { variables: false }], |
| 18 | + "no-use-before-define": ["error", { variables: false }], |
21 | 19 | // react-native rules |
22 | | - 'react-native/no-unused-styles': 2, |
23 | | - 'react-native/split-platform-components': 2, |
24 | | - 'react-native/no-inline-styles': 2, |
25 | | - 'react-native/no-raw-text': 2, |
26 | | - }, |
| 20 | + "react-native/no-unused-styles": 2, |
| 21 | + "react-native/split-platform-components": 2, |
| 22 | + "react-native/no-inline-styles": 2, |
| 23 | + "react-native/no-raw-text": 2 |
| 24 | + } |
27 | 25 | }; |
0 commit comments