@abdullahceylan/eslint-config-react-native 中文文档教程
@abdullahceylan/eslint-config-react-native
我使用过的 ESLint React Native 配置。
Install
npm install --save-dev @abdullahceylan/eslint-config-react-native
或
yarn add --dev @abdullahceylan/eslint-config-react-native
Usage
- Create
.eslintrc.js
folder into root directory - Paste following:
module.exports = {
parser: 'babel-eslint',
extends: [
'@abdullahceylan/eslint-config', // optional
'@abdullahceylan/eslint-config-react-native',
],
env: {
es6: true,
},
rules: {
// your own rules
},
};
@abdullahceylan/eslint-config-react-native
ESLint React Native configurations that I've used.
Install
npm install --save-dev @abdullahceylan/eslint-config-react-native
or
yarn add --dev @abdullahceylan/eslint-config-react-native
Usage
- Create
.eslintrc.js
folder into root directory - Paste following:
module.exports = {
parser: 'babel-eslint',
extends: [
'@abdullahceylan/eslint-config', // optional
'@abdullahceylan/eslint-config-react-native',
],
env: {
es6: true,
},
rules: {
// your own rules
},
};