diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-03-17 18:43:22 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-03-17 18:43:22 +0100 |
commit | 6c8f2d780acd6c41d42de6b5fc8d84e765334b64 (patch) | |
tree | 5f157118407a571d6a2bf6d2563d2317b44fb186 /.eslintrc.js | |
parent | 7dce448d9bd20fd72849dab94cef3bae253c7867 (diff) | |
download | rpgedit-6c8f2d780acd6c41d42de6b5fc8d84e765334b64.tar rpgedit-6c8f2d780acd6c41d42de6b5fc8d84e765334b64.zip |
Prepare for editor implementation
- Add React and Material UI
- Add React Developer Tools
- Add ESlint plugin and config
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 55c5ade..1c83704 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,10 @@ module.exports = { parser: '@typescript-eslint/parser', + plugins: [ + 'react-hooks', + ], extends: [ + 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint', 'plugin:prettier/recommended', @@ -8,8 +12,19 @@ module.exports = { parserOptions: { ecmaVersion: 2018, sourceType: 'module', + ecmaFeatures: { + jsx: true, + }, }, rules: { + 'react/prop-types': [0], + 'react-hooks/rules-of-hooks': 'error', + 'react-hooks/exhaustive-deps': 'warn', 'prettier/prettier': 'warn', }, + settings: { + react: { + version: 'detect', + }, + }, }; |