12345678910111213141516171819202122232425262728293031323334 |
- module.exports = {
- env: {
- es6: true,
- },
- globals: {
- Atomics: 'readonly',
- SharedArrayBuffer: 'readonly',
- },
- parser: '@typescript-eslint/parser',
- parserOptions: {
- ecmaVersion: 2019,
- sourceType: 'module',
- project: ['./tsconfig.json', './scripts/tsconfig.json'],
- },
- extends: [
- 'standard',
- 'eslint:recommended',
- 'plugin:@typescript-eslint/recommended',
- 'plugin:prettier/recommended',
- 'prettier',
- ],
- rules: {
- 'no-console': 'off',
- 'no-useless-constructor': 'off',
- '@typescript-eslint/no-floating-promises': [
- 'error',
- {
- ignoreVoid: true,
- },
- ],
- '@typescript-eslint/no-misused-promises': 'error',
- },
- plugins: ['standard', '@typescript-eslint', 'prettier'],
- }
|