Web-programming_Petrushin_E.../Lab4/PrBookfill/.eslintrc.cjs

25 lines
629 B
JavaScript
Raw Normal View History

2023-11-29 16:39:51 +04:00
module.exports = {
2023-12-07 13:04:19 +04:00
root: true,
env: { browser: true, es2020: true },
extends: [
'airbnb-base',
2023-11-29 16:39:51 +04:00
'plugin:react/recommended',
2023-12-07 13:04:19 +04:00
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
2023-11-29 16:39:51 +04:00
],
2023-12-07 13:04:19 +04:00
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 12, sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'indent': 'off',
'no-console': 'off',
'arrow-body-style': 'off',
'implicit-arrow-linebreak': 'off',
2023-11-29 16:39:51 +04:00
},
2023-12-07 13:04:19 +04:00
}