mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
remove rules
This commit is contained in:
@@ -180,25 +180,9 @@ module.exports = {
|
||||
'prefer-template': 'warn',
|
||||
'no-else-return': 'warn',
|
||||
'func-names': ['warn', 'never'],
|
||||
'func-style': ['warn', 'declaration'],
|
||||
'one-var': ['warn', 'never'],
|
||||
'operator-assignment': 'warn',
|
||||
'prefer-arrow-callback': 'warn',
|
||||
'no-restricted-syntax': [
|
||||
'warn',
|
||||
{
|
||||
selector: "CallExpression[callee.name='String']",
|
||||
message: "Don't use the String function. Use .toString() instead."
|
||||
},
|
||||
{
|
||||
selector: "CallExpression[callee.name='Number']",
|
||||
message: "Don't use the Number function. Use parseInt or parseFloat instead."
|
||||
},
|
||||
{
|
||||
selector: "CallExpression[callee.name='Boolean']",
|
||||
message: "Don't use the Boolean function. Use a strict comparison instead."
|
||||
}
|
||||
],
|
||||
'no-restricted-imports': [
|
||||
'warn',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user