Skip to content

Commit 2939c36

Browse files
crashuniversecpojer
authored andcommitted
convert eslint configuration file to .eslintrc.js (#3669)
1 parent c6af39f commit 2939c36

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

.eslintrc

Lines changed: 0 additions & 22 deletions
This file was deleted.

.eslintrc.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
3+
*
4+
* This source code is licensed under the BSD-style license found in the
5+
* LICENSE file in the root directory of this source tree. An additional grant
6+
* of patent rights can be found in the PATENTS file in the same directory.
7+
*/
8+
9+
module.exports = {
10+
'extends': [
11+
'./packages/eslint-config-fb-strict/index.js',
12+
'plugin:import/errors'
13+
],
14+
'parser': 'babel-eslint',
15+
'rules': {
16+
'computed-property-spacing': 0,
17+
'flowtype/boolean-style': 2,
18+
'flowtype/no-primitive-constructor-types': 2,
19+
'flowtype/require-valid-file-annotation': 2,
20+
'max-len': 0,
21+
'no-multiple-empty-lines': 1,
22+
'import/order': 2,
23+
'import/no-duplicates': 2,
24+
'import/no-unresolved': [2, { 'ignore': ['^types/'] }]
25+
},
26+
'plugins': [
27+
'markdown',
28+
'import'
29+
]
30+
};

0 commit comments

Comments
 (0)