diff options
Diffstat (limited to '')
-rw-r--r-- | .eslintrc.cjs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..c40f08f --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,36 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:react/recommended', + 'plugin:react/jsx-runtime', + 'plugin:react-hooks/recommended', + 'plugin:prettier/recommended', + 'plugin:tailwindcss/recommended', + ], + ignorePatterns: [ + 'dist', + '.eslintrc.cjs', + 'tailwind.config.js', + 'postcss.config.js', + ], + parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, + settings: { react: { version: '18.2' } }, + plugins: [ + 'react-refresh', + 'simple-import-sort', + 'sort-destructure-keys', + 'sort-keys-fix', + 'prettier', + + 'tailwindcss', + ], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + 'react/prop-types': 'off', + }, +} |