Created
August 29, 2016 16:30
-
-
Save jaigouk/2e64617a701c5b27c2e8dcbc63c7ff0d to your computer and use it in GitHub Desktop.
lint rc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| parser: "babel-eslint", | |
| env: { | |
| es6: true, | |
| browser: true | |
| }, | |
| parserOptions: { | |
| ecmaVersion: 6, | |
| sourceType: "module", | |
| ecmaFeatures: { | |
| jsx: true, | |
| experimentalObjectRestSpread: true | |
| } | |
| }, | |
| plugins: [ "ava", "react" ], | |
| settings: { | |
| react: { | |
| pragma: "React", | |
| version: "15.0" | |
| } | |
| }, | |
| extends: ["eslint:recommended", "plugin:react/recommended", "standard"], | |
| "rules": { | |
| "no-console": [2, {allow: ["warn", "error"]}], | |
| "comma-dangle" : [2, "always-multiline"], | |
| "semi": [2, "never"], | |
| "no-extra-semi": 2, | |
| "jsx-quotes": [2, "prefer-single"], | |
| "react/jsx-boolean-value": [2, "always"], | |
| "react/jsx-closing-bracket-location": [2, {selfClosing: "after-props", nonEmpty: "after-props"}], | |
| "react/jsx-curly-spacing": [2, "never", {"allowMultiline": false}], | |
| "react/jsx-max-props-per-line": [2, {maximum: 3}], | |
| "react/jsx-no-literals": 2, | |
| "react/self-closing-comp": 2, | |
| "react/sort-comp": 2, | |
| "ava/use-t": 2, | |
| "ava/use-test": 2 | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "rules": { | |
| "color-no-invalid-hex": true, | |
| "declaration-colon-space-after": "always", | |
| "max-empty-lines": 2, | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment