当前位置:网站首页>How to close eslint related rules

How to close eslint related rules

2022-07-07 22:21:00 Belden wind

Root creation .eslintrc.js

module.exports = {
    
  xxx: 'xxx',
  overrides: [
    {
    
      files: ['*.ts', '*.tsx'],
      rules: {
    
        '@typescript-eslint/no-namespace': 0,
        '@typescript-eslint/no-use-before-define': 0,
        '@typescript-eslint/no-unused-vars': [2, {
     args: 'none' }],
        'no-unused-expressions': 'off',
        '@typescript-eslint/no-explicit-any': 0,
      },
    },
  ],
  xxxx: 'xxx',
};

原网站

版权声明
本文为[Belden wind]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130607021700.html