0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Laravel mix で React.js と Eslint の設定メモ

Posted at

Laravel mix で 一部 React.jsを使いたくなったのでその時の追加設定手順をメモ

前提条件

  • eslintが入ってる状態

yarn

$ yarn add react react-dom

lint

$ yarn add --dev eslint@7 eslint-plugin-react

eslint

	extends: ['eslint:recommended', 'plugin:react/recommended', 'prettier'],

webpack.mix.js のjs() に追加

.react()

をつける

eslint のルール追記

	rules: {
		'react/prop-types': 'off'
	},

参考: https://cpoint-lab.co.jp/article/202107/20531/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?