Debian Codegraph @

.eslintrc.js

raw
1 module.exports = {
2 parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3 parserOptions: {
4 ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
5 sourceType: 'module', // Allows for the use of imports
6 },
7 extends: [
8 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin
9 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
10 'prettier',
11 ],
12 rules: {
13 // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
14 '@typescript-eslint/no-namespace': 'off',
15 '@typescript-eslint/no-var-requires': 'off',
16 '@typescript-eslint/ban-ts-comment': 'off',
17 },
18 };