quarkly-dev-env-template/.eslintrc.js

31 lines
571 B
JavaScript
Raw Normal View History

2023-09-03 18:26:51 +03:00
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',
},
};