-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (46 loc) · 1.28 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* @file Hash table implementation. (ESLint config file.)
* @author Alice Klipper <[email protected]> (https://t.me/aliceklipper)
* @license MIT
* @copyright KlipperSubs, 2017
* @flow
*/
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
extends: ['eslint:recommended', 'google', 'plugin:flowtype/recommended', 'prettier', 'prettier/flowtype'],
parserOptions: {
ecmaVersion: 8,
impliedStrict: true,
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
sourceType: 'module',
},
plugins: ['flowtype', 'prettier', 'flowtype-errors'],
rules: {
'prettier/prettier': [
'error',
{
useTabs: false,
printWidth: 160,
tabWidth: 4,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
parser: 'flow',
semi: true,
},
],
'no-console': 'off',
'require-jsdoc': 'off',
'no-irregular-whitespace': 'off',
'flowtype/no-types-missing-file-annotation': 'off',
// 'flowtype-errors/show-errors': 'error',
},
};