1234567891011121314151617181920212223242526272829303132333435 |
- module.exports = {
- root: true,
- env: {
- node: true,
- browser: true,
- },
- extends: ['airbnb-base', 'plugin:prettier/recommended'],
- plugins: ['@typescript-eslint'],
- parser: '@typescript-eslint/parser',
- parserOptions: {
- sourceType: 'module',
- project: './tsconfig.json',
- createDefaultProgram: true,
- },
- rules: {
- 'prettier/prettier': [
- 'error',
- {
- singleQuote: true,
- trailingComma: 'all',
- },
- ],
- 'no-unused-vars': 'off',
- '@typescript-eslint/no-unused-vars': 'error',
- 'no-useless-constructor': 'off',
- '@typescript-eslint/no-useless-constructor': 'error',
- },
- settings: {
- 'import/resolver': {
- node: {
- extensions: ['.js', '.ts'],
- },
- },
- },
- };
|