-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
47 lines (46 loc) · 860 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
35
36
37
38
39
40
41
42
43
44
45
46
47
const webpackConfig = require('./webpack.common');
module.exports = {
extends: ['airbnb/base', 'prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': ['error'],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true
}
],
'no-plusplus': [
2,
{
allowForLoopAfterthoughts: true
}
],
'global-require': 0,
'no-useless-constructor': 0,
'no-param-reassign': 0
},
globals: {
Phaser: false,
Global: false,
Customs: false
},
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
allowImportExportEverywhere: false,
codeFrame: true
},
env: {
browser: true,
node: true,
mocha: true
},
settings: {
'import/resolver': {
webpack: {
config: webpackConfig
}
}
}
};