2 "parser": "babel-eslint",
23 "sessionStorage": true,
25 "requestAnimationFrame": true,
26 "cancelAnimationFrame": true,
32 "XMLHttpRequest": true,
34 "PunchOutRegistry": true,
49 "no-unused-expressions": 2,
57 "no-use-before-define": 2,
61 "capIsNewExceptions": [
91 //Default is 80 words in a line
95 "ignoreStrings": true,
97 "ignoreRegExpLiterals": true,
98 //"ignorePattern": "^\\s*case\\s.+:"
99 "ignorePattern": "^\\s*var\\s.+:\\s*require\\s*\\(/|^\\s*type\\s*:\\s*|^\\s*case\\s.+:"
105 "properties": "never"
114 "space-in-brackets": [
118 "space-infix-ops": 2,
119 //This rule is aimed at ensuring there are spaces around infix operators.
121 "import/no-unresolved": 0,
122 "import/no-named-as-default": 2,
123 "import/no-duplicates": 0,
124 "import/imports-first": 2,
126 "react/display-name": 0,
127 "react/forbid-prop-types": 0,
128 "react/jsx-boolean-value": 0,
129 "react/jsx-closing-bracket-location": [
132 "nonEmpty": "after-props",
133 "selfClosing": "after-props"
136 "react/jsx-curly-spacing": 0,
137 //disallow spaces inside of curly braces in JSX attributes
138 "react/jsx-max-props-per-line": 0,
139 "react/jsx-no-duplicate-props": 1,
140 "react/jsx-no-literals": 0,
141 "react/jsx-no-undef": 1,
142 "react/jsx-sort-prop-types": 0,
143 "react/jsx-sort-props": 0,
144 "react/jsx-uses-react": 1,
145 "react/jsx-uses-vars": 1,
146 "react/no-danger": 1,
147 "react/no-did-mount-set-state": 2,
148 "react/no-did-update-set-state": 2,
149 "react/no-direct-mutation-state": 1,
150 "react/no-multi-comp": 0,
151 "react/no-set-state": 0,
152 "react/no-unknown-property": 1,
153 "react/prop-types": 0,
154 "react/react-in-jsx-scope": 1,
155 "react/require-extension": 1,
156 "react/self-closing-comp": 1,
157 "react/sort-comp": 0,
158 "react/wrap-multilines": [
166 "constructor-super": 2,
167 "valid-jsdoc": 0, // Ensure JSDoc comments are valid (off by default): Uncomment this after the js docs are added
169 // require default case in switch statements (off by default)
170 "no-array-constructor": 0,
171 // disallow use of the Array constructor
172 "no-comma-dangle": 0,
173 // disallow trailing commas in object literals
175 // require let or const instead of var (off by default)