fix: improve rules for specific files

This commit is contained in:
Anthony Fu
2021-09-14 10:18:34 +08:00
parent 63ade1f6d1
commit d701469a55
5 changed files with 90 additions and 41 deletions

View File

@@ -11,7 +11,10 @@ module.exports = {
'plugin:jsonc/recommended-with-jsonc',
'plugin:yml/standard',
],
plugins: ['html', 'unicorn'],
plugins: [
'html',
'unicorn',
],
settings: {
'import/resolver': {
node: { extensions: ['.js', '.mjs', '.ts', '.d.ts'] },
@@ -68,6 +71,24 @@ module.exports = {
],
},
},
{
files: ['*.d.ts'],
rules: {
'import/no-duplicates': 'off',
},
},
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['scripts/**/*.*'],
rules: {
'no-console': 'off',
},
},
],
rules: {
// import