mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: { browser: true, es2020: true },
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:react-hooks/recommended',
|
|
'plugin:prettier/recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:import/recommended',
|
|
'plugin:import/typescript',
|
|
'plugin:@typescript-eslint/recommended-type-checked',
|
|
],
|
|
ignorePatterns: ['dist', '.eslintrc.cjs', 'babel.config.js', '*/node_modules/*', 'vite.config.ts', 'vite-env.d.ts'],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['react-refresh', '@typescript-eslint', 'react', 'import'],
|
|
rules: {
|
|
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
|
'prettier/prettier': 'error',
|
|
'no-console': 'error',
|
|
'no-async-promise-executor': 'off',
|
|
'no-unused-vars': 'off',
|
|
'react/jsx-uses-react': 'off',
|
|
'react/react-in-jsx-scope': 'off',
|
|
'import/no-named-as-default-member': 'off',
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
"endOfLine": "auto"
|
|
}
|
|
]
|
|
},
|
|
settings: {
|
|
'import/resolver': {
|
|
typescript: {},
|
|
},
|
|
react: {
|
|
pragma: 'React',
|
|
version: '18',
|
|
},
|
|
},
|
|
parserOptions: {
|
|
project: true,
|
|
tsconfigRootDir: __dirname
|
|
},
|
|
}
|