@fractorysolutions/safe-units
Version:
Type-safe TypeScript units of measure
36 lines (35 loc) • 979 B
JavaScript
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "src/tsconfig.json",
sourceType: "module",
},
plugins: ["@typescript-eslint/eslint-plugin"],
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
root: true,
env: {
node: true,
jest: true,
},
rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"object-shorthand": ["error", "always"],
"prefer-template": 1,
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
"ts-nocheck": true,
"ts-check": false,
minimumDescriptionLength: 10,
},
],
},
};