Skip to content

Commit

Permalink
Clean up lint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoporto committed Mar 9, 2024
1 parent 9274a4a commit 6d37d72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

5 changes: 3 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const jsConfig = {
}

module.exports = {
ignorePatterns: ['dist'],
env: {
browser: true,
es2021: true,
Expand Down Expand Up @@ -53,14 +54,14 @@ module.exports = {
},
// .js files
{
files: ['*.{js,mjs}'],
files: ['*.{js,mjs,cjs}'],
excludedFiles: ['**/*.{md}/*.{js,mjs,javascript}', '**/*.test.js'],
extends: [...jsConfig.extends],
rules: { ...jsConfig.rules },
},
// .js in Markdown files
{
files: ['**/*.md/*.{js,mjs,javascript}'],
files: ['**/*.md/*.{js,javascript}'],
extends: [...jsConfig.extendsMD],
rules: { ...jsConfig.rulesMD },
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"preview": "vite preview",
"check-docs": "remark --frail .",
"check-formatting": "prettier --check --ignore-unknown \"**/*\"",
"lint": "eslint . --ext .js,.md --max-warnings 0",
"lint": "eslint . --max-warnings 0",
"lint:styles": "stylelint \"**/*.scss\""
},
"devDependencies": {
Expand Down

0 comments on commit 6d37d72

Please sign in to comment.