2 Star 0 Fork 0

mirrors_facebook/metro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 968 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rob Hogan 提交于 2023-08-21 11:13 . Allow linting package.json with ESLint
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @oncall react_native
*/
'use strict';
module.exports = {
extends: './scripts/eslint/base',
overrides: [
{
files: ['flow-typed/**/*.js'],
rules: {
'babel/quotes': 'off',
'lint/flow-function-shape': 'off',
},
},
{
files: ['package.json'],
parser: 'jsonc-eslint-parser',
},
{
files: ['packages/*/types/**/*.d.ts'],
extends: './scripts/eslint/typescript',
},
{
files: ['packages/metro-source-map/**/*.js'],
rules: {
'operator-assignment': ['error', 'never'],
},
},
{
files: ['scripts/**/*.js'],
rules: {
'babel/func-params-comma-dangle': 'off',
'import/no-extraneous-dependencies': 'off',
},
},
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_facebook/metro.git
[email protected]:mirrors_facebook/metro.git
mirrors_facebook
metro
metro
main

搜索帮助