refactor: separate React views, Redux snapshots and Three.js runtime
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import js from '@eslint/js';
|
||||
import globals from 'globals';
|
||||
import hooks from 'eslint-plugin-react-hooks';
|
||||
export default [
|
||||
{ignores:['dist/**','node_modules/**','public/**','src/data/**','docs/**']},
|
||||
js.configs.recommended,
|
||||
{files:['**/*.{js,jsx,mjs}'],languageOptions:{ecmaVersion:2022,sourceType:'module',globals:{...globals.browser,...globals.node},parserOptions:{ecmaFeatures:{jsx:true}}},rules:{'no-unused-vars':['error',{argsIgnorePattern:'^_',varsIgnorePattern:'^[A-Z]',ignoreRestSiblings:true}],'no-empty':['error',{allowEmptyCatch:true}]}},
|
||||
{files:['src/**/*.{js,jsx}'],plugins:{'react-hooks':hooks},rules:{'react-hooks/rules-of-hooks':'error','react-hooks/exhaustive-deps':'error'}},
|
||||
];
|
||||
Reference in New Issue
Block a user