UIKit/.eslintrc.cjs

26 lines
751 B
JavaScript
Raw Normal View History

2023-08-14 12:03:23 +00:00
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
2023-08-21 11:10:34 +00:00
ignorePatterns: ['dist', '.eslintrc.cjs', "vite.config.ts"],
2023-08-14 12:03:23 +00:00
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
"@typescript-eslint/no-explicit-any": "off",
2023-08-21 11:10:34 +00:00
"@typescript-eslint/no-unused-vars": "warn",
2023-08-14 12:49:13 +00:00
"no-restricted-exports": ["error", {
"restrictDefaultExports": {
direct: true,
}
}]
2023-08-14 12:03:23 +00:00
},
};