|
1 | 1 | # ESLint has many default rules that are not listed in this file
|
2 | 2 | # Documentation for all ESLint rules can be found at http://eslint.org/docs/rules/
|
3 | 3 | parser: babel-eslint
|
| 4 | +parserOptions: |
| 5 | + ecmaVersion: 6 |
| 6 | +plugins: |
| 7 | + - react |
| 8 | +extends: |
| 9 | + - eslint:recommended |
| 10 | + - plugin:react/recommended |
4 | 11 | env:
|
5 | 12 | browser: true
|
6 | 13 | node: true
|
| 14 | + es6: true |
7 | 15 | rules:
|
8 |
| - strict: [2, never] # use strict is added by babel |
9 |
| - quote-props: [1, as-needed] |
10 |
| - vars-on-top: 1 |
11 |
| - eqeqeq: 1 |
12 |
| - radix: 1 |
13 |
| - no-eq-null: 2 |
14 |
| - no-self-compare: 2 |
15 |
| - no-void: 2 |
16 |
| - no-new-object: 2 |
17 |
| - no-array-constructor: 1 |
18 |
| - no-inner-declarations: [1, both] |
19 |
| - no-shadow-restricted-names: 1 |
20 |
| - no-unused-vars: 1 |
21 |
| - no-unreachable: 1 |
22 | 16 | brace-style: 1
|
23 |
| - semi: [1, always] |
24 | 17 | camelcase: 2
|
25 |
| - new-cap: |
26 |
| - - 1 |
27 | 18 | comma-style: 2
|
28 |
| - comma-dangle: [1, never] |
29 | 19 | consistent-this: [2, self]
|
30 |
| - no-underscore-dangle: 0 |
31 |
| - quotes: [2, single] |
32 | 20 | curly: 1
|
| 21 | + eqeqeq: 1 |
33 | 22 | indent:
|
34 | 23 | - 2
|
35 | 24 | - 2
|
36 | 25 | - SwitchCase: 1
|
37 |
| - no-mixed-spaces-and-tabs: 2 |
38 |
| - space-after-keywords: 2 |
39 |
| - space-before-blocks: 2 |
40 |
| - object-curly-spacing: 2 |
41 |
| - array-bracket-spacing: 2 |
42 |
| - computed-property-spacing: 2 |
43 |
| - space-in-parens: 2 |
44 |
| - spaced-comment: 2 |
45 |
| - eol-last: 1 |
46 | 26 | max-depth: [1, 4]
|
47 | 27 | max-len: [1, 120]
|
48 | 28 | max-params: [1, 4]
|
49 |
| - react/jsx-uses-vars: 1 |
50 |
| -ecmaFeatures: |
51 |
| - arrowFunctions: true |
52 |
| - destructuring: true |
53 |
| - objectLiteralComputedProperties: true |
54 |
| - objectLiteralShorthandProperties: true |
55 |
| - templateStrings: true |
56 |
| - jsx: true |
57 |
| -plugins: |
58 |
| - - react |
| 29 | + new-cap: 1 |
| 30 | + no-array-constructor: 1 |
| 31 | + no-console: 0 |
| 32 | + no-eq-null: 2 |
| 33 | + no-new-object: 2 |
| 34 | + no-self-compare: 2 |
| 35 | + no-shadow-restricted-names: 1 |
| 36 | + no-underscore-dangle: 0 |
| 37 | + no-void: 2 |
| 38 | + quote-props: [1, as-needed] |
| 39 | + quotes: [2, single, avoid-escape] |
| 40 | + # TODO: Enable the react/prop-types rule. |
| 41 | + react/prop-types: 0 |
| 42 | + radix: 1 |
| 43 | + spaced-comment: 2 |
| 44 | + strict: [2, never] |
| 45 | + vars-on-top: 1 |
0 commit comments