UNPKG

eslint-config-sanjagh

Version:
62 lines (49 loc) 1.16 kB
module.exports = { env: { es6: true, }, parserOptions: { ecmaVersion: 6, sourceType: 'module', ecmaFeatures: { generators: false, }, }, rules: { 'no-const-assign': 'error', 'prefer-const': ['error', { destructuring: 'any', ignoreReadBeforeAssign: true, }], 'no-var': 'error', 'object-shorthand': ['error', 'always', { ignoreConstructors: false, avoidQuotes: true, }], 'prefer-destructuring': ['error', { VariableDeclarator: { array: false, object: true, }, AssignmentExpression: { array: true, object: true, }, }, { enforceForRenamedProperties: false, }], 'prefer-template': 'error', 'template-curly-spacing': 'error', 'prefer-rest-params': 'error', 'prefer-arrow-callback': ['error', { allowNamedFunctions: false, allowUnboundThis: true, }], 'arrow-spacing': ['error', { before: true, after: true }], 'no-confusing-arrow': ['error', { allowParens: true, }], 'no-useless-constructor': 'error', 'no-dupe-class-members': 'error', }, };