module.exports = { parser: '@typescript-eslint/parser', // Specifies the ESLint parser extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. ], plugins: ['@typescript-eslint', 'prettier'], env: { node: true, browser: true, es6: true, // "jasmine": true, // "jest": true }, parserOptions: { ecmaVersion: 2021, // Allows for the parsing of modern ECMAScript features sourceType: 'module', // Allows for the use of imports ecmaFeatures: { jsx: true, // Allows for the parsing of JSX }, }, rules: { // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs // e.g. "@typescript-eslint/explicit-function-return-type": "off", '@typescript-eslint/explicit-member-accessibility': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-non-null-assertion': 'off', // react 17 new jsx transform }, overrides: [ { // enable the rule specifically for TypeScript files files: ['*.js', '*.ts'], rules: {}, }, ], // settings: { // react: { // version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use // }, // }, };