0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 21:49:51 +01:00
posthog/.eslintrc.js

32 lines
733 B
JavaScript
Raw Normal View History

module.exports = {
env: {
browser: true,
es6: true,
'cypress/globals': true,
},
settings: {
react: {
version: 'detect',
},
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['prettier', 'react', 'cypress'],
rules: {
'react/prop-types': [0],
'react/no-unescaped-entities': [0],
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
},
}