mirror of
https://github.com/markedjs/marked
synced 2024-11-22 08:12:33 +00:00
cb549065f1
BREAKING CHANGE: Migrate to Typescript
34 lines
1.0 KiB
JSON
34 lines
1.0 KiB
JSON
{
|
|
"extends": ["standard", "plugin:@typescript-eslint/recommended"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["@typescript-eslint"],
|
|
"root": true,
|
|
"rules": {
|
|
"semi": ["error", "always"],
|
|
"indent": ["error", 2, {
|
|
"SwitchCase": 1,
|
|
"VariableDeclarator": { "var": 2 },
|
|
"outerIIFEBody": 0
|
|
}],
|
|
"operator-linebreak": ["error", "before", { "overrides": { "=": "after" } }],
|
|
"space-before-function-paren": ["error", "never"],
|
|
"no-cond-assign": "off",
|
|
"no-useless-escape": "off",
|
|
"one-var": "off",
|
|
"no-control-regex": "off",
|
|
"no-prototype-builtins": "off",
|
|
"no-extra-semi": "error",
|
|
"prefer-const": "error",
|
|
"no-var": "error",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
"@typescript-eslint/no-namespace": "off",
|
|
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }]
|
|
},
|
|
"env": {
|
|
"node": true
|
|
}
|
|
}
|