-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
17 lines (17 loc) · 851 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = {
root: true,
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
sourceType: 'module', // Allows for the use of imports
},
extends: [
'eslint:recommended', // The set of rules which are recommended for all projects by the ESLint Team
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'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.
],
env: {
es2022: true, // Adds all ECMAScript 2022 globals and automatically sets the ecmaVersion parser option to 13
node: true, // Node.js global variables and Node.js scoping
},
rules: {},
};