@iconicompany/eslint-config
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@iconicompany/eslint-config", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ESLint configuration by iconicompany", | ||
@@ -10,2 +10,7 @@ "type": "module", | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.js .", | ||
"lint:fix": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.js . --fix" | ||
}, | ||
"repository": { | ||
@@ -34,7 +39,3 @@ "type": "git", | ||
"eslint-plugin-simple-import-sort": "^10.0.0" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.js ." | ||
} | ||
} | ||
} |
@@ -16,7 +16,7 @@ import js from "@eslint/js"; | ||
ecmaVersion: ECMA_VERSION, | ||
sourceType: "module" | ||
sourceType: "module", | ||
}, | ||
plugins: { | ||
iconicompany: rules, | ||
"simple-import-sort": simpleImportSort | ||
"simple-import-sort": simpleImportSort, | ||
}, | ||
@@ -29,2 +29,3 @@ rules: { | ||
indent: ["error", 2, { SwitchCase: 1 }], | ||
"comma-dangle": ["error", "always-multiline"], | ||
"lines-around-comment": "off", | ||
@@ -37,4 +38,4 @@ "func-style": ["error", "declaration", { allowArrowFunctions: true }], | ||
"CallExpression[callee.object.name='console'][callee.property.name!=/^(error|trace)$/]", | ||
message: "Unexpected property on console object was called" | ||
} | ||
message: "Unexpected property on console object was called", | ||
}, | ||
], | ||
@@ -47,7 +48,7 @@ "simple-import-sort/imports": "error", | ||
{ | ||
toAvoid: ["data"] | ||
} | ||
] | ||
} | ||
} | ||
toAvoid: ["data"], | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
@@ -7,3 +7,3 @@ import prettier from "eslint-plugin-prettier"; | ||
plugins: { | ||
prettier | ||
prettier, | ||
}, | ||
@@ -25,7 +25,7 @@ rules: { | ||
usePrettierrc: false, | ||
arrowParens: "avoid" | ||
} | ||
] | ||
} | ||
} | ||
arrowParens: "avoid", | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
export default { | ||
meta: { | ||
messages: { | ||
avoidName: "Avoid using variables named '{{ name }}'" | ||
avoidName: "Avoid using variables named '{{ name }}'", | ||
}, | ||
@@ -13,8 +13,8 @@ schema: [ | ||
items: { | ||
type: "string" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
@@ -32,9 +32,9 @@ create(context) { | ||
data: { | ||
name: "data" | ||
} | ||
name: "data", | ||
}, | ||
}); | ||
} | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; |
@@ -5,4 +5,4 @@ import avoidNaming from "./avoid-naming.js"; | ||
rules: { | ||
"avoid-naming": avoidNaming | ||
} | ||
"avoid-naming": avoidNaming, | ||
}, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16366
122