Created
December 27, 2017 10:22
-
-
Save digigarlab/ea9ee109a40481f8174ba73e6721191a to your computer and use it in GitHub Desktop.
Eslint + prettier
This file contains 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
[*] | |
indent_style = space | |
end_of_line = lf | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.md] | |
max_line_length = 0 | |
trim_trailing_whitespace = false |
This file contains 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
node_modules | |
dist | |
package.json |
This file contains 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
{ | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"prettier", | |
"prettier/flowtype", | |
"prettier/react", | |
], | |
"plugins": [ | |
"react", | |
"prettier" | |
], | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"globals": { | |
"shallow": true, | |
"render": true, | |
"mount": true, | |
}, | |
"env": { | |
"es6": true, | |
"node": true, | |
"jest": true | |
}, | |
"rules": { | |
"prettier/prettier": "error", | |
"no-var": "error", | |
"no-useless-constructor": "error", | |
"react/prefer-stateless-function": "error" | |
} | |
} |
This file contains 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
{ | |
"singleQuote": true, | |
"semi": false, | |
} |
This file contains 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
{ | |
"scripts": { | |
"lint:js": "eslint --ext .js .", | |
"eslint-check": "eslint --print-config .eslintrc | eslint-config-prettier-check" | |
}, | |
"private": true, | |
"devDependencies": { | |
"babel-eslint": "^8.0.3", | |
"eslint": "^4.10.0", | |
"eslint-config-prettier": "^2.6.0", | |
"eslint-plugin-import": "^2.8.0", | |
"eslint-plugin-node": "^5.2.1", | |
"eslint-plugin-prettier": "^2.3.1", | |
"eslint-plugin-react": "^7.4.0", | |
"prettier": "1.7.4" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment