eslint-config-migme
Version:
migme's ESLint config
53 lines (52 loc) • 1.26 kB
JavaScript
module.exports = {
env: {
es6: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
generators: false,
objectLiteralDuplicateProperties: false,
experimentalObjectRestSpread: true,
},
},
rules: {
'arrow-body-style': [2, 'as-needed'],
'arrow-parens': [2, 'as-needed'],
'arrow-spacing': [2, {
before: true,
after: true,
}],
'constructor-super': 2,
'generator-star-spacing': [2, {
before: true,
after: true,
}],
'no-class-assign': 2,
'no-confusing-arrow': 2,
'no-const-assign': 2,
'no-dupe-class-members': 2,
'no-duplicate-imports': 2,
'no-new-symbol': 0,
'no-restricted-imports': 0,
'no-this-before-super': 2,
'no-useless-computed-key': 2,
'no-useless-constructor': 2,
'no-useless-rename': 2,
'no-var': 2,
'object-shorthand': [2, 'always'],
'prefer-arrow-callback': 2,
'prefer-const': 2,
'prefer-reflect': 0,
'prefer-rest-params': 2,
'prefer-spread': 2,
'prefer-template': 2,
'require-yield': 0,
'rest-spread-spacing': [2, 'never'],
'sort-imports': 0,
'template-curly-spacing': 2,
'yield-star-spacing': [2, 'after'],
},
}