Skip to content

Instantly share code, notes, and snippets.

@y-temp4
Last active February 5, 2017 19:57
Show Gist options
  • Save y-temp4/ccb131588d32eb14487a60184109afd6 to your computer and use it in GitHub Desktop.
Save y-temp4/ccb131588d32eb14487a60184109afd6 to your computer and use it in GitHub Desktop.
ESLintの使い方とAtomでの初期設定など ref: http://qiita.com/y-temp4/items/aed2904ff04e9a3f6af1
node_modules/
test/
{
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"react/jsx-no-bind": [
2,
{
"allowBind": true
}
],
"react/prefer-stateless-function": [0]
}
}
$ apm install linter linter-eslint
$ yarn add --dev eslint
$ ./node_modules/.bin/eslint --init
$ ./node_modules/.bin/eslint --init
? How would you like to configure ESLint? Use a popular style guide
? Which style guide do you want to follow? Airbnb
? Do you use React? Yes
? What format do you want your config file to be in? JSON
Installing eslint-plugin-react, eslint-plugin-jsx-a11y, eslint-plugin-import, eslint-config-airbnb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment