1234567891011121314151617181920212223242526272829303132 |
- module.exports = {
- parser: '@typescript-eslint/parser',
- plugins: ['@typescript-eslint', 'emotion'],
- extends: ['sentry-app/strict'],
- globals: {
- require: false,
- expect: false,
- sinon: false,
- MockApiClient: true,
- TestStubs: true,
- tick: true,
- jest: true,
- },
- rules: {
- 'emotion/jsx-import': 'off',
- 'emotion/no-vanilla': 'error',
- 'emotion/import-from-emotion': 'error',
- 'emotion/styled-import': 'error',
- },
- overrides: [
- {
- files: ['*.ts', '*.tsx'],
- rules: {
- '@typescript-eslint/no-unused-vars': 'off',
- 'no-unused-vars': 'off',
- // https://github.com/yannickcr/eslint-plugin-react/issues/2066
- 'react/sort-comp': 'warn',
- },
- },
- ],
- };
|