Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
41 changes: 0 additions & 41 deletions .eslintrc.json

This file was deleted.

9 changes: 0 additions & 9 deletions .stylelintrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions .stylelintrc.json
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you change the stylelintrc filetype ? Is there a good reason?
Using a JS file allows comment (if needed). That could help if the configuration become more complexe one day.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. I tried to solve an issue with eslint that I couldn't solve in a better way. I switch back since this file isn't linted anymore.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {}
}
1 change: 0 additions & 1 deletion .vscode/.settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"eslint.alwaysShowStatus": true,
"eslint.lintTask.enable": true,
"eslint.lintTask.options": " --ext .ts --ext .js .",
"stylelint.validate": ["css", "scss"]
}
44 changes: 44 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import tseslint from 'typescript-eslint'
import love from 'eslint-config-love'

/* eslint-disable @typescript-eslint/no-magic-numbers -- Disable for eslint config */

export default tseslint.config(
{
ignores: ["**/dist", "**/node_modules"],
},
love,
...tseslint.configs.recommended,
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['scripts/build.js']
}
}
},

rules: {
"@typescript-eslint/no-unused-vars": [2, {
argsIgnorePattern: "^_",
}],

"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/return-await": [2, "in-try-catch"],
"@typescript-eslint/no-invalid-void-type": "off",
"@typescript-eslint/triple-slash-reference": "off",

"max-len": ["error", {
code: 120,
comments: 120,
}],

"no-unused-vars": "off",
}
}
)

/* eslint-enable @typescript-eslint/no-magic-numbers */
Loading