Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22

- name: Install pnpm
id: pnpm-install
Expand Down
33 changes: 14 additions & 19 deletions config/eslint/airbnbRules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
ObjectPattern: false,
VariableDeclaration: false,
NewExpression: false,
}
},
}],

// disallow padding inside computed properties
Expand All @@ -76,10 +76,6 @@ export default {
// https://eslint.org/docs/rules/function-call-argument-newline
'function-call-argument-newline': ['error', 'consistent'],

// enforce spacing between functions and their invocations
// https://eslint.org/docs/rules/func-call-spacing
'func-call-spacing': ['error', 'never'],

// requires function names to match the name of the variable or property to which they are
// assigned
// https://eslint.org/docs/rules/func-name-matching
Expand Down Expand Up @@ -125,22 +121,22 @@ export default {
// MemberExpression: null,
FunctionDeclaration: {
parameters: 1,
body: 1
body: 1,
},
FunctionExpression: {
parameters: 1,
body: 1
body: 1,
},
CallExpression: {
arguments: 1
arguments: 1,
},
ArrayExpression: 1,
ObjectExpression: 1,
ImportDeclaration: 1,
flatTernaryExpressions: false,
// list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js
ignoredNodes: ['JSXElement', 'JSXElement > *', 'JSXAttribute', 'JSXIdentifier', 'JSXNamespacedName', 'JSXMemberExpression', 'JSXSpreadAttribute', 'JSXExpressionContainer', 'JSXOpeningElement', 'JSXClosingElement', 'JSXFragment', 'JSXOpeningFragment', 'JSXClosingFragment', 'JSXText', 'JSXEmptyExpression', 'JSXSpreadChild'],
ignoreComments: false
ignoreComments: false,
}],

// specify whether double or single quotes should be used in JSX attributes
Expand All @@ -157,8 +153,8 @@ export default {
overrides: {
return: { after: true },
throw: { after: true },
case: { after: true }
}
case: { after: true },
},
}],

// enforce position of line comments
Expand Down Expand Up @@ -213,7 +209,7 @@ export default {
'max-lines': ['off', {
max: 300,
skipBlankLines: true,
skipComments: true
skipComments: true,
}],

// enforce a maximum function length
Expand Down Expand Up @@ -304,7 +300,7 @@ export default {
['==', '!=', '===', '!=='],
['&&', '||'],
],
allowSamePrecedence: false
allowSamePrecedence: false,
}],

// disallow mixed spaces and tabs for indentation
Expand Down Expand Up @@ -447,7 +443,7 @@ export default {
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
asyncArrow: 'always',
}],

// require or disallow spaces inside parentheses
Expand All @@ -461,8 +457,7 @@ export default {
'space-unary-ops': ['error', {
words: true,
nonwords: false,
overrides: {
},
overrides: {},
}],

// require or disallow a space immediately following the // or /* in a comment
Expand All @@ -476,7 +471,7 @@ export default {
exceptions: ['-', '+'],
markers: ['=', '!', ':', '::'], // space here to support sprockets directives and flow comment types
balanced: true,
}
},
}],

// Enforce spacing around colons of switch statements
Expand All @@ -492,6 +487,6 @@ export default {
'unicode-bom': ['error', 'never'],

// require regex literals to be wrapped in parentheses
'wrap-regex': 'off'
}
'wrap-regex': 'off',
},
};
4 changes: 2 additions & 2 deletions config/eslint/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import stylistic from '@stylistic/eslint-plugin';

export default [
stylistic.configs['disable-legacy'],
stylistic.configs['recommended-flat'],
stylistic.configs.recommended,
{
name: 'madronejs/style',
rules: {
Expand Down Expand Up @@ -85,7 +85,7 @@ export default [

// enforce spacing between functions and their invocations
// https://eslint.org/docs/rules/func-call-spacing
'@stylistic/func-call-spacing': ['error', 'never'],
'@stylistic/function-call-spacing': ['error', 'never'],

// https://eslint.style/rules/default/function-paren-newline
'@stylistic/function-paren-newline': ['error', 'multiline-arguments'],
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,29 @@
"vue"
],
"devDependencies": {
"@eslint/compat": "~1.2.9",
"@eslint/compat": "~1.3.1",
"@eslint/eslintrc": "~3.3.1",
"@eslint/js": "~9.26.0",
"@stylistic/eslint-plugin": "~4.2.0",
"@types/lodash": "~4.17.16",
"@vitest/coverage-v8": "~3.1.3",
"eslint": "~9.26.0",
"eslint-plugin-import": "~2.31.0",
"eslint-plugin-unicorn": "~59.0.1",
"globals": "~16.1.0",
"happy-dom": "~17.4.7",
"@eslint/js": "~9.31.0",
"@stylistic/eslint-plugin": "~5.2.2",
"@types/lodash": "~4.17.20",
"@vitest/coverage-v8": "~3.2.4",
"eslint": "~9.31.0",
"eslint-plugin-import": "~2.32.0",
"eslint-plugin-unicorn": "~60.0.0",
"globals": "~16.3.0",
"happy-dom": "~18.0.1",
"lodash": "~4.17.21",
"tsc-alias": "~1.8.16",
"typedoc": "~0.28.4",
"typedoc": "~0.28.7",
"typescript": "~5.8.3",
"typescript-eslint": "8.32.1",
"vite": "~6.3.5",
"vitest": "~3.1.3",
"typescript-eslint": "8.38.0",
"vite": "~7.0.5",
"vitest": "~3.2.4",
"vue3": "npm:vue@~3.5.13"
},
"engines": {
"node": "~20.11 || ~22.14",
"node": ">=20.11 || >=22.14",
"pnpm": ">=10"
},
"packageManager": "pnpm@10.11.0"
"packageManager": "pnpm@10.13.1"
}
Loading
Loading