49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
'airbnb/base',
|
|
'airbnb-typescript/base',
|
|
],
|
|
parserOptions: {
|
|
project: './tsconfig.json'
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/lines-between-class-members": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-floating-promises": "off",
|
|
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
"@typescript-eslint/no-unsafe-argument": "off",
|
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
"@typescript-eslint/no-unsafe-call": "off",
|
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
"@typescript-eslint/no-use-before-define": "off",
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
"@typescript-eslint/unbound-method": "off",
|
|
"@typescript-eslint/quotes": "warn",
|
|
"arrow-parens": "off",
|
|
"class-methods-use-this": "off",
|
|
"func-names": "off",
|
|
"import/prefer-default-export": "off",
|
|
"linebreak-style": "off",
|
|
"max-len": "off",
|
|
"no-console": "off",
|
|
"no-new": "off",
|
|
"no-continue": "off",
|
|
"no-plusplus": "off",
|
|
"object-curly-newline": "off",
|
|
},
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
es6: true,
|
|
},
|
|
ignorePatterns: ['.eslintrc.js', 'deploy-config.js']
|
|
};
|