Skip to content

Commit

Permalink
feat: add more rules commonly used in medic repos (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester authored Feb 24, 2025
1 parent c36a54a commit 275d107
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,54 @@ module.exports = {
es6: true
},
rules: {
"array-bracket-newline": ["error", "consistent"],
"array-callback-return": ["error", { "allowImplicit": true }],
"arrow-spacing": "error",
"brace-style": "error",
"comma-spacing": "error",
"comma-style": "error",
'curly': 'error',
"default-param-last": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
'eol-last': 'error',
'eqeqeq': 'error',
'guard-for-in': 'error',
"func-call-spacing": "error",
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": ["error", "consistent"],
"implicit-arrow-linebreak": "error",
'indent': ['error', 2],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
'max-len': ['error', { 'code': 120, 'ignoreUrls': true }],
"new-parens": "error",
'no-bitwise': 'error',
'no-buffer-constructor': 'error',
'no-caller': 'error',
'no-console': 'error',
"no-else-return": "error",
"no-extra-bind": "error",
"no-lone-blocks": "error",
"no-nested-ternary": "error",
'no-sequences': 'error',
"no-undef-init": "error",
"no-useless-rename": "error",
'no-var': 'error',
"no-whitespace-before-property": "error",
'one-var': ['error', 'never'],
'one-var-declaration-per-line': ['error', 'always'],
'prefer-const': 'error',
'prefer-regex-literals': 'error',
'quotes': ['error', 'single', { 'allowTemplateLiterals': true, 'avoidEscape': true }],
'semi': ['error', 'always'],
"rest-spread-spacing": "error",
'semi': 'error',
"semi-spacing": "error",
"semi-style": "error",
"template-curly-spacing": "error",
"unicode-bom": "error"
},
overrides: [
{
Expand Down

0 comments on commit 275d107

Please sign in to comment.