1+ var ecmaFeatures = {
2+ 'jsx' : true ,
3+ 'arrowFunctions' : true ,
4+ 'blockBindings' : true ,
5+ 'defaultParams' : true ,
6+ 'destructuring' : true ,
7+ 'forOf' : true ,
8+ 'generators' : true ,
9+ 'objectLiteralComputedProperties' : true ,
10+ 'objectLiteralShorthandMethods' : true ,
11+ 'objectLiteralShorthandProperties' : true ,
12+ 'experimentalObjectRestSpread' : true ,
13+ 'restParams' : true ,
14+ 'spread' : true ,
15+ 'templateStrings' : true ,
16+ 'modules' : true ,
17+ 'classes' : true
18+ } ;
19+
20+ var rules = {
21+ 'comma-dangle' : 0 ,
22+ 'new-cap' : 0 ,
23+ 'arrow-body-style' : 0 ,
24+ 'prefer-template' : 0 ,
25+ 'no-underscore-dangle' : 0 ,
26+ 'object-shorthand' : 0 ,
27+ 'func-names' : 0 ,
28+ 'no-extra-parens' : [ 'error' , 'functions' ] ,
29+ 'dot-notation' : 0 ,
30+ 'max-len' : 0 ,
31+ 'camelcase' : 0 ,
32+ 'react/jsx-pascal-case' : 0 ,
33+ 'prefer-const' : 0 ,
34+ 'react/jsx-filename-extension' : 0 ,
35+ 'linebreak-style' : 0 ,
36+ 'react/require-extension' : 0 ,
37+ 'react/no-children-prop' : 0 ,
38+ 'react/require-default-props' : 0 ,
39+ 'react/forbid-prop-types' : 0 ,
40+ 'jsx-a11y/no-noninteractive-element-interactions' : 1 ,
41+ 'no-nested-ternary' : 0 ,
42+ 'class-methods-use-this' : 0 ,
43+ 'import/no-extraneous-dependencies' : 0 ,
44+ 'jsx-a11y/href-no-hash' : 0 ,
45+ 'object-curly-newline' : 0
46+ } ;
47+
48+ module . exports = {
49+ "root" : true ,
50+ 'extends' : 'airbnb' ,
51+ 'env' : {
52+ 'browser' : true ,
53+ 'node' : true ,
54+ 'es6' : true
55+ } ,
56+ 'globals' : {
57+ 'describe' : true ,
58+ 'it' : true
59+ } ,
60+ 'plugins' : [
61+ 'react'
62+ ] ,
63+ 'parserOptions' : {
64+ 'sourceType' : 'module' ,
65+ 'ecmaFeatures' : ecmaFeatures
66+ } ,
67+ rules : rules
68+ } ;
0 commit comments