2020-12-19 12:37:45 +00:00
|
|
|
module.exports = {
|
|
|
|
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
|
|
|
|
sourceType: 'module', // Allows for the use of imports
|
|
|
|
project: ['./tsconfig.json']
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'airbnb-typescript/base',
|
|
|
|
],
|
2020-12-20 22:02:05 +00:00
|
|
|
ignorePatterns: ['*.test.ts'],
|
2020-12-19 12:37:45 +00:00
|
|
|
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/indent': ['error', 2],
|
|
|
|
'@typescript-eslint/semi': [2, 'never'],
|
2020-12-20 22:15:39 +00:00
|
|
|
'max-len': ['error', { code: 120, 'ignoreUrls': true }]
|
2020-12-19 12:37:45 +00:00
|
|
|
},
|
|
|
|
}
|