2020-04-02 14:15:02 +00:00
|
|
|
const config = {
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2018,
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
2017-04-19 00:55:46 +00:00
|
|
|
"extends": [
|
|
|
|
"airbnb-base",
|
|
|
|
"prettier"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"prettier"
|
|
|
|
],
|
2017-04-19 00:47:53 +00:00
|
|
|
"rules": {
|
2017-04-19 00:55:46 +00:00
|
|
|
"prettier/prettier": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"bracketSpacing": true,
|
|
|
|
"semi": false,
|
|
|
|
"singleQuote": true,
|
|
|
|
"trailingComma": "es5"
|
|
|
|
}
|
|
|
|
],
|
2017-04-19 00:47:53 +00:00
|
|
|
"no-confusing-arrow": "off",
|
|
|
|
"comma-dangle": ["error", {
|
|
|
|
"arrays": "always-multiline",
|
|
|
|
"objects": "always-multiline",
|
|
|
|
"imports": "always-multiline",
|
|
|
|
"exports": "always-multiline",
|
|
|
|
"functions": "never"
|
|
|
|
}]
|
2020-04-02 14:15:02 +00:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['**/*.d.ts'],
|
|
|
|
rules: {
|
|
|
|
strict: 'off',
|
|
|
|
'no-var': 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
2015-07-31 15:53:25 +00:00
|
|
|
}
|
2020-04-02 14:15:02 +00:00
|
|
|
|
|
|
|
module.exports = config
|