Tone.js/.eslintrc.js

74 lines
2.9 KiB
JavaScript
Raw Normal View History

2017-10-26 19:10:52 +00:00
module.exports = {
2020-04-15 02:09:48 +00:00
"parser": '@typescript-eslint/parser',
"plugins": [
'@typescript-eslint',
2020-07-19 18:46:01 +00:00
"jsdoc",
"html"
],
2020-04-15 02:09:48 +00:00
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"prefer-rest-params": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-empty-function": "off",
"jsdoc/check-alignment": 1,
2020-04-15 02:09:48 +00:00
"jsdoc/check-param-names": ["error"],
"jsdoc/check-examples": ["error"],
"jsdoc/check-indentation": ["error", { "excludeTags": ["example", "param"] }],
"dot-location": ["error", "property"],
"linebreak-style": ["error", "unix"],
"eqeqeq": ["error"],
"curly": ["error", "all"],
"dot-notation": ["error"],
"no-throw-literal": ["error"],
"no-useless-call": ["error"],
"no-unmodified-loop-condition": ["error"],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "double"],
"no-shadow": "error",
"no-console": ["error", { "allow": ["warn"] }],
2020-04-15 02:09:48 +00:00
"@typescript-eslint/no-object-literal-type-assertion": "off",
2019-09-16 03:32:40 +00:00
"@typescript-eslint/no-unused-vars": "off",
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
2020-04-15 02:09:48 +00:00
"no-lonely-if": ["error"],
"semi": ["error", "always"],
"no-cond-assign": ["error", "always"],
"indent": "off",
2019-09-17 17:40:21 +00:00
"no-var": "error",
2019-09-17 23:31:46 +00:00
"prefer-arrow-callback": "error",
2020-04-15 02:09:48 +00:00
"@typescript-eslint/indent": ["error", "tab", { "SwitchCase": 1, "MemberExpression": 2 }],
"@typescript-eslint/explicit-member-accessibility": "off",
2020-04-15 02:09:48 +00:00
"@typescript-eslint/explicit-function-return-type": "off",
"no-multi-spaces": ["error"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"func-call-spacing": ["error", "never"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"brace-style": ["error", "1tbs"],
"space-in-parens": ["error", "never"],
"eol-last": ["error", "always"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/array-type": "off",
"spaced-comment": ["error", "always", {
"line": { "exceptions": ["-"] },
2020-04-15 02:09:48 +00:00
"block": { "balanced": true },
}],
"lines-between-class-members": "off",
2020-04-15 02:09:48 +00:00
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
"no-unneeded-ternary": ["error"],
"object-curly-spacing": ["error", "always"],
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
"block-spacing": ["error", "always"],
"keyword-spacing": ["error", { "before": true }],
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
2018-03-05 17:25:33 +00:00
"comma-spacing": ["error", { "before": false, "after": true }],
"arrow-spacing": ["error", { "before": true, "after": true }],
2020-04-15 02:09:48 +00:00
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }]
}
2017-10-26 19:10:52 +00:00
};