UNPKG

eslint-config-weirdpattern

Version:

ESLint shareable config for JavaScript projects

37 lines (33 loc) 679 B
/** * Copyright (c) 2017, WeirdPattern * All rights reserved. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const reactPlugin = require('./lib/rules/react'); module.exports = { parser: 'babel-eslint', plugins: ['react'], env: { browser: true, commonjs: true, es6: true, jest: true, node: true, }, parserOptions: { ecmaVersion: 6, sourceType: 'module', ecmaFeatures: { jsx: true, generators: true, experimentalObjectRestSpread: true, }, }, rules: Object.assign( {}, reactPlugin.rules ), };