0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
posthog/.eslintrc.js
Tim Glaser 20fab5d5a2
Add ES Lint (#719)
* Add ES Lint

* Update lint.yml

* move lint file

* Add eslint to package

* use yarn

* Run ci/test only once

* Fix eslint errors

* Fix rest siblings

* precommit hooks

* Lint typo

* ESLint per file

* Eslint
2020-05-13 13:17:00 +01:00

31 lines
689 B
JavaScript

module.exports = {
env: {
browser: true,
es6: 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'],
rules: {
'react/prop-types': [0],
'react/no-unescaped-entities': [0],
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
},
}