-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
27 lines (27 loc) · 1.01 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = {
extends: ['airbnb'],
parser: 'babel-eslint', // Allows us to use es7 features
rules: {
'max-len': ['error', 150, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}], // Best Practices group decided to alter this
'no-underscore-dangle': 'off', // Some keys returned from GraphQL may have dangling underscores
'react/jsx-filename-extension': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/no-danger': 'off', // The term dangerouslySetInnerHTML should be enough warning
'react/prop-types': 'off', // Temporarily disable this
'react/react-in-jsx-scope': 'off',
'jsx-a11y/anchor-is-valid': ['error', {
components: ['Link'],
specialLink: ['hrefLeft', 'hrefRight'],
aspects: ['invalidHref', 'preferButton'],
}],
'no-use-before-define': ['error', { functions: false, classes: false }],
},
"settings": {
"import/core-modules": ["styled-jsx", "styled-jsx/css"],
},
};