UNPKG

1.09 kBJavaScriptView Raw
1module.exports = {
2 rules: {
3 // Errors
4 'trailing-comma': [true, {
5 'multiline': 'never',
6 'singleline': 'never'
7 }],
8 'variable-name': [true,
9 'ban-keywords',
10 'check-format',
11 'allow-pascal-case',
12 'allow-leading-underscore'
13 ],
14 'no-else-after-return': [true, 'allow-else-if'],
15 'ordered-imports': [true, {
16 'grouped-imports': true,
17 'import-sources-order': 'any'
18 }],
19
20 // Warnings
21 'max-line-length': {
22 'severity': 'warn',
23 'options': 100
24 },
25
26 // Excludes
27 'member-access': false,
28 'object-literal-sort-keys': false,
29 'member-ordering': [false],
30 'interface-name': [false], // Interface names don't need to begin with capital I
31 'import-name': [false], // name of the import module doesn't have to match the file name
32 'object-shorthand-properties-first': false,
33 'function-name': false, // add eventually, but react needs this off
34
35 // Excludes - React
36 'jsx-boolean-value': false, // booleans are more concise
37 'jsx-no-lambda': false // consider using this
38 }
39}