JavaScript
ESLint
babel

.babelrcと.eslintはpackage.jsonに

More than 1 year has passed since last update.

ドットファイルが多いと面倒が増えます、babelとeslintの設定はpackage.jsonに書くのがいいかもしれないです。

.babelrc

package.json
{
  "name": "my-package",
  "version": "1.0.0",
  "babel": {
    "presets": [
      "latest"
    ],
    "plugins": [
      [
        "transform-runtime",
        {
          "polyfill": false,
          "regenerator": true
        }
      ],
      "transform-decorators-legacy",
      "add-module-exports"
    ]
  },
}

https://babeljs.io/docs/usage/babelrc/

.eslint

package.json
{
  "name": "mypackage",
  "version": "0.0.1",
  "eslintConfig": {
    "extends": [
      "eslint:recommended"
    ],
    "parser": "babel-eslint",
    "env": {
      "es6": true,
      "browser": true,
      "node": true
    }
  }
}

http://eslint.org/docs/user-guide/configuring

PHPStormはpackage.jsonのeslintも認識します。