axios-miniprogram/.eslintrc.js

22 lines
547 B
JavaScript
Raw Normal View History

2021-05-21 14:26:22 +08:00
const [OFF, WARN, ERROR] = [0, 1, 2];
2021-05-11 10:22:44 +08:00
module.exports = {
env: {
es2021: true,
2021-05-21 14:26:22 +08:00
node: 10,
2021-05-11 10:22:44 +08:00
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
2021-05-21 14:26:22 +08:00
rules: {
'@typescript-eslint/no-explicit-any': OFF,
'@typescript-eslint/explicit-module-boundary-types': OFF,
'@typescript-eslint/ban-types': OFF,
'@typescript-eslint/no-non-null-assertion': OFF,
},
2021-05-11 10:22:44 +08:00
};