forked from visgl/react-map-gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 928 Bytes
/
.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
// prettier-ignore
module.exports = {
parser: 'babel-eslint',
plugins: ['flowtype', 'react'],
extends: ['uber-jsx', 'uber-es2015', 'prettier', 'prettier/react', 'prettier/flowtype', 'plugin:import/errors', 'plugin:flowtype/recommended'],
overrides: [{
files: ['*.spec.js', 'webpack.config.js', '**/bundle/*.js'],
rules: {
'import/no-extraneous-dependencies': 0
}
}],
settings: {
'import/core-modules': [
'math.gl',
'viewport-mercator-project'
],
react: {
version: 'detect'
}
},
rules: {
'guard-for-in': 0,
'no-inline-comments': 0,
'no-invalid-this': 0,
camelcase: 0,
'react/forbid-prop-types': 0,
'react/no-deprecated': 0,
'import/no-unresolved': ['error', {ignore: ['test']}],
'import/no-extraneous-dependencies': ['error', {devDependencies: false, peerDependencies: true}]
},
parserOptions: {
ecmaVersion: 2018
}
};