tanshu
cefb3ebdcc
Tried hand at testing by fixing the spec files with import. However, still many errors and given up now.
48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
/*
|
|
We recommend eventually switching this configuration to extend from
|
|
the recommended rulesets in typescript-eslint.
|
|
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
|
|
|
|
Happy linting! 💖
|
|
*/
|
|
module.exports = {
|
|
"extends": [
|
|
"plugin:@angular-eslint/recommended",
|
|
// AirBnB Styleguide rules
|
|
"airbnb-typescript/base",
|
|
// Settings for Prettier
|
|
"prettier/@typescript-eslint",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
"env": {
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "tsconfig.json",
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"eslint-plugin-import",
|
|
"eslint-plugin-jsdoc",
|
|
"@angular-eslint/eslint-plugin",
|
|
"@typescript-eslint",
|
|
"@typescript-eslint/tslint"
|
|
],
|
|
"overrides": [
|
|
{
|
|
files: ['*.ts'],
|
|
extends: [
|
|
// AirBnB Styleguide rules
|
|
'airbnb-typescript/base',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
]
|
|
};
|