forked from guardian/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
29 lines (27 loc) · 875 Bytes
/
.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
28
29
module.exports = {
extends: ['airbnb', 'prettier'],
plugins: ['guardian-frontend', 'prettier'],
rules: {
'import/no-extraneous-dependencies': 'off',
// prettier settings
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
singleQuote: true,
bracketSpacing: true,
tabWidth: 4,
jsxBracketSameLine: true,
parser: 'flow',
},
],
'no-extend-native': 'error',
'func-style': ['error', 'expression', { allowArrowFunctions: true }],
// our own rules for frontend
// live in tools/eslint-plugin-guardian-frontend
'guardian-frontend/exports-last': 'error',
'prefer-destructuring': 'off',
},
// don't look for eslintrcs above here
root: true,
};