This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Andrew Trieu d73c3d8d48 Upload 5.23
2023-06-22 16:11:10 +03:00

37 lines
832 B
JavaScript

/* eslint-env node */
module.exports = {
env: {
browser: true,
es6: true,
'jest/globals': true,
'cypress/globals': true
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', 'jest', 'cypress'],
rules: {
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'never'],
eqeqeq: 'error',
'no-trailing-spaces': 'error',
'object-curly-spacing': ['error', 'always'],
'arrow-spacing': ['error', { before: true, after: true }],
'no-console': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 'off',
},
settings: {
react: {
version: 'detect',
},
},
}