31 lines
571 B
JavaScript
31 lines
571 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: ['airbnb', 'prettier'],
|
|
plugins: ['prettier'],
|
|
overrides: [
|
|
{
|
|
env: {
|
|
node: true,
|
|
},
|
|
files: ['.eslintrc.{js,cjs}'],
|
|
parserOptions: {
|
|
sourceType: 'script',
|
|
},
|
|
},
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'prettier/prettier': 'error',
|
|
'react/jsx-props-no-spreading': 'off',
|
|
'react/prop-types': 'off',
|
|
'no-unused-vars': 'warn',
|
|
'consistent-return': 'warn',
|
|
},
|
|
};
|