mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-11-09 17:06:13 -06:00
29 lines
611 B
JavaScript
29 lines
611 B
JavaScript
module.exports = {
|
|
extends: ['standard', 'standard-jsx', 'prettier'],
|
|
globals: {
|
|
__DEV__: true,
|
|
$Dict: true,
|
|
$Diff: true,
|
|
$ElementType: true,
|
|
$Exact: true,
|
|
$Keys: true,
|
|
$PropertyType: true,
|
|
$Shape: true,
|
|
},
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
legacyDecorators: true,
|
|
},
|
|
},
|
|
rules: {
|
|
'no-var': 'error',
|
|
'node/no-extraneous-import': 'error',
|
|
'node/no-extraneous-require': 'error',
|
|
'prefer-const': 'error',
|
|
|
|
// See https://github.com/prettier/eslint-config-prettier/issues/65
|
|
'react/jsx-indent': 'off',
|
|
},
|
|
}
|